Skip to content

Commit

Permalink
add dockerfile and update readme with instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
trabetti-hcl committed Dec 13, 2022
1 parent 449bd4c commit a1edba7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -60,3 +60,12 @@ OR modify Tomcat’s startup to include –Duser.home=“<new_path>” 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```

0 comments on commit a1edba7

Please sign in to comment.