Skip to content

Instantly share code, notes, and snippets.

@twaugh
Last active October 30, 2015 14:58
Show Gist options
  • Save twaugh/b2967d37906fc7a010b4 to your computer and use it in GitHub Desktop.
Save twaugh/b2967d37906fc7a010b4 to your computer and use it in GitHub Desktop.
This is the example Content Generator metadata for a v1 import from running the test_koji_promote test (`py.test -k koji_promote -s`)
{
"build": {
"end_time": 1446217063,
"extra": {
"image": {}
},
"name": "name",
"release": "1",
"source": "git://hostname/path#123456",
"start_time": 1437985440,
"version": "1.0"
},
"buildroots": [
{
"components": [
{
"arch": "x86_64",
"epoch": 0,
"name": "name1",
"release": "1",
"sigmd5": "00000000000000000000000000000000",
"signature": "abcdef01234567",
"type": "rpm",
"version": "1.0"
},
{
"arch": "noarch",
"epoch": null,
"name": "gpg-pubkey-doc",
"release": "01234567",
"sigmd5": "00000000000000000000000000000000",
"signature": null,
"type": "rpm",
"version": "01234567"
},
{
"arch": "x86_64",
"epoch": 0,
"name": "name2",
"release": "2",
"sigmd5": "00000000000000000000000000000000",
"signature": "bcdef012345678",
"type": "rpm",
"version": "2.0"
}
],
"container": {
"arch": "x86_64",
"type": "docker"
},
"content_generator": {
"name": "atomic-reactor",
"version": "1.6.0"
},
"extra": {
"osbs": {
"build_id": "build-1",
"builder_image_id": "0123456"
}
},
"host": {
"arch": "x86_64",
"os": "Fedora 24 (Rawhide) (containerized)"
},
"id": 1,
"tools": [
{
"name": "docker-py",
"version": "1.1.0"
},
{
"name": "docker_scripts",
"version": "0.4.4"
},
{
"name": "atomic_reactor",
"version": "1.6.0"
},
{
"name": "osbs-client",
"version": "0.14"
},
{
"name": "docker",
"version": "1.9.0-dev-fc24"
}
]
}
],
"metadata_version": 0,
"output": [
{
"arch": "noarch",
"buildroot_id": 1,
"checksum": "5075e1d8e3ba4db21ca3f927a30a95b2",
"checksum_type": "md5",
"filename": "build.log",
"filesize": 17,
"type": "log"
},
{
"arch": "noarch",
"buildroot_id": 1,
"checksum": "6caa228ac58d3f2ef2d74908a03395de",
"checksum_type": "md5",
"filename": "openshift-final.log",
"filesize": 10,
"type": "log"
},
{
"arch": "x86_64",
"buildroot_id": 1,
"checksum": "20439f79e4e9dc95be34b21029221f80",
"checksum_type": "md5",
"components": [
{
"arch": "x86_64",
"epoch": 0,
"name": "name1",
"release": "1",
"sigmd5": "00000000000000000000000000000000",
"signature": null,
"type": "rpm",
"version": "1.0"
},
{
"arch": "x86_64",
"epoch": 0,
"name": "name2",
"release": "1",
"sigmd5": "00000000000000000000000000000000",
"signature": null,
"type": "rpm",
"version": "2.0"
}
],
"extra": {
"docker": {
"id": "123456imageid",
"parent_id": "123456parent-id",
"repositories": [
"registry.example.com/namespace/repo:1.0-1",
"registry.example.com/namespace/repo:1.0"
]
},
"image": {
"arch": "x86_64"
}
},
"filename": "docker-v1-image-123456imageid.tar.xz",
"filesize": 4096,
"type": "docker-image"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment