Docker Deployment

Prerequisites

For more details, please refer to Prerequisites.

Setup

For more details, please refer to Setup.

application.yaml

For more details, please refer to application.yaml.

Note: Both Docker deployment and Manual deployment require the same Prerequisites, Setup, and applicaiton.yaml file.

Running Docker

Docker Login

Login to the container-registry.oracle.com to pull the required images using the below command:

# docker login container-registry.oracle.com
Username
Password

Login successful.

Use Oracle SSO username and password to log in to the Oracle Registry.

To build the image and run the container:

  1. Go to the upgradeutility folder where docker file is present.

    upgradeutility folder where docker file

  2. Build the docker image using the below command:

    docker build --network=host -t upgradeutility:12.0.3.

  3. Run the container using the below command:

    The master password which was used to encrypt the password earlier will be set as system property using docker run command via SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption

    docker run -d --restart unless-stopped --network=host --privileged -v /scratch/oipa/docker/upgradeutility/conf/:/usr/local/upgradeutility/conf/ -v /scratch/oipa/docker/upgradeutility/logging.properties:/usr/local/upgradeutility/logging.properties -e SECURE_CONFIG_AES_MASTER_PWD=myMasterPasswordForEncryption --name upgradeutility upgradeutility:12.0.3

  4. Make sure the container starts without any exception. To check the logs use

    docker logs -f upgradeutility

    Upgradeutility Exception