Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbitmq-server as entrypoint #15

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
# Pull base image.
FROM dockerfile/ubuntu

# Add files.
ADD bin/rabbitmq-start /usr/local/bin/

# Install RabbitMQ.
# Install RabbitMQ. Explicitly create data directories with rabbitmq as owner.
# See http://stackoverflow.com/questions/26145351/why-doesnt-chown-work-in-dockerfile.
RUN \
wget -qO - https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | apt-key add - && \
echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list && \
Expand All @@ -19,7 +17,10 @@ RUN \
rm -rf /var/lib/apt/lists/* && \
rabbitmq-plugins enable rabbitmq_management && \
echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config && \
chmod +x /usr/local/bin/rabbitmq-start
ulimit -n 1024 && \
mkdir -p /data/log && \
mkdir -p /data/mnesia && \
chown -R rabbitmq:rabbitmq /data

# Define environment variables.
ENV RABBITMQ_LOG_BASE /data/log
Expand All @@ -32,7 +33,7 @@ VOLUME ["/data/log", "/data/mnesia"]
WORKDIR /data

# Define default command.
CMD ["rabbitmq-start"]
ENTRYPOINT /usr/sbin/rabbitmq-server

# Expose ports.
EXPOSE 5672
Expand Down
5 changes: 0 additions & 5 deletions bin/rabbitmq-start

This file was deleted.