diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef4c96e..52bb706 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,12 +6,18 @@ variables: .build-image: stage: build - image: quay.io/buildah/stable:v1.38.0 + image: quay.io/buildah/stable:v1.38.1 needs: [] build: extends: .build-image stage: build script: | - buildah bud -f Containerfile.base --no-cache --security-opt=label=disable --cap-add=all --device /dev/fuse -t ${IMAGE_PREFIX}-base . - buildah bud -f Containerfile --no-cache --from ${IMAGE_PREFIX}-base -t ${IMAGE_PREFIX}-standard . + set -xeuo pipefail + curl -L --fail -o /etc/yum.repos.d/coreos-continuous.repo https://copr.fedorainfracloud.org/coprs/g/CoreOS/continuous/repo/fedora-42/group_CoreOS-continuous-fedora-42.repo + dnf -y install rpm-ostree + buildah build "${hostbuildopts[@]}" -f Containerfile.base --no-cache --security-opt=label=disable --cap-add=all --device /dev/fuse -t ${IMAGE_PREFIX}-base:tmp . + # Rechunk + rpm-ostree experimental compose build-chunked-oci --bootc --format-version=1 \ + --from=${IMAGE_PREFIX}-base:tmp --output containers-storage:${IMAGE_PREFIX}-base + buildah build "${hostbuildopts[@]}" -f Containerfile --no-cache --from ${IMAGE_PREFIX}-base -t ${IMAGE_PREFIX}-standard:tmp . diff --git a/Containerfile b/Containerfile index f21a91e..49bd956 100644 --- a/Containerfile +++ b/Containerfile @@ -1,7 +1,7 @@ # This generates the default base image. # This is a local reference by default because we haven't shipped this image yet. -FROM localhost/fedora-bootc:base as rootfs +FROM localhost/fedora-bootc:base # Drop our package sets into /usr/share/doc, so that other things can parse it COPY packages*.txt /usr/share/doc/fedora-bootc/ # Overlay our defaults @@ -40,20 +40,3 @@ dnf clean all rm -vrf /var/log /var/cache /var/lib/dnf bootc container lint EORUN - -# This image just needs rpm-ostree in the end that has -# https://github.com/coreos/rpm-ostree/issues/5221 -FROM registry.gitlab.com/fedora/bootc/base-images-dev/fedora-bootc-dev:rawhide as builder -RUN --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared \ - --mount=from=rootfs,dst=/rootfs <