Remove read-only flag from volumes for aptly-publisher
The dump feature of aptly-publisher requires that the container
is able to write the dump file in the current directory.
The current directory can be $HOME.
Therefore it is necessary to remove the ro flag.
Change-Id: I77a05c4f260b94e74eb675fefc2ce6343d7fc725
diff --git a/aptly/files/aptly-publisher b/aptly/files/aptly-publisher
index 2da1081..a8934f6 100755
--- a/aptly/files/aptly-publisher
+++ b/aptly/files/aptly-publisher
@@ -35,7 +35,7 @@
# Setup volume mounts for compose config and context
if [ "$(pwd)" != '/' ]; then
- VOLUMES="-v $(pwd):$(pwd):ro"
+ VOLUMES="-v $(pwd):$(pwd)"
fi
if [ -e /etc/aptly-publisher.yaml ]; then
@@ -47,7 +47,7 @@
fi
if [ -n "$HOME" ]; then
- VOLUMES="$VOLUMES -v $HOME:$HOME:ro"
+ VOLUMES="$VOLUMES -v $HOME:$HOME"
fi
# Only allocate tty if we detect one
@@ -58,4 +58,4 @@
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
fi
-exec docker run --rm $DOCKER_RUN_OPTIONS $DOCKER_ADDR $APTLY_PUBLISHER_OPTIONS $VOLUMES -w "$(pwd)" -v "$(pwd)":"$(pwd)" $IMAGE "$@"
+exec docker run --rm $DOCKER_RUN_OPTIONS $DOCKER_ADDR $APTLY_PUBLISHER_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"