Re: Persistent URLs for images (again :)

2017-08-25 Thread Jonathan Lebon
> FWIW, in the Cockpit project CI/CD bots end up manually scraping layers
> index.html URL(s) to find the latest images.
> 
> https://github.com/cockpit-project/cockpit/blob/master/bots/images/scripts/fedora-atomic.bootstrap

For Fedora Atomic Host specifically, there are symbolic links you
can pull at least:

https://fedoraproject.org/wiki/Cloud#Fedora_Cloud_Atomic_Image_Download_Links
___
cloud mailing list -- cloud@lists.fedoraproject.org
To unsubscribe send an email to cloud-le...@lists.fedoraproject.org


Re: Persistent URLs for images (again :)

2017-08-25 Thread Stef Walter
On 25.08.2017 01:45, Ian Wienand wrote:
> Hi
> 
> Some time ago [1] we had some persistent URLs at
> cloud.fedoraproject.org
> 
> These seem to have disappeared at some point as [2] is returning 404
> 
> If, these days, there is some better way to programatically find the
> name of the latest image, I would be happy to use it.
> 
> In something like:
> 
>  ... 
> releases/26/CloudImages/x86_64/images/Fedora-Cloud-Base-26-1.5.x86_64.qcow2
> 
> Where does the 1.5 come from?  How would I determine that (hopefully,
> without manually scraping the index.html URL)?

FWIW, in the Cockpit project CI/CD bots end up manually scraping layers
index.html URL(s) to find the latest images.

https://github.com/cockpit-project/cockpit/blob/master/bots/images/scripts/fedora-atomic.bootstrap

https://github.com/cockpit-project/cockpit/blob/master/bots/images/scripts/continuous-atomic.bootstrap

https://github.com/cockpit-project/cockpit/blob/master/bots/images/scripts/rhel-atomic.bootstrap

We would love to have a better solution too.

Stef
___
cloud mailing list -- cloud@lists.fedoraproject.org
To unsubscribe send an email to cloud-le...@lists.fedoraproject.org


Persistent URLs for images (again :)

2017-08-24 Thread Ian Wienand
Hi

Some time ago [1] we had some persistent URLs at
cloud.fedoraproject.org

These seem to have disappeared at some point as [2] is returning 404

If, these days, there is some better way to programatically find the
name of the latest image, I would be happy to use it.

In something like:

 ... releases/26/CloudImages/x86_64/images/Fedora-Cloud-Base-26-1.5.x86_64.qcow2

Where does the 1.5 come from?  How would I determine that (hopefully,
without manually scraping the index.html URL)?

Thanks for any insight,

-i

[1] 
https://lists.fedoraproject.org/archives/list/cloud@lists.fedoraproject.org/thread/SK7LBIRYCI5244VLYP4SX4ZG2NSQZCJV/#SK7LBIRYCI5244VLYP4SX4ZG2NSQZCJV
[2] http://cloud.fedoraproject.org/fedora-26.x86_64.qcow2
___
cloud mailing list -- cloud@lists.fedoraproject.org
To unsubscribe send an email to cloud-le...@lists.fedoraproject.org