Skip to content

Commit cb49f87

Browse files
Merge pull request #54 from TIBCOSoftware/develop
Merge changes from develop
2 parents 6c53bad + 235a4c0 commit cb49f87

34 files changed

+967
-411
lines changed

.env

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,24 @@ TOMCAT_BASE_IMAGE=tomcat:9.0.31-jdk11-openjdk
2727
JASPERREPORTS_SERVER_VERSION=7.5.1
2828
JASPERREPORTS_SERVER_IMAGE_TAG=7.5.1
2929

30-
# Amazon Corretto works
30+
# 7.8.0 - Docker Hub. Debian based
31+
JAVA_BASE_IMAGE=openjdk:11.0
32+
TOMCAT_BASE_IMAGE=tomcat:9.0.37-jdk11-openjdk
33+
JASPERREPORTS_SERVER_VERSION=7.8.0
34+
JASPERREPORTS_SERVER_IMAGE_TAG=7.8.0
35+
36+
# Amazon Corretto 7.5.0
3137
#JAVA_BASE_IMAGE=amazoncorretto:11
3238
#TOMCAT_BASE_IMAGE=tomcat:9.0-jdk11-corretto
39+
#JASPERREPORTS_SERVER_VERSION=7.5.0
3340
#JASPERREPORTS_SERVER_IMAGE_TAG=7.5.0-correto11
3441

42+
# Amazon Corretto 7.8.0
43+
#JAVA_BASE_IMAGE=amazoncorretto:11
44+
#TOMCAT_BASE_IMAGE=tomcat:9.0-jdk11-corretto
45+
#JASPERREPORTS_SERVER_VERSION=7.8.0
46+
#JASPERREPORTS_SERVER_IMAGE_TAG=7.8.0-corretto11
47+
3548
#Jaspersoft CI
3649
#JASPERREPORTS_SERVER_APP_IMAGE_NAME=jrs-openjdk
3750
#JASPERREPORTS_SERVER_CMDLINE_IMAGE_NAME=jrs-openjdk-cmdline
@@ -44,20 +57,22 @@ IMAGE_REPOSITORY=
4457
JASPERREPORTS_SERVER_APP_IMAGE_NAME=jasperserver-pro
4558
JASPERREPORTS_SERVER_CMDLINE_IMAGE_NAME=jasperserver-pro-cmdline
4659

60+
JAVASCRIPT_RENDERING_ENGINE=chromium
61+
4762
### Runtime args
4863

4964
# default database type
50-
#DB_TYPE=postgresql
65+
# DB_TYPE=postgresql
5166

5267
# localhost on Windows and Mac
53-
DB_HOST=host.docker.internal
68+
# DB_HOST=host.docker.internal
5469

55-
#DB_HOST=localhost
70+
# DB_HOST=localhost
5671

5772
# defaults for PostgreSQL
58-
#DB_PORT=5432
59-
#DB_USER=postgres
60-
#DB_PASSWORD=postgres
73+
# DB_PORT=5432
74+
# DB_USER=postgres
75+
# DB_PASSWORD=postgres
6176

6277
# default database name
6378
# DB_NAME=jasperserver

Dockerfile

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,40 @@
1212
# Certified version of Tomcat for JasperReports Server 7.5.0 commercial editions
1313
# ARG TOMCAT_BASE_IMAGE=tomcat:9.0-jdk11-corretto
1414

15-
ARG TOMCAT_BASE_IMAGE=tomcat:9.0.27-jdk11-openjdk
15+
# Certified version of Tomcat for JasperReports Server 7.8.0 commercial editions
16+
# ARG TOMCAT_BASE_IMAGE=tomcat:9.0.37-jdk11-corretto
17+
18+
ARG TOMCAT_BASE_IMAGE=tomcat:9.0.37-jdk11-openjdk
1619
FROM ${TOMCAT_BASE_IMAGE}
1720

1821
ARG DN_HOSTNAME
1922
ARG KS_PASSWORD
2023
ARG JRS_HTTPS_ONLY
2124
ARG HTTP_PORT
2225
ARG HTTPS_PORT
26+
ARG JAVASCRIPT_RENDERING_ENGINE
2327
ARG POSTGRES_JDBC_DRIVER_VERSION
2428
ARG JASPERREPORTS_SERVER_VERSION
2529
ARG EXPLODED_INSTALLER_DIRECTORY
2630

27-
ENV PHANTOMJS_VERSION ${PHANTOMJS_VERSION:-2.1.1}
2831
ENV DN_HOSTNAME ${DN_HOSTNAME:-localhost.localdomain}
2932
ENV KS_PASSWORD ${KS_PASSWORD:-changeit}
30-
ENV JRS_HTTPS_ONLY ${JRS_HTTPS_ONLY:-false}
31-
ENV HTTP_PORT ${HTTP_PORT:-8080}
32-
ENV HTTPS_PORT ${HTTPS_PORT:-8443}
33+
ENV JRS_HTTPS_ONLY ${JRS_HTTPS_ONLY:-false}
34+
ENV HTTP_PORT ${HTTP_PORT:-8080}
35+
ENV HTTPS_PORT ${HTTPS_PORT:-8443}
36+
ENV JAVASCRIPT_RENDERING_ENGINE ${JAVASCRIPT_RENDERING_ENGINE:-chromium}
37+
3338
ENV POSTGRES_JDBC_DRIVER_VERSION ${POSTGRES_JDBC_DRIVER_VERSION:-42.2.5}
34-
ENV JASPERREPORTS_SERVER_VERSION ${JASPERREPORTS_SERVER_VERSION:-7.5.1}
39+
ENV JASPERREPORTS_SERVER_VERSION ${JASPERREPORTS_SERVER_VERSION:-7.8.0}
3540
ENV EXPLODED_INSTALLER_DIRECTORY ${EXPLODED_INSTALLER_DIRECTORY:-resources/jasperreports-server-pro-$JASPERREPORTS_SERVER_VERSION-bin}
3641

37-
# This Dockerfile requires an exploded JasperReports Server WAR file installer file
42+
# This Dockerfile requires an exploded JasperReports Server WAR file installer file
3843
# EXPLODED_INSTALLER_DIRECTORY (default jasperreports-server-bin/) directory below the Dockerfile.
3944

40-
RUN mkdir -p /usr/src/jasperreports-server
41-
42-
# get the WAR and license
45+
# deploy the WAR to Tomcat
4346
COPY ${EXPLODED_INSTALLER_DIRECTORY}/jasperserver-pro $CATALINA_HOME/webapps/jasperserver-pro/
47+
48+
#copy copyright notices
4449
COPY ${EXPLODED_INSTALLER_DIRECTORY}/TIB* /usr/src/jasperreports-server/
4550

4651
# Ant
@@ -55,42 +60,24 @@ COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/bin/groovy /usr/src/jasperrepor
5560

5661
# supporting resources
5762
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/conf_source /usr/src/jasperreports-server/buildomatic/conf_source/
58-
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/target /usr/src/jasperreports-server/buildomatic/target/
63+
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/lib /usr/src/jasperreports-server/buildomatic/lib/
5964

60-
COPY scripts /
65+
# js-docker specific scripts and resources
66+
COPY scripts /usr/src/jasperreports-server/scripts/
6167

62-
RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \
63-
chmod +x /*.sh && \
64-
/installPackagesForJasperserver-pro.sh > /dev/null && \
65-
echo "finished installing packages" && \
68+
RUN chmod +x /usr/src/jasperreports-server/scripts/*.sh && \
69+
/usr/src/jasperreports-server/scripts/installPackagesForJasperserver-pro.sh && \
6670
rm -rf $CATALINA_HOME/webapps/ROOT && \
6771
rm -rf $CATALINA_HOME/webapps/docs && \
6872
rm -rf $CATALINA_HOME/webapps/examples && \
6973
rm -rf $CATALINA_HOME/webapps/host-manager && \
7074
rm -rf $CATALINA_HOME/webapps/manager && \
7175
#
72-
cp -R /buildomatic /usr/src/jasperreports-server/buildomatic && \
73-
rm /installPackagesForJasperserver*.sh && rm -rf /buildomatic && \
76+
cp -R /usr/src/jasperreports-server/scripts/buildomatic /usr/src/jasperreports-server/buildomatic && \
7477
chmod +x /usr/src/jasperreports-server/buildomatic/js-* && \
7578
chmod +x /usr/src/jasperreports-server/apache-ant/bin/* && \
7679
java -version && \
77-
# Extract phantomjs, move to /usr/local/share/phantomjs, link to /usr/local/bin.
78-
# Comment out if phantomjs not required.
79-
wget "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2" \
80-
-O /tmp/phantomjs.tar.bz2 --no-verbose && \
81-
tar -xjf /tmp/phantomjs.tar.bz2 -C /tmp && \
82-
rm -f /tmp/phantomjs.tar.bz2 && \
83-
mv /tmp/phantomjs*linux-x86_64 /usr/local/share/phantomjs && \
84-
ln -sf /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin && \
85-
# In case you wish to download from a different location you can manually
86-
# download the archive and copy from resources/ at build time. Note that you
87-
# also # need to comment out the preceding RUN command
88-
#COPY resources/phantomjs*bz2 /tmp/phantomjs.tar.bz2
89-
#RUN tar -xjf /tmp/phantomjs.tar.bz2 -C /tmp && \
90-
# rm -f /tmp/phantomjs.tar.bz2 && \
91-
# mv /tmp/phantomjs*linux-x86_64 /usr/local/share/phantomjs && \
92-
# ln -sf /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin && \
93-
rm -rf /tmp/* && \
80+
#rm -rf /tmp/* && \
9481
#
9582
wget "https://jdbc.postgresql.org/download/postgresql-${POSTGRES_JDBC_DRIVER_VERSION}.jar" \
9683
-P /usr/src/jasperreports-server/buildomatic/conf_source/db/postgresql/jdbc --no-verbose && \
@@ -102,12 +89,12 @@ RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \
10289
-storetype PKCS12 \
10390
-storepass "${KS_PASSWORD}" \
10491
-keypass "${KS_PASSWORD}" \
105-
-keystore /root/.keystore.p12 && \
106-
keytool -list -keystore /root/.keystore.p12 -storepass "${KS_PASSWORD}" -storetype PKCS12 && \
107-
xmlstarlet ed --inplace --subnode "/Server/Service" --type elem \
92+
-keystore $CATALINA_HOME/conf/.keystore.p12 && \
93+
keytool -list -keystore $CATALINA_HOME/conf/.keystore.p12 -storepass "${KS_PASSWORD}" -storetype PKCS12 && \
94+
xmlstarlet ed --inplace --subnode "/Server/Service" --type elem \
10895
-n Connector -v "" --var connector-ssl '$prev' \
10996
--insert '$connector-ssl' --type attr -n port -v "${HTTPS_PORT}" \
110-
--insert '$connector-ssl' --type attr -n protocol -v \
97+
--insert '$connector-ssl' --type attr -n protocol -v \
11198
"org.apache.coyote.http11.Http11NioProtocol" \
11299
--insert '$connector-ssl' --type attr -n maxThreads -v "150" \
113100
--insert '$connector-ssl' --type attr -n SSLEnabled -v "true" \
@@ -118,15 +105,15 @@ RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \
118105
--insert '$connector-ssl' --type attr -n keystorePass \
119106
-v "${KS_PASSWORD}"\
120107
--insert '$connector-ssl' --type attr -n keystoreFile \
121-
-v "/root/.keystore.p12" \
108+
-v "$CATALINA_HOME/conf/.keystore.p12" \
122109
${CATALINA_HOME}/conf/server.xml
123110

124111
# Expose ports. Note that you must do one of the following:
125112
# map them to local ports at container runtime via "-p 8080:8080 -p 8443:8443"
126113
# or use dynamic ports.
127114
EXPOSE ${HTTP_PORT} ${HTTPS_PORT}
128115

129-
ENTRYPOINT ["/entrypoint.sh"]
116+
ENTRYPOINT ["/usr/src/jasperreports-server/scripts/entrypoint.sh"]
130117

131118
# Default action executed by entrypoint script.
132119
CMD ["run"]

Dockerfile-cmdline

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# set certified JRE image version for the
66
# JasperReports Server command line tools
77

8-
# for JasperReports Server 7.5
8+
# for JasperReports Server 7.5.0 and 7.8.0
99
# ARG JAVA_BASE_IMAGE=amazoncorretto:11
1010

11-
ARG JAVA_BASE_IMAGE=openjdk:11.0-slim
11+
ARG JAVA_BASE_IMAGE=openjdk:11.0
1212

1313
FROM ${JAVA_BASE_IMAGE}
1414

@@ -17,7 +17,7 @@ ARG JASPERREPORTS_SERVER_VERSION
1717
ARG EXPLODED_INSTALLER_DIRECTORY
1818

1919
ENV POSTGRES_JDBC_DRIVER_VERSION ${POSTGRES_JDBC_DRIVER_VERSION:-42.2.5}
20-
ENV JASPERREPORTS_SERVER_VERSION ${JASPERREPORTS_SERVER_VERSION:-7.5.1}
20+
ENV JASPERREPORTS_SERVER_VERSION ${JASPERREPORTS_SERVER_VERSION:-7.8.0}
2121
ENV EXPLODED_INSTALLER_DIRECTORY ${EXPLODED_INSTALLER_DIRECTORY:-resources/jasperreports-server-pro-$JASPERREPORTS_SERVER_VERSION-bin}
2222

2323
# This Dockerfile requires an exploded JasperReports Server WAR file installer file
@@ -26,8 +26,6 @@ ENV EXPLODED_INSTALLER_DIRECTORY ${EXPLODED_INSTALLER_DIRECTORY:-resources/jaspe
2626
# COPY the buildomatic, command line scripts and supporting resources
2727
# from the JasperReports Server WAR file installer into the image
2828

29-
RUN mkdir -p /usr/src/jasperreports-server
30-
3129
# Ant
3230
COPY ${EXPLODED_INSTALLER_DIRECTORY}/apache-ant /usr/src/jasperreports-server/apache-ant/
3331

@@ -45,25 +43,24 @@ COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/bin/groovy /usr/src/jasperrepor
4543
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/jdbc-dep /usr/src/jasperreports-server/buildomatic/bin/jdbc-dep/
4644
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/install_resources /usr/src/jasperreports-server/buildomatic/install_resources/
4745
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/conf_source /usr/src/jasperreports-server/buildomatic/conf_source/
48-
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/target /usr/src/jasperreports-server/buildomatic/target/
46+
COPY ${EXPLODED_INSTALLER_DIRECTORY}/buildomatic/lib /usr/src/jasperreports-server/buildomatic/lib/
4947

50-
COPY scripts /
48+
# js-docker specific scripts and resources
49+
COPY scripts /usr/src/jasperreports-server/scripts/
5150

52-
RUN echo "apt-get" && \
53-
echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \
54-
chmod +x /*.sh && \
55-
/installPackagesForJasperserver-pro-cmdline.sh && \
51+
RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null && \
52+
chmod +x /usr/src/jasperreports-server/scripts/*.sh && \
53+
/usr/src/jasperreports-server/scripts/installPackagesForJasperserver-pro-cmdline.sh && \
5654
echo "finished installing packages" && \
57-
cp -R /buildomatic /usr/src/jasperreports-server/buildomatic && \
58-
rm /installPackagesForJasperserver*.sh && rm -rf /buildomatic && \
55+
cp -R /usr/src/jasperreports-server/scripts/buildomatic /usr/src/jasperreports-server/buildomatic && \
5956
chmod +x /usr/src/jasperreports-server/buildomatic/js-* && \
6057
chmod +x /usr/src/jasperreports-server/buildomatic/bin/*.sh && \
6158
chmod +x /usr/src/jasperreports-server/apache-ant/bin/* && \
6259
java -version && \
6360
wget "https://jdbc.postgresql.org/download/postgresql-${POSTGRES_JDBC_DRIVER_VERSION}.jar" \
6461
-P /usr/src/jasperreports-server/buildomatic/conf_source/db/postgresql/jdbc --no-verbose
6562

66-
ENTRYPOINT ["/entrypoint-cmdline.sh"]
63+
ENTRYPOINT ["/usr/src/jasperreports-server/scripts/entrypoint-cmdline.sh"]
6764

6865
# Default action executed by entrypoint script.
6966
CMD ["init"]

0 commit comments

Comments
 (0)