mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
Use Docker-on-docker shim for nested volume shares during workflow container builds. (#10803)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
065573127a
commit
1ce0d976a4
9
.github/workflows/Updater.yml
vendored
9
.github/workflows/Updater.yml
vendored
@@ -151,8 +151,13 @@ jobs:
|
|||||||
docker pull --platform ${PLATFORM} satmandu/crewbuild:${CONTAINER}
|
docker pull --platform ${PLATFORM} satmandu/crewbuild:${CONTAINER}
|
||||||
sudo apt install -y acl
|
sudo apt install -y acl
|
||||||
sudo setfacl -R -m u:1000:rwx .
|
sudo setfacl -R -m u:1000:rwx .
|
||||||
getfacl .
|
# getfacl .
|
||||||
docker run \
|
# Use docker-in-docker shim to mount volume inside docker.
|
||||||
|
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
# ghcr.io/felipecrs/dond-shim:latest \
|
||||||
|
(cd /tmp ; curl -OLf https://github.com/felipecrs/docker-on-docker-shim/raw/refs/tags/v0.7.1/dond ; chmod +x /tmp/dond )
|
||||||
|
# docker run \
|
||||||
|
/tmp/dond run \
|
||||||
--rm \
|
--rm \
|
||||||
--platform ${PLATFORM} \
|
--platform ${PLATFORM} \
|
||||||
--privileged \
|
--privileged \
|
||||||
|
|||||||
Reference in New Issue
Block a user