Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

R60133 purge old ce dev image when updating pr devel - #69

Merged
philipnorton42 merged 4 commits into
develfrom
r60133_purge_old_ce-dev_image_when_updating-PR-devel
Feb 2, 2022
Merged

R60133 purge old ce dev image when updating pr devel#69
philipnorton42 merged 4 commits into
develfrom
r60133_purge_old_ce-dev_image_when_updating-PR-devel

Conversation

@nfawbert

Copy link
Copy Markdown
Contributor

Tested on local VM stack;

  1. Roll back to 1.1.17 VM snapshot
  2. edit /opt/ce-dev/lib/commands/update.js with LOCAL "file:///home/fawbert/install.sh"
  3. Create /home/fawbert/install.sh with;
echo "Killing deprecated running ce_dev_controller container..."
if [ "$(docker ps -q -f name=ce_dev_controller)" ]; then
if [ "$(docker ps -aq -f status=running -f name=ce_dev_controller)" ]; then
# cleanup
docker kill ce_dev_controller
fi
fi
echo "done."
  1. sudo chmod 755 /home/fawbert/install.sh
  2. ce-dev update
  3. ce-dev create
  4. cd projectname
  5. ce-dev init
  6. ce-dev start
  7. ce-dev provision
  8. ce-dev deploy

The solution will be implemented within 'install.sh' script;

ce-dev:install.sh;

echo "Killing deprecated running ce_dev_controller container..."
if [ "$(docker ps -q -f name=ce_dev_controller)" ]; then
if [ "$(docker ps -aq -f status=running -f name=ce_dev_controller)" ]; then
# cleanup
docker kill ce_dev_controller
fi
fi
echo "done."

During a 'ce-dev update', if the (old) controller container is found to be running, it is killed so that the new 'latest' tagged image is spun up on next run.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed! Quality Gate passed

BugA0 Bugs
VulnerabilityA0 Vulnerabilities
Security HotspotA0 Security Hotspots
Code SmellA0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@philipnorton42
philipnorton42 merged commit e3eafd1 into develFeb 2, 2022
@philipnorton42
philipnorton42 deleted the r60133_purge_old_ce-dev_image_when_updating-PR-devel branch February 2, 2022 11:19
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@nfawbert@philipnorton42