-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathDockerfile
44 lines (34 loc) · 1.01 KB
/
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
39
40
41
42
43
44
FROM webcenter/openjdk-jre:8
MAINTAINER Sebastien LANGOUREAUX <[email protected]>
ENV ACTIVEMQ_CONFIG_DIR /opt/activemq/conf.tmp
ENV ACTIVEMQ_DATA_DIR /data/activemq
# Update distro and install some packages
RUN apt-get update && \
apt-get install --no-install-recommends -y python-testtools python-nose python-pip vim curl supervisor logrotate locales && \
update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \
locale-gen en_US.UTF-8 && \
dpkg-reconfigure locales && \
rm -rf /var/lib/apt/lists/*
# Install stompy
RUN pip install stomp.py
# Lauch app install
COPY assets/setup/ /app/setup/
RUN chmod +x /app/setup/install
RUN /app/setup/install
# Copy the app setting
COPY assets/entrypoint /app/
COPY assets/run.sh /app/run.sh
RUN chmod +x /app/run.sh
# Expose all port
EXPOSE 8161
EXPOSE 61616
EXPOSE 5672
EXPOSE 61613
EXPOSE 1883
EXPOSE 61614
# Expose some folders
VOLUME ["/data/activemq"]
VOLUME ["/var/log/activemq"]
VOLUME ["/opt/activemq/conf"]
WORKDIR /opt/activemq
CMD ["/app/run.sh"]