2019-02-02 03:12:17 -05:00
|
|
|
# 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 jboss/base-jdk:8
|
|
|
|
LABEL maintainer="Apache ActiveMQ Team"
|
|
|
|
# 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 CREATE_ARGUMENTS --user ${ARTEMIS_USER} --password ${ARTEMIS_PASSWORD} --silent --http-host 0.0.0.0 --relax-jolokia
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
|
|
|
# add user and group for artemis
|
2019-02-08 06:30:52 -05:00
|
|
|
RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis \
|
|
|
|
&& yum install -y libaio && yum -y clean all
|
2019-02-02 03:12:17 -05:00
|
|
|
|
|
|
|
USER artemis
|
|
|
|
|
2019-02-04 18:49:59 -05:00
|
|
|
ADD . /opt/activemq-artemis
|
2019-02-02 03:12:17 -05:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2019-02-04 18:49:59 -05:00
|
|
|
COPY ./docker/docker-run.sh /
|
2019-02-02 03:12:17 -05:00
|
|
|
|
|
|
|
USER artemis
|
|
|
|
|
|
|
|
# Expose some outstanding folders
|
|
|
|
VOLUME ["/var/lib/artemis-instance"]
|
|
|
|
WORKDIR /var/lib/artemis-instance
|
|
|
|
|
2019-02-04 18:49:59 -05:00
|
|
|
ENTRYPOINT ["/docker-run.sh"]
|
2019-02-08 06:30:52 -05:00
|
|
|
CMD ["run"]
|