This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #487 from cgwalters/split-centos-conditionals
Only set default filesystem to XFS in CentOS
- Loading branch information
Showing
19 changed files
with
87 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This container build uses some special features of podman that allow | ||
# a process executing as part of a container build to generate a new container | ||
# image "from scratch". | ||
# | ||
# This container build uses nested containerization, so you must build with e.g. | ||
# podman build --security-opt=label=disable --cap-add=all --device /dev/fuse <...> | ||
# | ||
# # Why are we doing this? | ||
# | ||
# Today this base image build process uses rpm-ostree. There is a lot of things that | ||
# rpm-ostree does when generating a container image...but important parts include: | ||
# | ||
# - auto-updating labels in the container metadata | ||
# - Generating "chunked" content-addressed reproducible image layers (notice | ||
# how there are ~60 layers in the generated image) | ||
# | ||
# The latter bit in particular is currently impossible to do from Containerfile. | ||
# A future goal is adding some support for this in a way that can be honored by | ||
# buildah (xref https://github.com/containers/podman/discussions/12605) | ||
# | ||
# # Why does this build process require additional privileges? | ||
# | ||
# Because it's generating a base image and uses containerbuildcontextization features itself. | ||
# In the future some of this can be lifted. | ||
|
||
FROM quay.io/fedora/fedora:40 as repos | ||
|
||
FROM quay.io/centos-bootc/bootc-image-builder:latest as builder | ||
ARG MANIFEST=fedora-bootc.yaml | ||
COPY --from=repos /etc/dnf/vars /etc/dnf/vars | ||
COPY --from=repos /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-* /etc/pki/rpm-gpg | ||
COPY . /src | ||
RUN rm -vf /src/*.repo | ||
COPY --from=repos /etc/yum.repos.d/*.repo /src | ||
RUN --mount=type=cache,target=/workdir --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared rpm-ostree compose image \ | ||
--image-config /buildcontext/fedora-bootc-config.json --cachedir=/workdir --format=ociarchive --initialize /src/${MANIFEST} /buildcontext/out.ociarchive | ||
|
||
FROM oci-archive:./out.ociarchive | ||
# Need to reference builder here to force ordering. But since we have to run | ||
# something anyway, we might as well cleanup after ourselves. | ||
RUN --mount=type=bind,from=builder,src=.,target=/var/tmp --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared rm /buildcontext/out.ociarchive |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repos: | ||
- baseos | ||
- appstream | ||
|
||
# Configuration for bootc | ||
postprocess: | ||
# XFS is our default filesystem | ||
- | | ||
#!/usr/bin/env bash | ||
mkdir -p /usr/lib/bootc/install/ | ||
cat > /usr/lib/bootc/install/20-rhel.toml << EOF | ||
[install] | ||
root-fs-type = "xfs" | ||
EOF |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Labels": { | ||
"containers.bootc": "1", | ||
"bootc.diskimage-builder": "quay.io/centos-bootc/bootc-image-builder", | ||
"redhat.id": "fedora", | ||
"redhat.version-id": "40" | ||
}, | ||
"StopSignal": "SIGRTMIN+3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +0,0 @@ | ||
# Configuration for bootc | ||
postprocess: | ||
# XFS is our default filesystem | ||
- | | ||
#!/usr/bin/env bash | ||
mkdir -p /usr/lib/bootc/install/ | ||
cat > /usr/lib/bootc/install/20-rhel.toml << EOF | ||
[install] | ||
root-fs-type = "xfs" | ||
EOF | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters