forked from opengeospatial/teamengine-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.prototype
28 lines (20 loc) · 932 Bytes
/
Dockerfile.prototype
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
FROM tomcat:7.0-jre8
MAINTAINER Dirk Stenger <[email protected]>
MAINTAINER Torsten Friebe <[email protected]>
# add TEAM engine webapp
ADD teamengine-web-*.war /root/
RUN cd /root/ && unzip -q teamengine-web-*.war -d /usr/local/tomcat/webapps/teamengine
# add common libs
ADD teamengine-web-*-common-libs.zip /root/
RUN cd /root/ && unzip -q teamengine-web-*-common-libs.zip -d /usr/local/tomcat/lib
# add TEAM engine console
ADD teamengine-console-*-base.zip /root/
RUN cd /root/ && unzip -q teamengine-console-*-base.zip -d /root/te_base
# set TE_BASE
ENV JAVA_OPTS="-Xms1024m -Xmx2048m -DTE_BASE=/root/te_base"
ADD ets-*-ctl.zip /root/
RUN cd /root/ && for file in ets-*-ctl.zip; do unzip -q $file -d /root/te_base/scripts; done
ADD ets-*-deps.zip /root/
RUN cd /root/ && for file in ets-*-deps.zip; do unzip -q -o $file -d /usr/local/tomcat/webapps/teamengine/WEB-INF/lib; done
# run tomcat
CMD ["catalina.sh", "run"]