forked from skrat/rabbitmq-etcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 953 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
FROM base/archlinux
MAINTAINER Dusan <[email protected]>
# Runs whole system upgrade and install packages
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm base-devel binutils curl python2 python2-pip
# Builds & Installs RabbitMQ server package from AUR
WORKDIR /tmp
RUN curl -O https://aur.archlinux.org/packages/ra/rabbitmq/rabbitmq.tar.gz
RUN tar -xzf rabbitmq.tar.gz
WORKDIR /tmp/rabbitmq
RUN makepkg --asroot --noconfirm --syncdeps --install
RUN rabbitmq-plugins enable rabbitmq_management
WORKDIR /root
RUN rm -rf /tmp/rabbitmq
# Installs Configuration Synchronization service
RUN pip2 install python-etcd==0.3.0
RUN pip2 install urllib3==1.8.2
RUN pip2 install pyrabbit==1.0.1
# Add and run scripts
ADD configure.sh /configure.sh
RUN chmod 755 /configure.sh
RUN /configure.sh
ADD configsync.py /configsync.py
RUN chmod 755 /configsync.py
ADD run.sh /run.sh
RUN chmod 755 /run.sh
# RabbitMQ ports
EXPOSE 5672 15672
CMD ["/run.sh"]