From 223698448ea3efe9cd5ed64356ccddfc762cfd30 Mon Sep 17 00:00:00 2001 From: pringinacio Date: Mon, 7 Mar 2022 15:00:29 +0000 Subject: [PATCH] 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. --- artemis-docker/Dockerfile-adoptopenjdk-11 | 2 +- artemis-docker/Dockerfile-debian | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-docker/Dockerfile-adoptopenjdk-11 b/artemis-docker/Dockerfile-adoptopenjdk-11 index 833f7fc33d..499f8717e3 100644 --- a/artemis-docker/Dockerfile-adoptopenjdk-11 +++ b/artemis-docker/Dockerfile-adoptopenjdk-11 @@ -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/* diff --git a/artemis-docker/Dockerfile-debian b/artemis-docker/Dockerfile-debian index c7f933e41f..263dbb3a98 100644 --- a/artemis-docker/Dockerfile-debian +++ b/artemis-docker/Dockerfile-debian @@ -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/*