UNCLASSIFIED

You need to sign in or sign up before continuing.
Commit 1421afc5 authored by bhearn's avatar bhearn
Browse files

update for 2.17.0

parent 37a532e7
Pipeline #169177 passed with stages
in 11 minutes and 16 seconds
...@@ -8,27 +8,38 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} ...@@ -8,27 +8,38 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
### upstream Dockerfile: https://github.com/apache/activemq-artemis/blob/master/artemis-docker/Dockerfile-centos ### upstream Dockerfile: https://github.com/apache/activemq-artemis/blob/master/artemis-docker/Dockerfile-centos
### ###
# add artemis download and entrypoint script to opt/
COPY activemq-artemis.tar.gz /scripts/docker-run.sh opt/
# Make sure pipes are considered to determine success, see: https://github.com/hadolint/hadolint/wiki/DL4006 # Make sure pipes are considered to determine success, see: https://github.com/hadolint/hadolint/wiki/DL4006
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /opt WORKDIR /opt
# root user is needed to perform dnf upgrade/install # root user is needed to perform dnf upgrade/install and untar
USER root USER root
# add user and group for artemis # add user and group for artemis
# install libaio # install libaio
# create directory for activemq-artemis
# untar the download to the correct location
# create directory and change ownership for artemis-instance
# change mode of entrypoint script to allow execution
RUN groupadd -g 1001 -r artemis; \ RUN groupadd -g 1001 -r artemis; \
useradd -r -u 1001 -g artemis artemis; \ useradd -r -u 1001 -g artemis artemis; \
dnf upgrade -y; \ dnf upgrade -y; \
dnf install -y --nodocs libaio; \ dnf install -y --nodocs libaio; \
dnf clean all; \ dnf clean all; \
rm -rf /var/cache/dnf rm -rf /var/cache/dnf; \
mkdir -p /opt/activemq-artemis; \
tar -zxf activemq-artemis.tar.gz --strip-components=1 -C /opt/activemq-artemis; \
rm -f activemq-artemis.tar.gz; \
mkdir /var/lib/artemis-instance; \
chown -R artemis.artemis /var/lib/artemis-instance; \
chmod +x docker-run.sh
USER artemis USER artemis
# add artemis download and entrypoint script to opt/
COPY activemq-artemis.tar.gz /scripts/docker-run.sh opt/
# Web Server # Web Server
EXPOSE 8161 \ EXPOSE 8161 \
# JMX Exporter # JMX Exporter
...@@ -44,31 +55,8 @@ EXPOSE 8161 \ ...@@ -44,31 +55,8 @@ EXPOSE 8161 \
#Port for STOMP #Port for STOMP
61613 61613
# root user is needed to untar # Expose some outstanding folders
USER root # exclude VOLUME directive
# create directory for activemq-artemis
# untar the download to the correct location
# create directory and change ownership for artemis-instance
# change mode of entrypoint script to allow execution
RUN mkdir -p /opt/activemq-artemis; \
tar -zxf activemq-artemis.tar.gz --strip-components=1 -C /opt/activemq-artemis; \
rm -f activemq-artemis.tar.gz; \
mkdir /var/lib/artemis-instance; \
chown -R artemis.artemis /var/lib/artemis-instance; \
chmod +x docker-run.sh
USER artemis
EXPOSE 8161 \
9404 \
61616 \
5445 \
5672 \
1883 \
61613
# Expose some outstanding folders (excluding VOLUME directive)
WORKDIR /var/lib/artemis-instance WORKDIR /var/lib/artemis-instance
ENTRYPOINT ["/opt/docker-run.sh"] ENTRYPOINT ["/opt/docker-run.sh"]
......
...@@ -4,11 +4,14 @@ Apache ActiveMQ is an open source, multi-protocol, Java-based messaging server. ...@@ -4,11 +4,14 @@ Apache ActiveMQ is an open source, multi-protocol, Java-based messaging server.
## Download ## Download
1. Go to the [Apache webpage](https://ironbank.dso.mil/ironbank/repomap/opensource/apache) in Iron Bank and download the latest ActiveMQ Artemis tarball. 1. Login to Registry1:
```
2. Navigate to the location of the download and run: docker login registry1.dso.mil -u <USERNAME> -p <CLI_SECRET>
```
2. Navigate to the [Apache webpage](https://ironbank.dso.mil/ironbank/repomap/opensource/apache) in Iron Bank and copy the ActiveMQ Artemis pull command.
3. Pull the image:
``` ```
docker load -i <Apache ActiveMQ Artemis tarball> docker pull registry1.dso.mil/ironbank/opensource/apache/active-mq-artemis:<VERSION_TAG>
``` ```
## Install ## Install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment