...
In this deployment model, the application server and database server are deployed on separate machines. And we don't need to update both the middleware service , only and the application service needs to be updated.
1. Stop CloudCX Application Services & Midware Services
Perform the following commands as root to stop & rm the current CX Docker instance:
Code Block |
---|
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh stop cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh rm |
2. Upgrade Midware service
List and Delete the docker images
Perform the following command to list the Midware Docker images:
Code Block |
---|
docker images |
Use the first 4 digits of the IMAGE ID to delete the Docker image:
Code Block |
---|
docker image rm 52d2 |
Delete the old Scripts
Code Block |
---|
rm cloud_cx_ctl.sh
rm install_docker_cx.sh |
Download new install scripts
Code Block |
---|
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/cloud_cx_ctl.sh -o cloud_cx_ctl.sh |
Code Block |
---|
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/install_docker_cx.sh -o install_docker_cx.sh |
Install Midware Services
Code Block |
---|
/bin/sh install_docker_cx.sh |
Code Block |
---|
sh cloud_cx_ctl.sh run -t mid |
3. Upgrade Application service
List the CX Docker Images
Perform the following command to list the CX Docker images:
...
You will get the result shown in the below screenshot.
...
...
Delete the CX Docker Images
Use the first 4 digits of the IMAGE ID to delete the Docker image:
Code Block |
---|
docker image rm 52d2 |
...
Delete the CX Scripts
Code Block |
---|
rm cloud_cx_ctl.sh |
...
rm install_docker_cx.sh |
Download new install scripts
Code Block |
---|
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/cloud_cx_ctl.sh -o cloud_cx_ctl.sh |
...
Code Block |
---|
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/install_docker_cx.sh -o install_docker_cx.sh |
Install CX Services
Code Block |
---|
/bin/sh install_docker_cx.sh |
Code Block |
---|
/bin/sh cloud_cx_ctl.sh run -i puteyun/cloud_cx:${tag} -t api |
...