ARTEMIS-3714 change Docker group and user IDs to 1001

Changed group and user ids to 1001 to allow Artemis user to be the own
of /var/lib/artemis-instance and /opt/activemq-artemis. Otherwise the
owner will be root (1000).

This was already done in Dockerfile-centos file.
This commit is contained in:
pringinacio 2022-03-07 15:00:29 +00:00 committed by Justin Bertram
parent 1cacedd0cf
commit 223698448e
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ ENV ANONYMOUS_LOGIN false
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
# add user and group for artemis
RUN groupadd -g 1000 -r artemis && useradd -r -u 1000 -g artemis artemis \
RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis \
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
rm -rf /var/lib/apt/lists/*

View File

@ -29,7 +29,7 @@ ENV ANONYMOUS_LOGIN false
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
# add user and group for artemis
RUN groupadd -g 1000 -r artemis && useradd -r -u 1000 -g artemis artemis \
RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis \
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
rm -rf /var/lib/apt/lists/*