An open API service indexing awesome lists of open source software.

https://github.com/5monkeys/docker-openshift-builder

Custom OpenShift builder using Docker CE
https://github.com/5monkeys/docker-openshift-builder

Last synced: about 2 months ago
JSON representation

Custom OpenShift builder using Docker CE

Awesome Lists containing this project

README

          

Custom builder for OpenShift
============================

OpenShift doesn't have (at the time of writing) built-in support for
Docker CE build time features. Even if you manage to run OpenShift within
Docker CE, the docker strategy can't handle certain Dockerfile syntaxes. As a
workaround you can deploy a Docker CE pod inside your cluster using the official
`docker:dind` image and then configure your `BuildConfig` to use this image for
a custom builder pod.

Example usage
-------------

apiVersion: v1
kind: BuildConfig
metadata:
...

spec:
...

strategy:
customStrategy:
forcePull: True

from:
kind: DockerImage
name: 5monkeys/openshift-builder:latest

env:
- name: BUILD_COMMAND
value: make image && make push

- name: DOCKER_HOST
value: tcp://:2375