To ensure a smooth upgrade process, please follow the instructions below.
Table of Contents |
---|
Note: If your current version is below 7.2.0 upgrade to 7.2.0 first then upgrade to latest by following Step 2. Otherwise, if already on 7.2 and above proceed with Step 1 only.
...
Code Block |
---|
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml pull docker exec mongodb /bin/bash -c 'mongo admin --username="${MONGO_INITDB_ROOT_USERNAME}" --password="${MONGO_INITDB_ROOT_PASSWORD}" --eval "db.shutdownServer()"' docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml down docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml up -d |
Next Step : Follow the Post Upgrade Steps
Step 2 a. - Upgrade to Version 7.2.0
Only for those whose current version is below 7.2.0,
Before you continue with any latest version (> 7.2.0), it's important to update your system to version 7.2.0 first. By following these steps:
Download the docker-compose.yaml file to your system. File link =
View file name docker-compose.yaml Open the docker-compose.yaml in a text editor and pass the required environmental variable follow this link
Save the changes to the
docker-compose.yaml
file.
Step 2 b. - Upgrade Steps
Follow the below steps to upgrade the knowhow instance.
Steps Pull the images , stop the running container and run the new container by following commands .
Code Block |
---|
docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml pull docker exec mongodb /bin/bash -c 'mongo admin --username="${MONGODB_ADMIN_USER}" --password="${MONGODB_ADMIN_PASS}" --eval "db.shutdownServer()"' docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml down docker stop nonjira-processor azure-processor nonazureboards-processor notification-consumer docker rm nonjira-processor azure-processor nonazureboards-processor notification-consumer docker-compose -f /docker-compose.yaml/file/location/docker-compose.yaml up -d |
NOTE Ignore any errors
Step 2 c. - Upgrade Steps
If your current version is 7.x.x and want to upgrade to 8.1.1
...
Please change below two properties in customapi.properties file, which is located in the path. /app/apps/properties/ and then follow step 1 above.
mongock.start-system-version=8.1.0
mongock.end-system-version=8.2.x