forked from BedrockStreaming/AmqpBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (20 loc) · 763 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
FROM ubuntu:14.04
MAINTAINER M6Web <[email protected]>
RUN apt-get update
RUN apt-get -y install wget
RUN wget -qO - https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | apt-key add -
RUN echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install \
git \
rabbitmq-server \
vim
RUN rabbitmq-plugins enable rabbitmq_management
RUN echo "[{rabbit, [{loopback_users, []}]}]." >> /etc/rabbitmq/rabbitmq.config
RUN echo 'root:root' | chpasswd
ADD docker/start.sh /root/start.sh
RUN chmod +x /root/start.sh
VOLUME ["/var/log/rabbitmq"]
EXPOSE 15672
EXPOSE 5672
CMD ["/bin/bash", "/root/start.sh"]