Skip to content

Commit

Permalink
images: force buildah to use runc
Browse files Browse the repository at this point in the history
buildah 1.19.4 and its dependencies when installed from the
libcontainers OBS repo, defaulted to crun and that made the
image builds to fail.

By forcing buildah to use runc instead, everything works OK.

Signed-off-by: Mikko Ylinen <[email protected]>
  • Loading branch information
mythi authored and bart0sh committed Dec 2, 2021
1 parent 578c158 commit bdc5d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/docker/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
if [ -z "${BUILDER}" -o "${BUILDER}" = 'docker' ] ; then
docker build --pull -t ${IMG}:${TAG} ${BUILD_ARGS} -f ${DOCKERFILE} .
elif [ "${BUILDER}" = 'buildah' ] ; then
buildah bud --pull-always -t ${IMG}:${TAG} ${BUILD_ARGS} -f ${DOCKERFILE} .
BUILDAH_RUNTIME=runc buildah bud --pull-always -t ${IMG}:${TAG} ${BUILD_ARGS} -f ${DOCKERFILE} .
else
(>&2 echo "Unknown builder ${BUILDER}")
exit 1
Expand Down

0 comments on commit bdc5d74

Please sign in to comment.