forked from petroskovatsis/activemq5-and-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (27 loc) · 904 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
30
31
32
33
34
35
36
37
38
FROM openjdk:8-jre-alpine
# define activemq version and workdir
ENV ACTIVEMQ_VERSION 5.18.0
ENV ACTIVEMQ_WORKDIR /app
# create the work dir
RUN mkdir -p $ACTIVEMQ_WORKDIR
# copy activemq
COPY activemq/apache-activemq-5.18.0-bin.tar.gz .
# download active mq and extract
RUN tar -xzf apache-activemq-5.18.0-bin.tar.gz -C $ACTIVEMQ_WORKDIR
# create link
RUN ln -s $ACTIVEMQ_WORKDIR/apache-activemq-$ACTIVEMQ_VERSION $ACTIVEMQ_WORKDIR/activemq
# copy the activemq configuration
COPY conf/activemq.xml $ACTIVEMQ_WORKDIR/activemq/conf
# copy the db properties
COPY conf/db.properties $ACTIVEMQ_WORKDIR/activemq/conf/db.properties
# copy the jars
COPY lib $ACTIVEMQ_WORKDIR/activemq/lib
# change work dir
WORKDIR $ACTIVEMQ_WORKDIR/activemq
# EXPOSE PORTS
# ACTIVEMQ UI
EXPOSE 8161
# ACTIVEMQ TCP
EXPOSE 61616
# start
CMD ["/bin/sh", "-c", "bin/activemq console"]