Merge pull request #2 from linuxserver/better-qemu

This commit is contained in:
Adam 2023-05-01 20:06:00 +01:00 committed by GitHub
commit e5d930d4e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -25,4 +25,6 @@ services:
restart: unless-stopped
```
For x86_64 machines, run `docker run --rm --privileged multiarch/qemu-user-static --reset -p yes` on the host to enable qemu before bringing any build agent containers up.
- { date: "30.04.23:", desc: "Initial Release." }

View File

@ -28,5 +28,7 @@ full_custom_readme: |
restart: unless-stopped
```
For x86_64 machines, run `docker run --rm --privileged multiarch/qemu-user-static --reset -p yes` on the host to enable qemu before bringing any build agent containers up.
- { date: "30.04.23:", desc: "Initial Release." }
{%- endraw %}

View File

@ -1,6 +1,11 @@
#!/usr/bin/with-contenv bash
if [[ $(uname -m) = "x86_64" ]]; then
echo "**** Enabling QEMU ****"
exec docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
echo "┌───────────────────────────────────────────────────────────────────────────────┐"
echo "│ Make sure you enable you enable QEMU. Run: │"
echo "│ │"
echo "│ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes │"
echo "│ │"
echo "│ on the host │"
echo "└───────────────────────────────────────────────────────────────────────────────┘"
fi