-
Navigate to the project directory:
cd workspace/ahi-backend/ -
Check the active Git branch: Ensure you’re on the
masterbranch.git branch
- The output should indicate that the
masterbranch is active.
- The output should indicate that the
-
Pull the latest changes from the
masterbranch:git pull origin master
-
Rebuild the Docker image:
- Build a new Docker image for
ahi-backendversion1.2.33using thealpine.Dockerfile.
docker build -f alpine.Dockerfile -t gmfdev24/ahi-backend:1.2.33 . - Build a new Docker image for
-
Navigate to the Docker configuration directory for
ahi-backend:cd server-docker-config/ahi-backend/ -
Edit the
docker-compose.ymlfile:- Open the
docker-compose.ymlfile using a text editor likenano.
nano docker-compose.yml
- Locate the line specifying the image version, and update it from:
to:
image: gmfdev24/ahi-backend:1.2.32
image: gmfdev24/ahi-backend:1.2.33
- Open the
-
Check the running Docker containers:
- Find the currently running
ahi-backendcontainer.
docker ps -a | grep ahi- Note the
CONTAINER IDfor the container running version1.2.32.
- Find the currently running
-
Stop and remove the old container:
- Replace
ae34cec1FPMwith theCONTAINER IDof the old container if different.
docker stop ae34cec1FPM && docker rm ae34cec1FPM - Replace
-
Re-run
docker-composewith the new image:- Use
--force-recreateto ensure the container is updated.
docker compose up -d --force-recreate
- Use
After these steps, the deployment of version 1.2.33 should be complete, and ahi-backend will be running with the updated image.