-
Notifications
You must be signed in to change notification settings - Fork 60
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
URL for most recent artifact for platform+stream? #625
Comments
We don't have stable URLs right now for our artifacts, but as you found we do have a stable interface to get to them. :) I think there's been some hesitation in the past on exposing anything outside of that JSON file so that we retained the freedom to change things around as needed. |
If you're caching the images locally, you can use For iPXE, at least, it might make sense for us to host a small web service that reads the stream metadata and redirects requests to the latest image. |
We discussed this during the open floor of the community meeting today. In general we'd like to do this in the future but we'd like to note that there is currently one very large benefit to using |
Aight, I threw together https://github.com/mcsaucy/fcos-image-redirector. It just parses the request URI to navigate the stream (which it fetches, parses, and caches for a bit) and then redirects. So as long as the stream structure remains stable, this should work. So right now, https://latest-fcos.herokuapp.com/stable/artifacts/x86_64/metal/pxe/kernel -> https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/32.20200907.3.0/x86_64/fedora-coreos-32.20200907.3.0-live-kernel-x86_64 This will satisfy my needs and it seems like this isn't anything y'all are interested in owning atm, so I'll close this out. |
This seems like something we might want to do, so let's keep open for now. |
I think the easiest way to do this (without hosting a service) would be for us to just add a step to the release job that copies (plus a renames to remove the version from the filenames) the objects into a Another option is a redirector service, but we'd need to host it; which probably wouldnt' be too bad since we have the Fedora OpenShift instance. Though now that service would be exposed to the world. |
I did some work arround that subject, my 2 cents : https://github.com/Relativ-IT/Update-CoreOS |
We discussed this in FCOS Meeting today and agreed to continue this topic async. To enable use cases like netboot.xyz (and iPXE in general) we think it would be beneficial to have stable links people can use. We're not sure 100% on which implementation would be most appropriate yet, though. |
on implementation, two options come to mind:
i.e.
i.e. curl
|
Option 1 seems way simpler. The time spent implementing option 2 almost certainly outweighs the storage cost.
|
Howdy,
I've been playing with some iPXE stuffs and Flatcar Container Linux. My setup involves pulling down the newest image at boot-time and then doing what you'd expect with it.
Looks like Flatcar (and CoreOS CL, which they forked from) expose some URL for grabbing the most recent artifact:
FCOS exposes https://builds.coreos.fedoraproject.org/streams/stable.json, which allows for construction of artifact URLs (coreos-installer does this, I think), but that doesn't really mesh well with iPXE.
Is there any URL I can hit that will reliably get me the most up-to-date artifact for a given platform+stream?
The text was updated successfully, but these errors were encountered: