forked from LaconicNetwork/kompose
This adds support for building and pushing docker containers when you perform either `kompose convert` or `kompose up`. Docker Compose files who have build parameters with their respective image and build keys will automatically be both built and pushed.
346 lines
7.2 KiB
JSON
346 lines
7.2 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "headless",
|
|
"port": 55555,
|
|
"targetPort": 0
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "foo"
|
|
},
|
|
"clusterIP": "None"
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "headless",
|
|
"port": 55555,
|
|
"targetPort": 0
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "foo1"
|
|
},
|
|
"clusterIP": "None"
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
},
|
|
{
|
|
"type": "ImageChange",
|
|
"imageChangeParams": {
|
|
"automatic": true,
|
|
"containerNames": [
|
|
"foo"
|
|
],
|
|
"from": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "foo:latest"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"io.kompose.service": "foo"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "foo",
|
|
"image": " ",
|
|
"args": [
|
|
"sleep",
|
|
"3600"
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ImageStream",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"tags": [
|
|
{
|
|
"name": "latest",
|
|
"annotations": null,
|
|
"from": {
|
|
"kind": "DockerImage",
|
|
"name": "foo"
|
|
},
|
|
"generation": null,
|
|
"importPolicy": {}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"dockerImageRepository": ""
|
|
}
|
|
},
|
|
{
|
|
"kind": "BuildConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo"
|
|
}
|
|
},
|
|
"spec": {
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
}
|
|
],
|
|
"runPolicy": "Serial",
|
|
"source": {
|
|
"type": "Git",
|
|
"git": {
|
|
"uri": "%URI%",
|
|
"ref": "%REF%"
|
|
},
|
|
"contextDir": "script/test/fixtures/buildargs/build/"
|
|
},
|
|
"strategy": {
|
|
"type": "Docker",
|
|
"dockerStrategy": {
|
|
"env": [
|
|
{
|
|
"name": "NAME",
|
|
"value": "web"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"output": {
|
|
"to": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "foo:latest"
|
|
}
|
|
},
|
|
"resources": {},
|
|
"postCommit": {},
|
|
"nodeSelector": null
|
|
},
|
|
"status": {
|
|
"lastVersion": 0
|
|
}
|
|
},
|
|
{
|
|
"kind": "DeploymentConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"strategy": {
|
|
"resources": {}
|
|
},
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
},
|
|
{
|
|
"type": "ImageChange",
|
|
"imageChangeParams": {
|
|
"automatic": true,
|
|
"containerNames": [
|
|
"foo1"
|
|
],
|
|
"from": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "foo1:latest"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"replicas": 1,
|
|
"test": false,
|
|
"selector": {
|
|
"io.kompose.service": "foo1"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"name": "foo1",
|
|
"image": " ",
|
|
"args": [
|
|
"sleep",
|
|
"3600"
|
|
],
|
|
"resources": {}
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ImageStream",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"tags": [
|
|
{
|
|
"name": "latest",
|
|
"annotations": null,
|
|
"from": {
|
|
"kind": "DockerImage",
|
|
"name": "foo1"
|
|
},
|
|
"generation": null,
|
|
"importPolicy": {}
|
|
}
|
|
]
|
|
},
|
|
"status": {
|
|
"dockerImageRepository": ""
|
|
}
|
|
},
|
|
{
|
|
"kind": "BuildConfig",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "foo1",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "foo1"
|
|
}
|
|
},
|
|
"spec": {
|
|
"triggers": [
|
|
{
|
|
"type": "ConfigChange"
|
|
}
|
|
],
|
|
"runPolicy": "Serial",
|
|
"source": {
|
|
"type": "Git",
|
|
"git": {
|
|
"uri": "%URI%",
|
|
"ref": "%REF%"
|
|
},
|
|
"contextDir": "script/test/fixtures/buildargs/build/"
|
|
},
|
|
"strategy": {
|
|
"type": "Docker",
|
|
"dockerStrategy": {
|
|
"env": [
|
|
{
|
|
"name": "NAME",
|
|
"value": "web"
|
|
},
|
|
{
|
|
"name": "foo",
|
|
"value": "bar"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"output": {
|
|
"to": {
|
|
"kind": "ImageStreamTag",
|
|
"name": "foo1:latest"
|
|
}
|
|
},
|
|
"resources": {},
|
|
"postCommit": {},
|
|
"nodeSelector": null
|
|
},
|
|
"status": {
|
|
"lastVersion": 0
|
|
}
|
|
}
|
|
]
|
|
}
|