Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create buildx container instance on init #6

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/init-build-agent-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ find /run /var/run -iname 'docker*.pid' -delete || :

# create docker group and add abc to it
groupadd -f docker
if ! id -nG "$(id -nu "${PUID:-911}")" | grep -q "docker"; then
if ! id -nG "$(id -nu "${PUID:-911}")" | grep -q "docker"; then
usermod -aG docker "$(id -nu "${PUID:-911}")"
fi

Expand Down
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
Empty file.