README.md 708 Bytes
Newer Older
Yori Fournier's avatar
Yori Fournier committed
1 2
# build-several-image-and-compose

Yori Fournier's avatar
Yori Fournier committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
add dockerfile_image_1 and dockerfile_image_2

both build different containers like:
django-website and a postgres-instance

add a kubernetes manifest like there:
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/

add a CI file like:

build1:
build docker_image_1 with `oc start-build --from-file=dockerfile_image1`

build2:
build docker_image_2 with `oc start-build --from-file=dockerfile_image2`

Yori Fournier's avatar
Yori Fournier committed
19 20
see: https://docs.openshift.com/container-platform/3.11/dev_guide/dev_tutorials/binary_builds.html#binary-builds-private-code

Yori Fournier's avatar
Yori Fournier committed
21 22 23 24 25
deploy:
create a project and an app and apply the kubernetes manifest:
`oc apply -f manifest.yaml`

staging and prod as normal