Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You must have Docker Engine installed. See https://docs.docker.com/get-docker/ for information on how to do that.

Start a command session to the Docker host and make sure you can run docker commands. If necessary sudo to root or other user.

...

Here are main steps for this type of docker image. If you are trying to upgrade FlexDeploy for Docker, please following FlexDeploy Upgrade - Docker.

  1. Setup docker volume folder and copy plugins in it from download zip.

  2. Setup FlexDeploy Database

  3. Pull docker image

  4. Start container using specific image.

Step 1 - Setup Docker Volume Folder on Docker Host

...

Tip

If you need to use additional libraries or files you can place them under /scratch/DockerVolume/flexdeploy. You can then copy the neccessary necessary file from inside of the container to wherever they need to go. For example any additional libraries can go from /home/oracle to /usr/local/tomcat/libext.

...

The following should be configured

  1. p - in this example 8000 is the port which FlexDeploy will be accessed on mapping to port 8080 in the container

  2. FLEX_DB_URL - jdbc URL for accessing the database. See below for syntax

  3. FD_ADMIN_PWD - Password for the fdadmin user in the database

  4. TZ - Time zone for the container. Given example is America/Chicago.

  5. dbtype - if you are using postgres or oracle database.

  6. INFLUX_DB_USER - Username for the built in influxdb. This can be any username of your choosing.

  7. INFLUX_DB_PASSWORD - Password for the built in influxdb. Username and password are only used upon first initialization. After that token is used to connect to the database. This can be any random secure word/text of your choosing.

  8. INFLUX_DB_TOKEN - Token used to connect to the built in influxdb. This can be any random secure word/text of your choosing.

  9. v - This will set where your application, repository, vsm and logs folders will go on the docker host. Everything before the colon is on the local machine, after is inside the container. Leave that as /home/oracle

  10. Last is the image which will be flexdeploy/fd_tcat: and the version you want to run.

Code Block
languagebash
docker run --name flexdeploy -p 8000:8080 -e FLEX_DB_URL="jdbc:oracle:thin:@URL:PORT:xe" -e FD_ADMIN_PWD=DATABASEPASSWORD -e TZ=America/Chicago -e dbtype=oracle|postgres -e INFLUX_DB_USER=flexdeploy -e INFLUX_DB_PASSWORD=INFLUXDBPASSWORD -e INFLUX_DB_TOKEN=INFLXUDBTOKENHERE -v /scratch/DockerVolume/flexdeploy:/home/oracle flexdeploy/fd_tcat:VERSION

...