Adding vfs to buildah script
This commit is contained in:
@@ -91,6 +91,14 @@ LABELS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if command -v buildah >/dev/null; then
|
if command -v buildah >/dev/null; then
|
||||||
|
# Default buildah to the vfs storage driver. Inside a container (e.g. a CI
|
||||||
|
# runner) the host fs is overlayfs, and buildah's default 'overlay' driver
|
||||||
|
# can't stack overlay-on-overlay without fuse-overlayfs ("backing file
|
||||||
|
# system is unsupported"). vfs needs no overlay and is fine for this tiny
|
||||||
|
# FROM-scratch image. Override by exporting STORAGE_DRIVER on a build host
|
||||||
|
# with native overlay support.
|
||||||
|
export STORAGE_DRIVER="${STORAGE_DRIVER:-vfs}"
|
||||||
|
|
||||||
ctr=$(buildah from scratch)
|
ctr=$(buildah from scratch)
|
||||||
buildah copy "$ctr" "$STAGE/artifacts" /artifacts
|
buildah copy "$ctr" "$STAGE/artifacts" /artifacts
|
||||||
for l in "${LABELS[@]}"; do buildah config --label "$l" "$ctr"; done
|
for l in "${LABELS[@]}"; do buildah config --label "$l" "$ctr"; done
|
||||||
|
|||||||
Reference in New Issue
Block a user