Skip to content

Commit

Permalink
tasks: Work around podman 3.0.0 volume handling regression
Browse files Browse the repository at this point in the history
Current podman 3.0.0 in system mode has a regression with handling
anonymous volumes. See containers/podman#9432
for details.

Work around this by placing RabbitMQ's data into a tmpfs volume.
  • Loading branch information
martinpitt committed Feb 19, 2021
1 parent 2ef0e26 commit 5874736
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ EOF
fi

# start podman and run RabbitMQ in the background
# HACK: put data into a tmpfs instead of anonymous volume, see https://github.com/containers/podman/issues/9432
podman run -d --name cockpituous-rabbitmq --pod=new:cockpituous \
--publish $IMAGE_PORT:8080 \
--tmpfs /var/lib/rabbitmq \
-v "$RABBITMQ_CONFIG":/etc/rabbitmq:ro \
-v "$SECRETS"/webhook:/run/secrets/webhook:ro \
docker.io/rabbitmq:3-management
Expand Down

0 comments on commit 5874736

Please sign in to comment.