ubuntu-docker-images team mailing list archive
-
ubuntu-docker-images team
-
Mailing list archive
-
Message #00007
Re: Specs for image-builder.py
On Thu, Apr 15, 2021 at 02:20:21PM -0400, Sergio Durigan Junior wrote:
> OK, good. I don't know if the API exposes the "estimate time to build
> this image" property; if it does, then it should be easy to sleep until
> everything's been built.
Indeed, there does appear to be some parameters for that:
date (read-only) The date when the build completed or is estimated to complete.
estimate (read-only) If true, the date value is an estimate.
eta (read-only) The datetime when the build job is estimated to complete.
I've not seen estimates elsewhere for other areas of the LP api, so I
wasn't expecting that for this case, but there it is.
> > Also, I'm thinking it may be wise for us to set up a separate git repo
> > for this python scripting, and let the existing 'util' repo stay more
> > bash-focused.
>
> That may be a good idea, but I'm also concerned that we're heading
> towards having two different codebases (one in shell and another in
> Python) which have some overlapping things (for example, listing images,
> authenticating to registries, etc.). The benefit of putting everything
> into one repository is that it's easier to reuse code this way.
Yeah, I hear you for sure. Good topic to discuss tomorrow.
Bryce
References