File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ RUN apt-get update && \
4040 tar -xzf - -C /opt \
4141 && ln -s /opt/apache-maven-3.6.0 /opt/maven \
4242 && ln -s /opt/maven/bin/mvn /usr/bin/mvn \
43- && groupadd -r jboss -g 1000 \
44- && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
43+ && groupadd -r jboss -g 1001 \
44+ && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
4545 && chmod 755 /opt/jboss
4646
4747ENV JAVA_HOME /etc/alternatives/jre
@@ -116,7 +116,7 @@ WORKDIR /opt/jboss
116116
117117# S2I requires a numeric, non-0 UID. This is the UID for the jboss user in the base image
118118
119- USER 1000
119+ USER 1001
120120RUN mkdir -p /opt/jboss/.m2
121121COPY settings.xml /opt/jboss/.m2/settings.xml
122122
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ RUN apt-get update && \
4040 tar -xzf - -C /opt \
4141 && ln -s /opt/apache-maven-3.5.4 /opt/maven \
4242 && ln -s /opt/maven/bin/mvn /usr/bin/mvn \
43- && groupadd -r jboss -g 1000 \
44- && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
43+ && groupadd -r jboss -g 1001 \
44+ && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
4545 && chmod 755 /opt/jboss
4646
4747ENV JAVA_HOME /etc/alternatives/jre
@@ -116,7 +116,7 @@ WORKDIR /opt/jboss
116116
117117# S2I requires a numeric, non-0 UID. This is the UID for the jboss user in the base image
118118
119- USER 1000
119+ USER 1001
120120RUN mkdir -p /opt/jboss/.m2
121121COPY settings.xml /opt/jboss/.m2/settings.xml
122122
Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ RUN yum -y update \
5252 tar -xzf - -C /opt \
5353 && ln -s /opt/apache-maven-{{= mavenVersion }} /opt/maven \
5454 && ln -s /opt/maven/bin/mvn /usr/bin/mvn \
55- && groupadd -r jboss -g 1000 \
56- && useradd -u 1000 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
55+ && groupadd -r jboss -g 1001 \
56+ && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s /sbin/nologin -c "JBoss user" jboss \
5757 && chmod 755 /opt/jboss
5858
5959ENV JAVA_HOME /etc/alternatives/jre
@@ -114,7 +114,7 @@ USER 185
114114RUN mkdir -p /home/jboss/.m2
115115COPY settings.xml /home/jboss/.m2/settings.xml
116116{{??}}
117- USER 1000
117+ USER 1001
118118RUN mkdir -p /opt/jboss/.m2
119119COPY settings.xml /opt/jboss/.m2/settings.xml
120120{{?}}
You can’t perform that action at this time.
0 commit comments