Skip to content

Commit 4d3a021

Browse files
committed
Update artemis to 2.41.0
1 parent ae77c7d commit 4d3a021

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

Dockerfile

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
# ActiveMQ Artemis
1919

20-
FROM openjdk:11 as builder
20+
FROM eclipse-temurin:17-jre as builder
2121
LABEL maintainer="Per Pascal Seeland <[email protected]"
2222
# Make sure pipes are considered to determine success, see: https://github.com/hadolint/hadolint/wiki/DL4006
2323
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2424
WORKDIR /opt
2525

26-
ENV ACTIVEMQ_ARTEMIS_VERSION 2.23.0
26+
ENV ACTIVEMQ_ARTEMIS_VERSION 2.41.0
2727

2828
ENV ARTEMIS_USER artemis
2929
ENV ARTEMIS_PASSWORD artemis
@@ -35,15 +35,14 @@ ENV CONFIG_PATH ${BROKER_HOME}/etc
3535

3636

3737
# add user and group for artemis
38-
RUN groupadd --gid 1000 -r artemis && useradd -r -u 1000 -g artemis artemis \
39-
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
38+
RUN apt-get -qq -o=Dpkg::Use-Pty=0 update && \
4039
apt-get -qq -o=Dpkg::Use-Pty=0 install -y --no-install-recommends \
41-
libaio1 wget && \
40+
libaio1t64 wget && \
4241
rm -rf /var/lib/apt/lists/*
4342

4443
USER root
4544

46-
RUN mkdir /var/lib/artemis && chown -R artemis.artemis /var/lib/artemis
45+
RUN mkdir /var/lib/artemis && chown -R ubuntu.ubuntu /var/lib/artemis
4746
RUN wget "https://repository.apache.org/content/repositories/releases/org/apache/activemq/apache-artemis/${ACTIVEMQ_ARTEMIS_VERSION}/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}-bin.tar.gz" && \
4847
wget "https://repository.apache.org/content/repositories/releases/org/apache/activemq/apache-artemis/${ACTIVEMQ_ARTEMIS_VERSION}/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}-bin.tar.gz.asc" && \
4948
wget "http://apache.org/dist/activemq/KEYS" && \
@@ -53,32 +52,28 @@ RUN wget "https://repository.apache.org/content/repositories/releases/org/apach
5352
ln -s "/opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}" "/opt/apache-artemis" && \
5453
rm -f "apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}-bin.tar.gz" "KEYS" "apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}-bin.tar.gz.asc";
5554

56-
RUN rm -r /opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}/web/{api,examples,user-manual,hacking-guide,migration-guide} && rm -r /opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}/examples
57-
58-
USER artemis
55+
USER ubuntu
5956
WORKDIR /var/lib/artemis
6057

6158
RUN /opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}/bin/artemis create ${CREATE_ARGUMENTS} .
6259

6360

64-
FROM eclipse-temurin:11-jre
61+
FROM eclipse-temurin:17-jre
6562
LABEL maintainer="Pascal Seeland <[email protected]>"
66-
ENV ACTIVEMQ_ARTEMIS_VERSION 2.23.0
63+
ENV ACTIVEMQ_ARTEMIS_VERSION=2.41.0
6764
ENV ACTIVEMQ_ARTEMIS_VERSION=$ACTIVEMQ_ARTEMIS_VERSION
68-
ENV BROKER_HOME /var/lib/artemis
69-
ENV CONFIG_PATH ${BROKER_HOME}/etc
65+
ENV BROKER_HOME=/var/lib/artemis
66+
ENV CONFIG_PATH=${BROKER_HOME}/etc
7067

7168
# add user and group for artemis
72-
RUN addgroup --gid 1000 --system artemis && adduser -u 1000 --system --ingroup artemis artemis \
73-
&& apt-get -qq -o=Dpkg::Use-Pty=0 update && \
74-
apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
69+
RUN apt-get -qq -o=Dpkg::Use-Pty=0 update && \
70+
apt-get -qq -o=Dpkg::Use-Pty=0 install -y --no-install-recommends libaio1t64 && \
7571
rm -rf /var/lib/apt/lists/*
7672

77-
RUN mkdir /var/lib/artemis && chown -R artemis.artemis /var/lib/artemis
78-
USER artemis
73+
RUN mkdir /var/lib/artemis && chown -R ubuntu.ubuntu /var/lib/artemis
74+
USER ubuntu
7975
COPY --from=builder "/opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}" "/opt/apache-artemis-${ACTIVEMQ_ARTEMIS_VERSION}"
8076
COPY --from=builder "/var/lib/artemis" "/var/lib/artemis"
81-
#COPY --from=builder "/opt/jmx-exporter" "/opt/jmx-exporter"
8277

8378
# Web Server
8479
EXPOSE 8161 \
@@ -91,7 +86,7 @@ WORKDIR /var/lib/artemis
9186

9287
COPY broker.xml etc
9388

94-
USER artemis
89+
USER ubuntu
9590

9691
# Expose some outstanding folders
9792
VOLUME ["/var/lib/artemis"]

0 commit comments

Comments
 (0)