Hello all,
It was requested from members of the Fedora Cloud WG that we
provide a persistent URL that will always offer up the latest Two Week
Atomic Host release from Fedora.
Initially I wrote some code that would handle this in the Two Week
Atomic script[0] but dgilmore brought up a good point that this
removes our ability to easily track what compose any given "latest"
image downloaded at various points of time actually is since it would
overwrite the images in-place (we could maintain a listing of
checksums but that's not ideal). What was then proposed and I like
better is to offer a web endpoint that would do two things:
1) Serve up the latest image for the different image types (something
like
getfedora.org/atomic/latest/$IMAGE_TYPE)
2) A simple URL endpoint that would return the actual image name that
is the 'latest' for use by people who want to write scripts to
automate and verify the images. (something like
getfedora.org/atomic/latest/$IMAGE_TYPE/filename)
The needed data is already provided via fedmsg by the Two Week Release
and is used to populate download links for the Atomic page[1] so
hopefully this won't be too much work. I'm also willing to do the work
and just submit the code for review but would like some guidance and
feedback on the topic in general.
Thank you,
-AdamM
[0] -
https://pagure.io/fork/maxamillion/releng/c/9a49e6cfc8ee1b23dc383cbf527b8...
[1] -
https://getfedora.org/en/cloud/download/atomic.html