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:
parent
1cacedd0cf
commit
223698448e
|
@ -29,7 +29,7 @@ ENV ANONYMOUS_LOGIN false
|
||||||
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
|
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
|
||||||
|
|
||||||
# add user and group for artemis
|
# 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 update && \
|
||||||
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -29,7 +29,7 @@ ENV ANONYMOUS_LOGIN false
|
||||||
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
|
ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
|
||||||
|
|
||||||
# add user and group for artemis
|
# 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 update && \
|
||||||
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
Loading…
Reference in New Issue