From 8cadabb8903a84f47bfc2585b7931ad26221dd49 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 19 Feb 2021 07:28:25 +0100 Subject: [PATCH] tasks: Work around podman 3.0 volume handling regression on Ubuntu host Current podman 3.0.0 in system mode has a regression on Ubuntu hosts with handling anonymous volumes, see https://github.com/containers/podman/issues/9432 for details. Work around this by placing RabbitMQ's data into a tmpfs volume. --- tasks/run-local.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/run-local.sh b/tasks/run-local.sh index e9f22352..bf93fcaa 100755 --- a/tasks/run-local.sh +++ b/tasks/run-local.sh @@ -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