Skip to content

eyaldahari/docker-secured-tomcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Secured Apache Tomcat

Docker Image packaging for A hardened Apache Tomcat

This image extends the original Docker official image for Apache Tomcat (tomcat:jre8)

It adds security hardening to Apache Tomcat according to OWASP

How to use and run this Docker image

  • Make sure you have Docker installed

There are two options to take in order to use the image

  1. Docker pull the image by running:

$ docker pull eyaldahari/hardenedtomcat

Then run:

$ docker run -it --rm -p 8888:8080 eyaldahari/hardenedtomcat

  1. Build the image yourself:
  • Download/Clone this repository files to a directory (ex. /home/ubuntu/docker_tomcat)

  • Run the following command:

    $ docker build /home/ubuntu/docker_tomcat

  • Run the following command in order to get the new image id

    $ docker images

  • Assuming image id is: dd6a9057831e. In order to run the Apache Tomcat hardened container run:

    $ docker run -it --rm -p 8888:8080 dd6a9057831e

  • By default the command that run Tomcat Server is:

    $ catalina.sh run

After completing the steps above, a Hardened Tomcat server will be up listenning on port 8888. In order to connect to the server, open a browser at the following URL: http://docker-host-ip:8888 Once the container exits it will be removed automatically by Docker.

Follw me on

twitter | linkedin | blog

About

Docker Image packaging for A hardened Apache Tomcat https://tomcat.apache.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published