-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
32 lines (27 loc) · 1.25 KB
/
Dockerfile
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
30
31
32
FROM tomcat:7
MAINTAINER Jan Garaj [email protected]
ENV \
JS_VERSION=6.3.0 \
JS_Xmx=512m \
JS_MaxPermSize=256m \
JS_CATALINA_OPTS="-XX:+UseBiasedLocking -XX:BiasedLockingStartupDelay=0 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+CMSParallelRemarkEnabled -XX:+UseCompressedOops -XX:+UseCMSInitiatingOccupancyOnly" \
JS_DB_TYPE=mysql \
JS_DB_HOST=jasper.db \
JS_DB_PORT=3306 \
JS_DB_USER=jasper \
JS_DB_PASSWORD=my_password \
JASPERSERVER_HOME=/jasperserver \
JASPERSERVER_BUILD=/jasperserver/buildomatic
COPY entrypoint.sh /
RUN \
apt-get update && \
apt-get install -y vim netcat unzip && \
curl -SL http://sourceforge.net/projects/jasperserver/files/JasperServer/JasperReports%20Server%20Community%20Edition%20${JS_VERSION}/jasperreports-server-cp-${JS_VERSION}-bin.zip -o /tmp/jasperserver.zip && \
unzip /tmp/jasperserver.zip -d $JASPERSERVER_HOME && \
mv -v $JASPERSERVER_HOME/jasperreports-server-cp-${JS_VERSION}-bin/* $JASPERSERVER_HOME && \
chmod +x /entrypoint.sh && \
rm -rf $JASPERSERVER_HOME/jasperreports-server-cp-${JS_VERSION}-bin && \
rm -rf /tmp/* && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/entrypoint.sh"]
CMD ["run"]