-
Notifications
You must be signed in to change notification settings - Fork 213
core: Use source root for repos if set #5284
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
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 |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # In theory this can skew from the builder | ||
| FROM quay.io/fedora/fedora:41 as repos | ||
| # Demonstrate skew from the builder | ||
| FROM quay.io/centos/centos:stream10 as repos | ||
|
|
||
| # You must run this build with `-v /path/to/rpm-ostree:/run/build/rpm-ostree:ro` | ||
|
Member
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. Hmm, how about instead we mount an install tree and then
Member
Author
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. Yeah the CI sprawl is a huge pain. Lately what I've been thinking a lot about is getting really strict and saying: all build stuff is always in a container. OK to just leave this bit for now and circle back to the larger CI problem...well, not sure when 😢 ? |
||
| FROM quay.io/fedora/fedora:41 as builder | ||
|
|
@@ -15,15 +15,9 @@ EORUN | |
| # Copy in our source code. | ||
| COPY . /src | ||
| WORKDIR /src | ||
| RUN --mount=type=bind,from=repos,src=/,dst=/repos <<EORUN | ||
| RUN --mount=type=bind,from=repos,src=/,dst=/repos,rw <<EORUN | ||
| set -xeuo pipefail | ||
| # Synchronize the dnf/rpm configs from the repos container. | ||
| for x in etc/dnf etc/yum.repos.d etc/pki/rpm-gpg; do | ||
cgwalters marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| rm -rf /"$x" && cp -a /repos/${x} /$x | ||
| done | ||
| # And copy to the workdir; TODO fix this in rpm-ostree | ||
| cp /etc/yum.repos.d/*.repo . | ||
| exec rpm-ostree experimental compose rootfs --source-root=/repos manifest.yaml /target-rootfs | ||
| exec rpm-ostree experimental compose rootfs --source-root-rw=/repos manifest.yaml /target-rootfs | ||
| EORUN | ||
|
|
||
| # This pulls in the rootfs generated in the previous step | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.