Skip to content

Commit

Permalink
revert to old qemu setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvija Tovernic committed Sep 21, 2024
1 parent 87af0b5 commit f36f468
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions images/docker/image-factory-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN apt-get update -y && \
libcap2-bin \
lsb-release \
podman \
qemu \
qemu-user-static \
slirp4netns \
software-properties-common \
sudo \
Expand Down
2 changes: 2 additions & 0 deletions images/docker/image-factory-runner/files/gha
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
gha ALL=(ALL) NOPASSWD: /bin/umount /.pat
gha ALL=(ALL) NOPASSWD: /bin/rmdir /.pat
gha ALL=(ALL) NOPASSWD: /usr/sbin/update-binfmts --enable qemu-aarch64
gha ALL=(ALL) NOPASSWD: /usr/sbin/update-binfmts --enable qemu-arm
gha ALL=(ALL) NOPASSWD:ALL # TODO: remove this line once development is done
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ echo "Deleting PAT token from runner filesystem..."
sudo umount /.pat
sudo rmdir /.pat

# QEMU setup
sudo update-binfmts --enable qemu-aarch64
sudo update-binfmts --enable qemu-arm

echo "Connect runner to GitHub:"
cd actions-runner
./config.sh \
Expand Down
2 changes: 0 additions & 2 deletions images/packer/image-factory-vm/scripts/setup-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ apt-get install --no-install-recommends -y \
libcap2-bin \
lsb-release \
podman \
qemu \
qemu-user-static \
slirp4netns \
software-properties-common \
unzip \
Expand Down

0 comments on commit f36f468

Please sign in to comment.