Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ehazlett committed Sep 5, 2013
0 parents commit 4cd42ef
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.sw*
*.un*
*.log
.vagrant*
*.gz
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:12.04
MAINTAINER Arcus "http://arcus.io"
RUN echo "deb http://archive.ubuntu.com/ubuntu lucid main universe multiverse" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y wget
RUN wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server_3.1.5-1_all.deb -O /tmp/pkg.deb
RUN RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/pkg.deb ; exit 0
RUN RUNLEVEL=1 DEBIAN_FRONTEND=noninteractive apt-get -f -y install
RUN rabbitmq-plugins enable rabbitmq_management

ADD run.sh /usr/local/bin/run
RUN chmod +x /usr/local/bin/run

EXPOSE 5672
EXPOSE 15672
CMD ["/usr/local/bin/run"]
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# RabbitMQ

RabbitMQ 3.1.5


* `docker build -t rabbitmq .`
* `docker run rabbitmq`

Ports

* 5672 (rabbitmq)
* 15672 (rabbitmq admin)
15 changes: 15 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

cat << EOF > /etc/hosts
127.0.0.1 localhost $HOSTNAME
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
EOF

rm -rf /var/lib/mnesia/*
rabbitmq-server start

0 comments on commit 4cd42ef

Please sign in to comment.