forked from joybhatt/docker-rabbitmq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (39 loc) · 1.38 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
45
FROM srinivasachalla/docker-ubuntu
MAINTAINER Srinivasa Reddy Challa <[email protected]>
# Install wget, erlang 19.3 & RabbitMQ 3.6.15-1
RUN DEBIAN_FRONTEND=noninteractive && \
cd /tmp && \
apt-get update && \
apt-get install wget && \
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc && \
apt-key add rabbitmq-signing-key-public.asc && \
echo "deb http://www.rabbitmq.com/debian/ testing main" | tee /etc/apt/sources.list.d/rabbitmq.list && \
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
apt-get update && \
apt-get -y install esl-erlang=1:19.3 && \
apt-get install -y --force-yes rabbitmq-server=3.6.15-1 && \
rabbitmq-plugins enable rabbitmq_management && \
rabbitmq-plugins enable rabbitmq_jms_topic_exchange && \
rabbitmq-plugins enable rabbitmq_stomp && \
rabbitmq-plugins enable rabbitmq_web_stomp && \
service rabbitmq-server stop && \
apt-get install --yes runit && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
## remove wget
RUN apt-get remove wget -y
# Add scripts
ADD scripts /scripts
RUN chmod +x /scripts/*.sh
RUN touch /.firstrun
# Command to run
ENTRYPOINT ["/scripts/run.sh"]
CMD [""]
# Expose listen port
EXPOSE 5672
EXPOSE 15672
EXPOSE 61613
EXPOSE 15674
# Expose our log volumes
VOLUME ["/data"]