Update Docker Deployment Path - noi-techpark/odh-docs GitHub Wiki

While we migrate to Github Actions it might be necessary to change the installation paths used on Docker servers. This results in two running instances of the same container with different versions. To resolve this problem we must do the following:

  1. Run the new Github Action (now you have both containers running on the server)
  2. SSH into the server
  3. sudo su
  4. Shutdown the old one: cd /var/docker/old-project-name/current; docker-compose stop
  5. Move the old release files to the new: cp -Ra /var/docker/old-project-name/releases /var/docker/new-project-name/releases
  6. chown -R noi-techpark-bot: /var/docker/new-project-name/releases

Alternative shutdown of the old container:

  1. Find the ID of the docker container with docker ps
  2. docker stop [ID]