-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 771 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Version: 0.0.1
FROM java:8
MAINTAINER Paul Ambrose "pambrose@mac.com"
RUN apt-get update
RUN apt-get -y install maven
RUN apt-get clean
VOLUME ["/haptava/conf"]
COPY ./pom.xml /haptava/
COPY ./conf/ /haptava/conf/
ADD http://downloads.haptava.io/releases/0.9.39/lib/haptava-console.war /haptava/war/
RUN cd /haptava && mvn clean package && mv target/bin target/lib .
WORKDIR /haptava
# 8080 for console access, 8090 for admin servlets
EXPOSE 8080 8090
ENV HAPTAVA_HOME /haptava
ENTRYPOINT ["/haptava/bin/warserver.sh", \
"--port", "8080", \
"--war", "/haptava/war/haptava-console.war", \
"-Dhaptava.securecookies.enabled=false"]
# docker run -it --rm -p 8080:8080 haptava/console:0.9.39 -u fred -p topsecret -ln docker-console