docker-tomcat8 and docker-tomcat8-complete
Docker container for Tomcat8
"Apache Tomcat version 8.0 implements the Servlet 3.1 and JavaServer Pages 2.3 specifications from the Java Community Process, and includes many additional features that make it a useful platform for developing and deploying web applications and web services."
To install docker in Ubuntu 14.04 use the commands:
$ sudo apt-get update
$ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
To run container use the command below:
$ docker run -d -p 8080 quantumobject/docker-tomcat8
with default configuration:
or you can provide your own value when running the first time:
$ docker run -d -p 8080 -e ADMIN_USER=admin -e ADMIN_PASS=password quantumobject/docker-tomcat8
or you can change value at file /etc/tomcat8/tomcat-users.xml by
$ docker exec -it container_id /bin/bash
$ export TERM=xterm
$ nano /etc/tomcat8/tomcat-users.xml
Accessing the Tomcat8 applications:
After that check with your browser at addresses plus the port assigined by docker for port 8080:
If you need a database like MySQL or progreSQL you can link container :
$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -d mysql
Them link to Tomcat8 container
$ docker run -d -p 8080 --link [some-postgres|some-mysql]:db quantumobject/docker-tomcat8
where when been ask for database need to replace localhost for db.
Open Source application that you can deploy with this container
OpenMRS openmrs.org ==> example of deployment OpenMRS
"leading open source enterprise electronic medical record system platform"
GeoNetwork geonetwork-opensource.org ==> example of deployment GeoNetwork
"GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world."
GeoServer geoserver.org ==> example of deployment GeoServer
"GeoServer is an open source server for sharing geospatial data."
OpenSearchServer www.opensearchserver.com ==> example of deployment OpenSearchServer
"Open-source enterprise class search engine software"
Difference from quantumobject/docker-tomcat8 and quantumobject/docker-tomcat8-complete is that docker-tomcat8 is for used preference within the Dockerfile ( FROM quantumobject/docker-tomcat8 ) and docker-tomcat8-complete for used with tomcat8 manager to upload and deploy WAR application directly from the bownser.
About Tomcat8 tomcat.apache.org
To help improve this container quantumobject/docker-tomcat8
Exaple of Tomcat8
For additional info about us and our projects check our site www.quantumobject.com
Please try to give a substantial answer. If you wanted to comment on the question or answer, justuse the commenting tool. Please remember that you can alwaysrevise your answers - no need to answer the same question twice. Also, pleasedon't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/22/15, 6:30 PM|
|Seen: 1157 times|
|Last updated: 7/1/17, 7:15 PM|