Skip to content

pascalgrimaud/docker-tomcat

Repository files navigation

[logo] (https://tomcat.apache.org/)

[Circle CI] (https://circleci.com/gh/pascalgrimaud/docker-tomcat)

Information

The base docker image :

The GitHub project :

Installation

You can clone this project and build with docker command :

git clone https://github.com/pascalgrimaud/docker-tomcat.git
cd docker-tomcat
docker build -t pascalgrimaud/tomcat:8.0.23 .

You can build directly from the GitHub project :

docker build -t pascalgrimaud/tomcat:8.0.23 github.com/pascalgrimaud/docker-tomcat.git

Help

To display usage :

docker run pascalgrimaud/tomcat:8.0.23 /help

Usage

Quick start with binding to port 8080 and random password :

docker run -d -p 8080:8080 pascalgrimaud/tomcat:8.0.23

To get the password :

docker logs <container id>

Start and set a specific password for Tomcat admin user :

docker run -d -p 8080:8080 -e TOMCAT_PASS="pass" pascalgrimaud/tomcat:8.0.23

If you forget the admin password, delete the file .password and restart the container :

docker exec -it <container id> rm /.password

Deploy a war

To deploy a specific file.war, you need to make another container. Create a new directory and put your file.war. Then, create a new Dockerfile :

FROM pascalgrimaud/tomcat:8.0.23
ADD file.war /opt/apache-tomcat-8.0.23/webapps/file.war

About

Apache Tomcat 8.0.23 container on Ubuntu 14.04

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages