forked from seges/docker-openmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (23 loc) · 831 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
FROM java:8-jdk
MAINTAINER Ladislav Gazo <[email protected]>
ENV OPENMQ_VERSION 4.5.2
ENV OPENMQ_ARCHIVE openmq4_5_2-binary-Linux_X86.zip
ADD /config/config.properties /usr/local/openmq/MessageQueue4_5/var/mq/instances/imqbroker/props/config.properties
RUN useradd -d /home/openmq -u 1001 -s /bin/bash openmq && \
chown -R openmq:openmq /usr/local/openmq
# mkdir -p /usr/local/openmq && \
USER openmq
RUN cd /usr/local/openmq/MessageQueue4_5 && \
curl -v -o $OPENMQ_ARCHIVE http://download.oracle.com/mq/open-mq/$OPENMQ_VERSION/latest/$OPENMQ_ARCHIVE && \
unzip $OPENMQ_ARCHIVE
# portmapper & broker
EXPOSE 7676
# jms service
EXPOSE 7677
# ssljms service
#EXPOSE 7678
# admin service
EXPOSE 7679
# ssladmin service
#EXPOSE 7680
CMD ["/usr/local/openmq/MessageQueue4_5/mq/bin/imqbrokerd", "-vmargs", "-Xss228m"]