-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
donotmerge: IBX changes #958
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM quay.io/centos/centos:stream9 as build | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We must build bootc because it doesn't ship with RHCOS yet |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your normal seed image goes here. |
||
|
||
# ____________________________________________________________________________ | ||
|
||
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 | ||
|
||
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/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,10 @@ install-all: install install-ostree-hooks | |
install -D -m 0755 target/release/tests-integration $(DESTDIR)$(prefix)/bin/bootc-integration-tests | ||
|
||
bin-archive: all | ||
$(MAKE) install DESTDIR=tmp-install && $(TAR_REPRODUCIBLE) --zstd -C tmp-install -cf target/bootc.tar.zst . && rm tmp-install -rf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. -zstd unsupported on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait that's definitely not true. Do you have a really old image? Builds don't pull by default so unfortunately you need to explicitly e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe I have an old image |
||
$(MAKE) install DESTDIR=tmp-install && $(TAR_REPRODUCIBLE) -C tmp-install -cf target/bootc.tar . && rm tmp-install -rf | ||
|
||
test-bin-archive: all | ||
$(MAKE) install-all DESTDIR=tmp-install && $(TAR_REPRODUCIBLE) --zstd -C tmp-install -cf target/bootc.tar.zst . && rm tmp-install -rf | ||
$(MAKE) install-all DESTDIR=tmp-install && $(TAR_REPRODUCIBLE) -C tmp-install -cf target/bootc.tar . && rm tmp-install -rf | ||
|
||
test-tmt: | ||
cargo xtask test-tmt | ||
|
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In an ideal future all seeds will simply be "bootc seeds", but for now we have this Containerfile to make a "bootc seed" out of a normal seed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm not sure. we can generate new seeds I guess. no need to deal with backwards compatibility at this point. but whatever is easier for the POC of course