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
- Host: GitHub
- URL: https://github.com/5monkeys/docker-openshift-builder
- Owner: 5monkeys
- Created: 2018-01-31T15:05:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T13:09:53.000Z (over 7 years ago)
- Last Synced: 2025-03-21T10:13:25.055Z (about 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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