-
Notifications
You must be signed in to change notification settings - Fork 70
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 #349 from cgwalters/dev-c9s
ci: Target c9s in more places
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# This container build is just a demo effectively; it shows how one might | ||
# build bootc in a container flow, using Fedora ELN as the target. | ||
FROM quay.io/centos-bootc/fedora-bootc:eln as build | ||
RUN dnf config-manager --set-enabled eln-crb && dnf -y install cargo ostree-devel openssl-devel && dnf clean all | ||
FROM quay.io/centos-bootc/centos-bootc:stream9 as build | ||
RUN dnf config-manager --set-enabled crb && dnf -y install cargo ostree-devel openssl-devel && dnf clean all | ||
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 bin-archive && mkdir -p /out && cp target/bootc.tar.zst /out | ||
|
||
FROM quay.io/centos-bootc/fedora-bootc:eln | ||
FROM quay.io/centos-bootc/centos-bootc:stream9 | ||
COPY --from=build /out/bootc.tar.zst /tmp | ||
COPY --from=build /build/target/dev-rootfs/ / | ||
RUN tar -C / --zstd -xvf /tmp/bootc.tar.zst && rm -vf /tmp/* |