Skip to content

Commit

Permalink
Fix podman /dev/shm read-only issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Nov 27, 2018
1 parent b3c4ad2 commit f277a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ packer_build() {
if [ ! -f "${PACKER_IMAGES_OUTPUT_DIR}/${BUILD}.box" ]; then
if [ $USE_DOCKERIZED_PACKER = "true" ]; then
$DOCKER_COMMAND pull peru/packer_qemu_virtualbox_ansible
$DOCKER_COMMAND run --rm -t -u $(id -u):$(id -g) --net=host --privileged --name "packer_${BUILD}" \
$DOCKER_COMMAND run --rm -t -u $(id -u):$(id -g) --net=host --privileged --name "packer_${BUILD}" --tmpfs /dev/shm:size=67108864 \
-v $PACKER_IMAGES_OUTPUT_DIR:/home/docker/packer_images_output_dir \
-v $PWD:/home/docker/packer \
-v $TMPDIR:/home/docker/packer/packer_cache \
Expand Down

0 comments on commit f277a41

Please sign in to comment.