-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
29 lines (19 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM fedora:23
MAINTAINER Paolo Patierno <[email protected]>
# install java, gettext (for envsubst)
RUN dnf -y install java-1.8.0-openjdk libaio python gettext hostname
ENV ARTEMIS_VERSION 1.4.0
# download and extract ActiveMQ Artemis
RUN dnf -y install wget
RUN dnf -y install tar
RUN wget https://apache.org/dist/activemq/activemq-artemis/$ARTEMIS_VERSION/apache-artemis-$ARTEMIS_VERSION-bin.tar.gz --no-check-certificate
RUN tar xvfz apache-artemis-$ARTEMIS_VERSION-bin.tar.gz -C /opt
ENV ARTEMIS_HOME=/opt/apache-artemis-$ARTEMIS_VERSION
ENV PATH=$ARTEMIS_HOME/bin:$PATH
COPY ./utils/run_artemis.sh ./utils/get_free_instance.py $ARTEMIS_HOME/bin/
COPY ./config_templates /config_templates
VOLUME /var/run/artemis
RUN chmod +x $ARTEMIS_HOME/bin/run_artemis.sh
RUN chmod +x $ARTEMIS_HOME/bin/get_free_instance.py
EXPOSE 5672
CMD ["/opt/apache-artemis-1.4.0/bin/run_artemis.sh"]