This commit is contained in:
parent
ebb045bbcb
commit
f2300bfb28
2 changed files with 15 additions and 0 deletions
|
@ -20,10 +20,16 @@ jobs:
|
||||||
git \
|
git \
|
||||||
netavark \
|
netavark \
|
||||||
;
|
;
|
||||||
|
shared=/var/lib/shared-containers
|
||||||
sed /usr/share/containers/storage.conf \
|
sed /usr/share/containers/storage.conf \
|
||||||
-e '/^#\?mount_program/c\
|
-e '/^#\?mount_program/c\
|
||||||
mount_program = "/usr/bin/fuse-overlayfs"' \
|
mount_program = "/usr/bin/fuse-overlayfs"' \
|
||||||
|
-e "/^additionalimagestores/a"'\
|
||||||
|
'"\"$shared\"" \
|
||||||
> /etc/containers/storage.conf
|
> /etc/containers/storage.conf
|
||||||
|
mkdir -p $shared/overlay-images $shared/overlay-layers
|
||||||
|
touch $shared/overlay-images/images.lock
|
||||||
|
touch $shared/overlay-layers/layers.lock
|
||||||
-
|
-
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -24,11 +24,20 @@ buildah run $ctr -- apt-get install -y --no-install-recommends \
|
||||||
;
|
;
|
||||||
#gpg \
|
#gpg \
|
||||||
|
|
||||||
|
shared=/var/lib/shared-containers
|
||||||
buildah run $ctr -- sh -c "sed /usr/share/containers/storage.conf \
|
buildah run $ctr -- sh -c "sed /usr/share/containers/storage.conf \
|
||||||
-e '/^#\?mount_program/c"'\
|
-e '/^#\?mount_program/c"'\
|
||||||
'"mount_program = \"/usr/bin/fuse-overlayfs\"' \
|
'"mount_program = \"/usr/bin/fuse-overlayfs\"' \
|
||||||
|
-e '/^additionalimagestores/a"'\
|
||||||
|
'" \"$shared\"' \
|
||||||
> /etc/containers/storage.conf"
|
> /etc/containers/storage.conf"
|
||||||
|
|
||||||
|
buildah run $ctr -- sc -c "\
|
||||||
|
mkdir -p $shared/overlay-images $shared/overlay-layers; \
|
||||||
|
touch $shared/overlay-images/images.lock; \
|
||||||
|
touch $shared/overlay-layers/layers.lock; \
|
||||||
|
"
|
||||||
|
|
||||||
# yq https://github.com/mikefarah/yq?tab=readme-ov-file#install
|
# yq https://github.com/mikefarah/yq?tab=readme-ov-file#install
|
||||||
buildah run $ctr -- sh -c "curl --silent --location \"https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64.tar.gz\" \
|
buildah run $ctr -- sh -c "curl --silent --location \"https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64.tar.gz\" \
|
||||||
| tar --extract --gzip --to-stdout ./yq_linux_amd64 \
|
| tar --extract --gzip --to-stdout ./yq_linux_amd64 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue