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-79.0.0.0/application/plugins/*.jar . |
...
p
- in this example 8000 is the port which FlexDeploy will be accessed on mapping to port 8080 in the containerFLEX_DB_URL
- jdbc URL for accessing the database. See below for syntaxFD_ADMIN_PWD
- Password for the fdadmin user in the databaseTZ
- Time zone for the container. Given example is America/Chicago.dbtype
- if you are using postgres or oracle database.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.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.MAX_IDLE_CONNECTIONS
- The maximum number of connections that should be kept in the pool at all times. Default is 100.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).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.
Last is the image which will be flexdeploy/fd_tcat: and the version you want to run.
Code Block | ||
---|---|---|
| ||
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 |
...