Skip to content

Commit 77c7c86

Browse files
committed
As silverpeas is ran as root in the docker container, then copy settings.xml in the /root/.m2/ directory explicitly (the HOME env var isn't set with the COPY statement)
1 parent 15a9113 commit 77c7c86

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ RUN wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-w
8080
&& mv /opt/silverpeas-${SILVERPEAS_VERSION}-wildfly${WILDFLY_VERSION%.?.?} /opt/silverpeas \
8181
&& mv /opt/wildfly-${WILDFLY_VERSION}.Final /opt/wildfly \
8282
&& rm *.zip \
83-
&& mkdir -p ${HOME}/.m2 \
83+
&& mkdir -p /root/.m2
8484

8585
# Copy the Maven settings.xml required to install Silverpeas by fetching the software bundles from
8686
# the Silverpeas Nexus Repository
87-
COPY src/settings.xml ${HOME}/.m2/
87+
COPY src/settings.xml /root/.m2/
8888

8989
# Set the default working directory
9090
WORKDIR ${SILVERPEAS_HOME}/bin

Dockerfile.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ RUN wget -nc https://www.silverpeas.org/files/silverpeas-${SILVERPEAS_VERSION}-w
8080
&& mv /opt/silverpeas-${SILVERPEAS_VERSION}-wildfly${WILDFLY_VERSION%.?.?} /opt/silverpeas \
8181
&& mv /opt/wildfly-${WILDFLY_VERSION}.Final /opt/wildfly \
8282
&& rm *.zip \
83-
&& mkdir -p ${HOME}/.m2 \
83+
&& mkdir -p /root/.m2
8484

8585
# Copy the Maven settings.xml required to install Silverpeas by fetching the software bundles from
8686
# the Silverpeas Nexus Repository
87-
COPY src/settings.xml ${HOME}/.m2/
87+
COPY src/settings.xml /root/.m2/
8888

8989
# Set the default working directory
9090
WORKDIR ${SILVERPEAS_HOME}/bin

0 commit comments

Comments
 (0)