~bryce/+git/oci-dev-tools:docs-and-json

Last commit made on 2021-04-30
Get this branch:
git clone -b docs-and-json https://git.launchpad.net/~bryce/+git/oci-dev-tools
Only Bryce Harrington can upload to this branch. If you are Bryce Harrington please log in for upload directions.

Branch merges

Branch information

Name:
docs-and-json
Repository:
lp:~bryce/+git/oci-dev-tools

Recent commits

117f110... by Bryce Harrington

Improve output on wait command when run as tty

Suppress output when a tty is not attached, but when one is provide a
bit more useful information about individual builds. Also, reduce the
default frequency of status updates to once a minute to avoid too much
spamming.

6721331... by Bryce Harrington

Implement support for building images for ubuntu-docker-images

This switches to doing builds for the ubuntu-docker-images; unlike
ubuntu-server-lma, we cannot depend on the image and recipe sharing the
same names so change to handling them more generally, with separate
--image and --recipe parameters for the 'build' and 'show' subcommands.

The 'status' and 'wait' subcommands deal more with actual build request
records, so these take a --build argument instead.

b126099... by Bryce Harrington

Add code documentation

546cbde... by Bryce Harrington

Implement status command

For now, you have to pass back the build request URL as a parameter, but
when done it can dump some of the useful looking data bits.

Example Usage:

    ./scripts/oci status postgresql https://api.launchpad.net/devel/~canonical-server/ubuntu-server-lma/+oci/postgresql/+recipe/postgresql/+build-request/63223607
    requested: 2021-04-23 22:26:35.689133+00:00
    finished: 2021-04-23 22:26:35.689133+00:00
    status: Completed
    errormsg: None
      - s390x build of /~canonical-server/ubuntu-server-lma/+oci/postgresql/+recipe/postgresql
        pocket: Updates
        build_status: Successfully built
        build_log: https://launchpad.net/~canonical-server/ubuntu-server-lma/+oci/postgresql/+recipe/postgresql/+build/1164/+files/buildlog_oci_ubuntu_bionic_s390x_postgresql_BUILDING.txt.gz
        upload_status: Unscheduled
        upload_log: None
        upload_errors: None
        eta: None
        duration: 0:04:31.341132

65866a3... by Bryce Harrington

Implement build command

Usage:

  $ ./scripts/oci build postgresql
  Pending build requested 2021-04-23 22:28:01.925021+00:00
    https://api.launchpad.net/devel/~canonical-server/ubuntu-server-lma/+oci/postgresql/+recipe/postgresql/+build-request/xxxxxxxx

Note this is just doing builds against the ubuntu-server-lma project.

c9d897f... by Bryce Harrington

Implement show command

Dump of some of the easily obtained information from the LP object for
the OCI recipe. There is additional information but I think this is
most of the directly useful bits.

Note this relies on an assumption that image name == branch name, which
holds true for the ubuntu-server-lma projects, but doesn't hold true
generally, and in particular won't be true for the ubuntu-docker-images
projects, so this will need improved in latter commits.

Also note this hard-codes the oci_project to 'ubuntu-server-lma', which
also be generalizing later.

ec3c905... by Bryce Harrington

lp: Fix Lp load()

ecb7cb1... by Bryce Harrington

Add Lp module

Reuse the Lp module code + tests from ppa-dev-tools (which in turn
derived from Bileto and the earlier Lpltk projects). Tests are a bit
stubby still, and the Config class could be better integrated with the
config stuff loaded by the script itself, but this should give a solid
starting point.

f3e44e2... by Bryce Harrington

Initial stub of the command line tool

Am uncreatively calling it just 'oci' for now, pending discussion over
the naming. (It's short and memorable, but namespace collision potential
is probably high...)

9b20424... by Bryce Harrington

.gitignore