Public Repository

Last pushed: a year ago
Short Description
Starts a tomcat configured with the environment variables passed to docker
Full Description

How to configure this docker container:

WAR from a public url:

docker run -it --rm \
-e WAR_URL=https://s3-eu-west-1.amazonaws.com/mybucket/myapp.0.1.0.war \
-e JDBC_NAME=jdbc/mydb \
-e JDBC_URL=jdbc:mysql://database.cssdfnwds1q.eu-west-1.rds.amazonaws.com:3306/apicore \
-e JDBC_USERNAME=dbusername \
-e JDBC_PASSWORD=dbpassword \
-e JAVA_OPTS="-Dspring.profiles.active=production" \
-p 80:8080 adriafp/tomcat8

WAR from a S3 bucket:

docker run -it --rm \
-e S3_URL=s3://mybucket/myapp.0.1.0.war \
-e AWS_ACCESS_KEY_ID=AKIAIA3EXAMPLE7RA7FB \
-e AWS_SECRET_ACCESS_KEY=90U9BpEXAMPLEasdasdM1/LYu6fC+wBIqd \
-e AWS_DEFAULT_REGION=eu-west-1 \
-e CACERTS_URL=s3://mybucket/cacerts \
-e JDBC_NAME=jdbc/mydb \
-e JDBC_URL=jdbc:mysql://database.cssdfnwds1q.eu-west-1.rds.amazonaws.com:3306/apicore \
-e JDBC_USERNAME=dbusername \
-e JDBC_PASSWORD=dbpassword \
-e JAVA_OPTS="-Dspring.profiles.active=production" \
-p 80:8080 adriafp/tomcat8

Login to bash into container

docker run -it --rm -e USE_BASH=true -p 80:8080 adriafp/tomcat8
Docker Pull Command
Owner
adriafp

Comments (0)