This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 95c8821044 ARTEMIS-4310 Add Alpine/Java17 based Docker image
95c8821044 is described below
commit 95c88210440e959e1c2872cfddebacb4a5401d7a
Author: Thorsten Hirsch <[email protected]>
AuthorDate: Tue Jul 11 19:11:59 2023 +0200
ARTEMIS-4310 Add Alpine/Java17 based Docker image
This new Dockerfile uses Alpine Linux as base image, so the resulting image
is smaller. Also, it makes use of Java 17.
---
artemis-docker/Dockerfile-alpine-17 | 71 +++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/artemis-docker/Dockerfile-alpine-17
b/artemis-docker/Dockerfile-alpine-17
new file mode 100644
index 0000000000..b462b73f75
--- /dev/null
+++ b/artemis-docker/Dockerfile-alpine-17
@@ -0,0 +1,71 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# ActiveMQ Artemis
+
+FROM eclipse-temurin:17-jdk-alpine
+LABEL maintainer="Apache ActiveMQ Team"
+
+# add user and group for artemis
+RUN addgroup --gid 1001 --system artemis && adduser --uid 1001 --ingroup
artemis --disabled-password --no-create-home artemis
+
+# alpine doesn't come with bash
+RUN /bin/sh -c "apk update && apk upgrade --no-cache && apk add --no-cache
bash libaio"
+
+# Make sure pipes are considered to determine success, see:
https://github.com/hadolint/hadolint/wiki/DL4006
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+WORKDIR /opt
+
+ENV ARTEMIS_USER artemis
+ENV ARTEMIS_PASSWORD artemis
+ENV ANONYMOUS_LOGIN false
+ENV EXTRA_ARGS --http-host 0.0.0.0 --relax-jolokia
+
+USER artemis
+
+ADD . /opt/activemq-artemis
+
+# Web Server
+EXPOSE 8161 \
+# JMX Exporter
+ 9404 \
+# Port for CORE,MQTT,AMQP,HORNETQ,STOMP,OPENWIRE
+ 61616 \
+# Port for HORNETQ,STOMP
+ 5445 \
+# Port for AMQP
+ 5672 \
+# Port for MQTT
+ 1883 \
+#Port for STOMP
+ 61613
+
+USER root
+
+RUN mkdir /var/lib/artemis-instance && chown -R artemis.artemis
/var/lib/artemis-instance
+
+COPY ./docker/docker-run.sh /
+
+USER artemis
+
+# Expose some outstanding folders
+VOLUME ["/var/lib/artemis-instance"]
+WORKDIR /var/lib/artemis-instance
+
+ENTRYPOINT ["/docker-run.sh"]
+CMD ["run"]
+