-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some (trash, temporary) changes I had to perform on bootc to get IBX to work - `./Containerfile` builds a bootable image from an existing normal IBX seed - `./build_seed.sh` is just a helper script To install on recipient ``` sudo podman run --privileged --env RUST_LOG=trace -v /var/lib/containers/storage:/var/lib/containers/storage --pid=host -it quay.io/your/seed:image bootc install to-existing-root --acknowledge-destructive --stateroot foo ``` This PR only exists to start discussions around concrete issues, it's not meant to be merged.
- Loading branch information
Showing
6 changed files
with
46 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ target | |
# These directories don't contribute to our container build | ||
docs/ | ||
plans/ | ||
Containerfile | ||
build_seed.sh |
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,26 @@ | ||
FROM quay.io/centos/centos:stream9 as build | ||
COPY hack/build.sh /build.sh | ||
RUN /build.sh && rm -v /build.sh | ||
COPY . /build | ||
WORKDIR /build | ||
RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content | ||
# See https://www.reddit.com/r/rust/comments/126xeyx/exploring_the_problem_of_faster_cargo_docker/ | ||
# We aren't using the full recommendations there, just the simple bits. | ||
RUN --mount=type=cache,target=/build/target --mount=type=cache,target=/var/roothome make test-bin-archive && mkdir -p /out && cp target/bootc.tar /out | ||
RUN mkdir -p /build/target/dev-rootfs # This can hold arbitrary extra content | ||
|
||
FROM quay.io/otuchfel/ostbackup:serv1 as seed | ||
|
||
# ____________________________________________________________________________ | ||
|
||
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:5b1124faf4b73753b4679085604dd8cb810c4a7a2e659978f5c80183bb165f94 | ||
|
||
LABEL com.openshift.lifecycle-agent.seed_format_version=3 | ||
|
||
RUN mkdir -p /usr/lib/bootc/install | ||
RUN echo -e '[install.filesystem.root]\ntype = "xfs"' > /usr/lib/bootc/install/00-bootc.toml | ||
|
||
COPY --from=seed --exclude=ostree.tgz / /var/tmp/seed | ||
|
||
COPY --from=build /out/bootc.tar /tmp | ||
RUN tar -C / -xvf /tmp/bootc.tar && rm -vrf /tmp/* |
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,9 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$(dirname $0) | ||
|
||
cd $SCRIPT_DIR | ||
|
||
podman build -t bootcseed -f Containerfile . | ||
podman tag bootcseed:latest quay.io/otuchfel/bootc:seed | ||
podman push quay.io/otuchfel/bootc:seed |
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