When a new version of the application is released, it always comes with a new docker image available instantly in the docker repository. To switch between the two versions user is required to simply use the image with a new version tag the same as the desired version number. Typically users run the application using a docker-compose file that defines the environment and particular services. To upgrade to a newer version user needs to edit the 'docker-compose.yml' file used.
In the place where Algotrader service is defined:
algotrader:
image: docker.algotrader.com/algotrader/algotrader:x.y.z
container_name: algotrader
environment:
- VM_ARGUMENTS=-Dkeygen.id=...
the x.y.z is the used version tag. It can be either numbers only if the user wants to use a hotfix version but it may also include the company name and build number if it's a custom build made for a client. If no version tag is provided the newest will be used.
To change the version user needs to replace this part with the version to be used and restart the docker-compose using the command:
docker-compose up -d
from the location of the edited 'docker-compose.yml' file.
It is STRONGLY recommended to create a backup of the MySQL database before performing an update.
Comments
0 comments
Please sign in to leave a comment.