Skip to content

Commit

Permalink
Merge pull request #594 from uselagoon/rabbitmq_39
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood authored Nov 3, 2022
2 parents 4799178 + 6825314 commit 47bfc32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions helpers/TESTING_dockercompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ docker ps --filter label=com.docker.compose.project=all-images | grep Up | grep
# commons Should be running Alpine Linux
docker-compose exec -T commons sh -c "cat /etc/os-release" | grep "Alpine Linux"

# rabbitmq Should have RabbitMQ running 3.8
docker-compose exec -T rabbitmq sh -c "rabbitmqctl version" | grep 3.8
# rabbitmq Should have RabbitMQ running 3.9
docker-compose exec -T rabbitmq sh -c "rabbitmqctl version" | grep 3.9

# rabbitmq Should have delayed_message_exchange plugin enabled
docker-compose exec -T rabbitmq sh -c "rabbitmq-plugins list" | grep "E" | grep "delayed_message_exchange"
Expand Down
5 changes: 3 additions & 2 deletions images/rabbitmq/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMAGE_REPO
FROM ${IMAGE_REPO:-lagoon}/commons as commons
# alpine 3.12 as per https://github.com/docker-library/rabbitmq/blob/master/3.8/alpine/Dockerfile
FROM rabbitmq:3.8.34-management-alpine
FROM rabbitmq:3.9.24-management-alpine

ARG LAGOON_VERSION
ENV LAGOON_VERSION=$LAGOON_VERSION
Expand All @@ -13,7 +13,8 @@ ENV RABBITMQ_DEFAULT_USER='guest' \

COPY --from=commons /bin/ep /bin/fix-permissions /bin/

RUN wget -O /plugins/rabbitmq_delayed_message_exchange-3.8.17.ez "https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.17/rabbitmq_delayed_message_exchange-3.8.17.8f537ac.ez" \
RUN wget -P /plugins https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.9.0/rabbitmq_delayed_message_exchange-3.9.0.ez \
&& chown rabbitmq:rabbitmq /plugins/rabbitmq_delayed_message_exchange-* \
&& rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange rabbitmq_prometheus;

# Copy startup schema with vhost, users, permissions and policies
Expand Down
5 changes: 5 additions & 0 deletions images/rabbitmq/cluster-rabbit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh

# set the correct permissions on the erlang cookie in case Kubernetes changed it
if [ -e /var/lib/rabbitmq/.erlang.cookie ]; then
echo "setting .erlang.cookie permission correctly"
chmod 400 /var/lib/rabbitmq/.erlang.cookie
fi

# Replace ENV values in definitions.json
if [ -e /etc/rabbitmq/definitions.json ]; then
Expand Down

0 comments on commit 47bfc32

Please sign in to comment.