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

Run tests on rabbitmq 3.7 #506

Merged
merged 1 commit into from
Aug 15, 2018
Merged
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
5 changes: 3 additions & 2 deletions bin/build-rabbitmq-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e
set -x

(cd docker && docker build --rm --force-rm --no-cache --pull --squash --tag "enqueue/rabbitmq:latest" -f Dockerfile.rabbitmq .)
(cd docker && docker build --rm --force-rm --no-cache --pull --squash --tag "enqueue/rabbitmq-local-build" -f Dockerfile."$1"-rabbitmq .)
(cd docker && docker login --username="$DOCKER_USER" --password="$DOCKER_PASSWORD")
(cd docker && docker push "enqueue/rabbitmq:latest")
(cd docker && docker tag enqueue/rabbitmq-local-build enqueue/rabbitmq:"$1")
(cd docker && docker push "enqueue/rabbitmq:$1")
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ services:
- MONGO_DSN=mongodb://mongo

rabbitmq:
image: 'enqueue/rabbitmq:latest'
image: 'enqueue/rabbitmq:3.7'
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
Expand Down
18 changes: 18 additions & 0 deletions docker/Dockerfile.3.6-rabbitmq
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM rabbitmq:3.6-management

RUN apt-get update && \
apt-get -y --no-install-recommends --no-install-suggests install ca-certificates curl unzip && \
rm -rf /var/lib/apt/lists/*

RUN curl https://dl.bintray.com/rabbitmq/community-plugins/3.6.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171215-3.6.x.zip > /tmp/delayed_plugin.zip
RUN cd /tmp && \
unzip delayed_plugin.zip && \
rm delayed_plugin.zip && \
mv rabbitmq_delayed_message_exchange-20171215-3.6.x.ez $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-20171215-3.6.x.ez

RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange
RUN rabbitmq-plugins enable --offline rabbitmq_stomp

RUN apt-get purge -y --auto-remove ca-certificates curl unzip

EXPOSE 61613
18 changes: 18 additions & 0 deletions docker/Dockerfile.3.7-rabbitmq
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM rabbitmq:3.7-management

RUN apt-get update && \
apt-get -y --no-install-recommends --no-install-suggests install ca-certificates curl unzip && \
rm -rf /var/lib/apt/lists/*

RUN curl https://dl.bintray.com/rabbitmq/community-plugins/3.7.x/rabbitmq_delayed_message_exchange/rabbitmq_delayed_message_exchange-20171201-3.7.x.zip > /tmp/delayed_plugin.zip
RUN cd /tmp && \
unzip delayed_plugin.zip && \
rm delayed_plugin.zip && \
mv rabbitmq_delayed_message_exchange-20171201-3.7.x.ez $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-20171201-3.7.x.ez

RUN rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange
RUN rabbitmq-plugins enable --offline rabbitmq_stomp

RUN apt-get purge -y --auto-remove ca-certificates curl unzip

EXPOSE 61613
10 changes: 0 additions & 10 deletions docker/Dockerfile.rabbitmq

This file was deleted.