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.

...

Code Block
# adjust folder location as necessary for your Docker Host
mkdir -p /scratch/DockerVolume/flexdeploy
chmod -R 777 /scratch/DockerVolume
cd /scratch/DockerVolume
mkdir -p application/plugins
cd application/plugins
cp ~/Tomcat_Complete-78.0.0.08/application/plugins/*.jar .

...

  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. 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 /dockervolume.

  7. MAX_ACTIVE_CONNECTIONS - The maximum number of active DB connections that can be allocated from the connection pool at the same time. Default value is 100.

  8. MAX_IDLE_CONNECTIONS - The maximum number of connections that should be kept in the pool at all times. Default is 100.

  9. MAX_WAIT_TIME_MILLIS - The maximum number of milliseconds that the pool will wait when there are no available connections. Default is 30000(30 Secs).

  10. Optionally, you can add a -d to run container in background and print container ID. The -a option can also be added to view logs.

  11. 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 MAX_ACTIVE_CONNECTIONS=100 -e MAX_IDLE_CONNECTIONS=100 -e MAX_WAIT_TIME_MILLIS=30000 -v /scratch/flexdeploy:/dockervolume flexdeploy/fd_tcat:VERSION

...