Skip to content

Commit a1edba7

Browse files
committed
add dockerfile and update readme with instructions
1 parent 449bd4c commit a1edba7

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM tomcat:7
2+
USER root
3+
4+
ADD https://github.com/HCL-TECH-SOFTWARE/AltoroJ/releases/download/v3.4/altoromutual.war /usr/local/tomcat/webapps
5+
EXPOSE 8080
6+
7+
CMD /usr/local/tomcat/bin/catalina.sh run

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ AltoroJ has been developed using Eclipse and designed to run on Tomcat 7, but si
1818

1919
- Eclipse 4.6 or newer recommended (requires Java 8)
2020
- Tomcat 7.x
21-
- Gradle 3.0 to build from command line
21+
- Gradle 7.0 to build from command line
2222
- Gradle's Buildship Eclipse plug-in to automatically download required 3rd party libraries and run AltoroJ inside Eclipse
2323
-- Easiest way to install Buildship is from Eclipse Marketplace (inside Eclipse, go to Help -> Eclipse Marketplace)
2424

@@ -60,3 +60,12 @@ OR modify Tomcat’s startup to include –Duser.home=“<new_path>” in Java a
6060

6161
All files found in this project are licensed under the [Apache License 2.0](https://github.com/AppSecDev/AltoroJ/blob/master/LICENSE).
6262

63+
# Running in a docker container
64+
Provided is a [Dockerfile](Dockerfile) that can be used to easily setup altoromutual inside a container.
65+
66+
Requirements are :
67+
1. Install [docker](https://docs.docker.com/get-docker/)
68+
2. Build the image from the Altoro base directory:
69+
```docker build --name altoromutual .```
70+
3. Run the image
71+
```docker run -p8080:8080 altoromutual```

0 commit comments

Comments
 (0)