Closed jseparovic closed 2 years ago
I found a different way to do this for gitlab-ci. You run the qemu-user-static register in the before_script, and use dind instead of packer-plugin-arm-image directly. Then you can just use the same docker run command from the docs.
Sharing my config if anyway else has the same issue I did:
variables:
GIT_STRATEGY: clone
services:
- docker:19.03.12-dind
stages:
- packer
before_script:
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
packer-build:
stage: packer
script:
- docker run
--rm
--privileged
-v /dev:/dev
-v /images:/images
-v `pwd`:/build:ro
-v `pwd`/packer_cache:/build/packer_cache
-v `pwd`/output-arm-image:/build/output-arm-image
ghcr.io/solo-io/packer-plugin-arm-image build pi.json
I'm seeing the following error when running in gitlab-ci with docker in docker.
My .gitlab-ci.yml for ref:
Any ideas what this issue with
/proc/sys/fs/binfmt_misc
might be?