Skip to content
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

Move buildroot image here #740

Merged
merged 1 commit into from
Mar 25, 2021
Merged

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Nov 18, 2020

When using cosa to build OSes, we've been pretty good at shielding
ourselves from versioning differences between source and target
environments (for example, RHCOS is built by Fedora packages). But when
it comes to building things meant to run in that OS, we really should
match the buildroot of the target.

Right now, many of our projects use the buildroot cosa container to
build their projects in CI. But this doesn't necessarily match the
buildroot of the rest of the OS.

Since the buildroot to use is defined here (specifically via the
releasever key), let's move the concept of a "buildroot image" from
cosa to here. Specifically, we want a container image with all the deps
to the components we mostly hack on for use by both CI and local
developers.

This can then be used by CoreOS CI for building upstream projects, as
well as by cosa itself for building kolet.

See also: coreos/coreos-assembler#1863

@jlebon
Copy link
Member Author

jlebon commented Nov 18, 2020

This still needs some fleshing out around how this solves the kolet case, though let's keep the discussions about that in coreos/coreos-assembler#1863.

Copy link
Member

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea here makes a lot of sense to me!

@jlebon jlebon marked this pull request as ready for review March 25, 2021 14:20
@jlebon
Copy link
Member Author

jlebon commented Mar 25, 2021

OK, rebased and ready to go! Tested locally with sudo podman build -t fcos-buildroot ..

@jlebon jlebon changed the title RFC: Move buildroot image here Move buildroot image here Mar 25, 2021
When using cosa to build OSes, we've been pretty good at shielding
ourselves from versioning differences between source and target
environments (for example, RHCOS is built by Fedora packages). But when
it comes to building things meant to run *in* that OS, we really should
match the buildroot of the target.

Right now, many of our projects use the buildroot cosa container to
build their projects in CI. But this doesn't necessarily match the
buildroot of the rest of the OS.

Since the buildroot to use is defined here (specifically via the
`releasever` key), let's move the concept of a "buildroot image" from
cosa to here. Specifically, we want a container image with all the deps
to the components we mostly hack on for use by both CI and local
developers.

This can then be used by CoreOS CI for building upstream projects, as
well as by cosa itself for building kolet.

See also: coreos/coreos-assembler#1863
jlebon added a commit to jlebon/coreos-assembler that referenced this pull request Mar 25, 2021
This was moved to the fedora-coreos-config repo in
coreos/fedora-coreos-config#740
@@ -0,0 +1,39 @@
# This is a list of basic buildrequires; it'd be a bit better to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cgwalters
Copy link
Member

That said there is a somewhat profound thing going on here in not deriving from coreos-assembler because some of our CI may actually rely on tools in cosa but not in this buildroot.

But...let's try it out!

@cgwalters
Copy link
Member

That said there is a somewhat profound thing going on here in not deriving from coreos-assembler because some of our CI may actually rely on tools in cosa but not in this buildroot.

(Which...is going to lead to the question of whether we should in some cases ship some parts of cosa as an RPM)

@jlebon jlebon enabled auto-merge (rebase) March 25, 2021 15:53
@jlebon jlebon disabled auto-merge March 25, 2021 15:59
@jlebon
Copy link
Member Author

jlebon commented Mar 25, 2021

Skipping CI since it's separate files which don't affect the compose at all.

@jlebon jlebon merged commit f02095f into coreos:testing-devel Mar 25, 2021
@jlebon jlebon deleted the pr/buildroot branch March 25, 2021 16:00
jlebon added a commit to jlebon/coreos-ci-lib that referenced this pull request Mar 25, 2021
We're moving away from a buildroot image based on cosa to one based on
FCOS:

coreos/fedora-coreos-config#740

Correspondingly, add a new `buildPod` as a thin sugar for selecting that
image.
cgwalters pushed a commit to coreos/coreos-assembler that referenced this pull request Mar 25, 2021
This was moved to the fedora-coreos-config repo in
coreos/fedora-coreos-config#740
cgwalters added a commit to cgwalters/release that referenced this pull request Mar 25, 2021
See coreos/fedora-coreos-config#740
which we now need to use in our Prow jobs too.
jlebon added a commit to jlebon/ssh-key-dir that referenced this pull request Mar 29, 2021
jlebon added a commit to jlebon/ssh-key-dir that referenced this pull request Mar 29, 2021
Similar to coreos/ignition#1182 as a result of
coreos/fedora-coreos-config#740.

As a bonus, we now get a clear separate stage for building. Add a stage
for running unit tests, but keep it commented out for now and we'll
circle back to it when it's cleaner to do once we have:

coreos/fedora-coreos-config#917

GitHub Actions covers unit tests anyway.
c4rt0 pushed a commit to c4rt0/fedora-coreos-config that referenced this pull request Mar 27, 2023
extensions: Remove references to qemu-kiwi and advanced-virt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants