Skip to content

Commit

Permalink
Merge pull request #10 from linuxserver/setup-buildx-container
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Nov 9, 2024
2 parents 416f827 + a961e54 commit 70395a1
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.
Run `docker run --rm -it --privileged ghcr.io/linuxserver/qemu-static --reset -p yes` on the host to enable qemu before bringing any build agent containers up.

- { date: "01.07.24:", desc: "Update JRE to 17." }
- { date: "16.01.24:", desc: "Add yq." }
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-buildx-config/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

docker buildx create --driver docker-container --name container >/dev/null 2>&1
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/init-buildx-config/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/init-buildx-config/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-buildx-config/run
16 changes: 7 additions & 9 deletions root/etc/s6-overlay/s6-rc.d/init-qemu/run
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/usr/bin/with-contenv bash

if [[ $(uname -m) = "x86_64" ]]; then
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
echo "┌─────────────────────────────────────────────────────────────────────────────────┐"
echo "│ Make sure you enable you enable QEMU. Run: │"
echo "│ │"
echo "│ docker run --rm -it --privileged ghcr.io/linuxserver/qemu-static --reset -p yes │"
echo "│ │"
echo "│ on the host │"
echo "└─────────────────────────────────────────────────────────────────────────────────┘"
Empty file.

0 comments on commit 70395a1

Please sign in to comment.