diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..64b1abd0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM tomcat:7 +USER root + +ADD https://github.com/HCL-TECH-SOFTWARE/AltoroJ/releases/download/v3.4/altoromutual.war /usr/local/tomcat/webapps +EXPOSE 8080 + +CMD /usr/local/tomcat/bin/catalina.sh run diff --git a/README.md b/README.md index 7240bab2..11479f68 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ AltoroJ has been developed using Eclipse and designed to run on Tomcat 7, but si - Eclipse 4.6 or newer recommended (requires Java 8) - Tomcat 7.x -- Gradle 3.0 to build from command line +- Gradle 7.0 to build from command line - Gradle's Buildship Eclipse plug-in to automatically download required 3rd party libraries and run AltoroJ inside Eclipse -- Easiest way to install Buildship is from Eclipse Marketplace (inside Eclipse, go to Help -> Eclipse Marketplace) @@ -60,3 +60,12 @@ OR modify Tomcat’s startup to include –Duser.home=“” in Java a All files found in this project are licensed under the [Apache License 2.0](https://github.com/AppSecDev/AltoroJ/blob/master/LICENSE). +# Running in a docker container +Provided is a [Dockerfile](Dockerfile) that can be used to easily setup altoromutual inside a container. + +Requirements are : +1. Install [docker](https://docs.docker.com/get-docker/) +2. Build the image from the Altoro base directory: +```docker build --name altoromutual .``` +3. Run the image +```docker run -p8080:8080 altoromutual``` \ No newline at end of file