@@ -37,13 +37,13 @@ RUN apt-get update \
37
37
38
38
# Fetch and install SWFTools
39
39
RUN wget -nc https://www.silverpeas.org/files/swftools-bin-0.9.2.zip \
40
- && echo 'd40bd091c84bde2872f2733a3c767b3a686c8e8477a3af3a96ef347cf05c5e43 * swftools-bin-0.9.2.zip' | sha256sum - \
40
+ && echo 'd40bd091c84bde2872f2733a3c767b3a686c8e8477a3af3a96ef347cf05c5e43 swftools-bin-0.9.2.zip' | sha256sum -c --status - \
41
41
&& unzip swftools-bin-0.9.2.zip -d / \
42
42
&& rm swftools-bin-0.9.2.zip
43
43
44
44
# Fetch and install PDF2JSON
45
45
RUN wget -nc https://www.silverpeas.org/files/pdf2json-bin-0.68.zip \
46
- && echo 'eec849cdd75224f9d44c0999ed1fbe8764a773d8ab0cf7fff4bf922ab81c9f84 * pdf2json-bin-0.68.zip' | sha256sum - \
46
+ && echo 'eec849cdd75224f9d44c0999ed1fbe8764a773d8ab0cf7fff4bf922ab81c9f84 pdf2json-bin-0.68.zip' | sha256sum -c --status - \
47
47
&& unzip pdf2json-bin-0.68.zip -d / \
48
48
&& rm pdf2json-bin-0.68.zip
49
49
@@ -96,7 +96,7 @@ ENV SILVERPEAS_VERSION=TARGET_SILVERPEAS_VERSION
96
96
ENV WILDFLY_VERSION=TARGET_WILDFLY_VERSION
97
97
LABEL name="Silverpeas TARGET_SILVERPEAS_VERSION" description="Image to install and to run Silverpeas TARGET_SILVERPEAS_VERSION" vendor="Silverpeas" version="TARGET_SILVERPEAS_VERSION" build=1
98
98
99
- # Fetch both Silverpeas and Wildfly and unpack them into /opt
99
+ # Fetch both Silverpeas, Wildfly, and the JCR migration script and unpack them into /opt
100
100
RUN wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-wildfly${WILDFLY_VERSION%.?.?}.zip \
101
101
&& wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-wildfly${WILDFLY_VERSION%.?.?}.zip.asc \
102
102
&& gpg --keyserver keys.openpgp.org --recv-keys 3F4657EF9C591F2FEA458FEBC19391EB3DF442B6 \
@@ -106,16 +106,14 @@ RUN wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-w
106
106
&& unzip wildfly-${WILDFLY_VERSION}.Final.zip -d /opt \
107
107
&& mv /opt/silverpeas-${SILVERPEAS_VERSION}-wildfly${WILDFLY_VERSION%.?.?} /opt/silverpeas \
108
108
&& mv /opt/wildfly-${WILDFLY_VERSION}.Final /opt/wildfly \
109
+ && wget -nc https://www.silverpeas.org/files/oak-migrate.zip \
110
+ && echo '02d21f69004f2d9e634e82ec062d94521bd6bc0385d7c0ddf9af261cb63afdbb oak-migrate.zip' | sha256sum -c --status - \
111
+ && mkdir -p /opt/oak-migration \
112
+ && unzip oak-migrate.zip -d /opt/oak-migration/ \
113
+ && chmod +x /opt/oak-migration/oak-migrate.sh \
109
114
&& rm *.zip \
110
115
&& mkdir -p /root/.m2
111
116
112
- # Install the JCR migration script
113
- COPY src/oak-migrate.zip /opt/
114
- RUN mkdir /opt/oak-migration \
115
- && unzip /opt/oak-migrate.zip -d /opt/oak-migration/ \
116
- && chmod +x /opt/oak-migration/oak-migrate.sh \
117
- && rm /opt/oak-migrate.zip
118
-
119
117
# Copy the Maven settings.xml required to install Silverpeas by fetching the software bundles from
120
118
# the Silverpeas Nexus Repository
121
119
COPY src/settings.xml /root/.m2/
@@ -131,11 +129,12 @@ COPY src/run.sh /opt/
131
129
COPY src/converter.groovy ${SILVERPEAS_HOME}/configuration/silverpeas/
132
130
133
131
# Assemble Silverpeas
134
- RUN sed -i -e "s/SILVERPEAS_VERSION/${SILVERPEAS_VERSION}/g" ${SILVERPEAS_HOME}/bin/silverpeas.gradle \
135
- && echo "Construct Silverpeas ${SILVERPEAS_VERSION}" \
136
- && ./silverpeas assemble || eval "cat ../log/build-* && exit 1" \
137
- && rm ../log/build-* \
138
- && touch .install
132
+ RUN set -eux; \
133
+ sed -i -e "s/SILVERPEAS_VERSION/${SILVERPEAS_VERSION}/g" ${SILVERPEAS_HOME}/bin/silverpeas.gradle; \
134
+ echo "Construct Silverpeas ${SILVERPEAS_VERSION}"; \
135
+ ./silverpeas assemble || (cat ../log/build-* && exit 1); \
136
+ rm ../log/build-*; \
137
+ touch .install;
139
138
140
139
#
141
140
# Expose image entries. By default, when running, the container will set up Silverpeas and Wildfly
@@ -149,5 +148,5 @@ EXPOSE 8000 9990
149
148
# the data, the properties and the workflow definitions that are produced in Silverpeas.
150
149
VOLUME ["/opt/silverpeas/log", "/opt/silverpeas/data", "/opt/silverpeas/properties", "/opt/silverpeas/xmlcomponents/workflows"]
151
150
152
- # What to execute by default when running the container
151
+ # What to execute by default when running the container.
153
152
CMD ["/opt/run.sh"]
0 commit comments