Skip to content

Commit

Permalink
ARTEMIS-3714 change Docker group and user IDs to 1001
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pringinacio authored and jbertram committed Mar 9, 2022
1 parent 1cacedd commit 2236984
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion artemis-docker/Dockerfile-adoptopenjdk-11
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
2 changes: 1 addition & 1 deletion artemis-docker/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit 2236984

Please sign in to comment.