Coder Social home page Coder Social logo

centos-tomcat's Introduction

Docker container: CentOS 7 + Java 8 + Tomcat 8

Build the image

git clone https://github.com/kirillF/centos-tomcat.git
cd centos-tomcat
docker build -t kirillf/centos-tomcat .

How to use

Put your war under the /opt/tomcat/webapps directory and run the following command.

docker run -v /opt/tomcat/webapps:/opt/tomcat/webapps -v /opt/tomcat/logs:/opt/tomcat/logs -p 8080:8080 -i -t --name centos-tomcat kirillf/centos-tomcat

Once you run it, you can start the container with docker start centos-tomcat in next time and log file will be under the /opt/tomcat/logs directory.

Also, if you got some error, you can remove the container with docker rm centos-tomcat. Your current container list will be show with docker ps -a.

For Mac user, you must share the directory /opt/tomcat/webapps and /opt/tomcat/logs on Docker > Preferences > File Sharing.

Versions

If you got error while build the docker image, please check the latest version of Java and Tomcat.

Software Version Note
CentOS 7
Java 8u162 Java Release Note
Apache Tomcat 8.5.28 Tomcat Download Page

Docker Official Image for Tomcat is also available.

centos-tomcat's People

Contributors

kirillf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.