This page provides instructions for upgrading a FlexDeploy to use newer version of FlexDeploy Docker image. You will need to download appropriate version of FlexDeploy Tomcat distribution for database scripts and plugins.
Upgrade InstructionsInstructions
Step 1. Stop the Docker container using name. docker stop <name>
...
For back-out purposes, it is highly recommended that a database backup of the database be taken using standard tools like RMAN for Oracle. Another option would be to export the FD, FD_ADMIN, and FF schemas using data pump. The schemas can be exported using the following data pump command for Oracle as shown below. Follow standard procedures for PostgreSQL for database backup.
Tip |
---|
Recommendation for Oracle database backup
|
It is recommended that a backup of the artifact repository file system be taken in case a back-out is required. The location of the artifact repository can be identified by looking at value of -Dflexagon.fd.repository.root in setenvsetenvoverrides.sh or /setenv.bat file. sh This file will be in <FlexDeploy Home>/apache-tomcat-flexdeploy/bin/. Standard file backup procedures can be followed. Optionally, the following command (unix only) can be used to create a tar file backup of the entire directory.
Tip | |
---|---|
title | Backup Artifact Repository
|
...
Step 3. Upgrade the FlexDeploy schemas
Include Page | ||||
---|---|---|---|---|
|
...
Step 4. Copy plugins from download zip for auto upload. This would be a volume that you had configured during installation process.
Include Page | ||||
---|---|---|---|---|
|
...
Step 5 . Pull and start new docker image for FlexDeploy.
Code Block |
---|
docker pull flexdeploy/fd_tcat_53:5.4.0.0 |
User same values as used for previous version of FlexDeploy when starting new version of image.
Code Block |
---|
docker run --name flexdeploy53 -p 8004:8080 -e FLEX_DB_URL="jdbc:oracle:thin:@129.213.91.244:1521:xe" -e FD_ADMIN_PWD="welcome1" -e TZ=America/Chicago -e dbtype=oracle|postgres -v /scratch/DockerVolume/flexdeploy:/home/oracle flexdeploy/fd_tcat_54:5.4.0.0 |
Tip |
---|
Example JDBC URL (FLEX_DB_URL)
|
...
Step 6. Launch FlexDeploy in your browser - http://<hostname>:<port>/flexdeploy
...