Skip to content

Instantly share code, notes, and snippets.

@dudash
Last active January 23, 2017 20:51
Show Gist options
  • Save dudash/7fca2eb1f864e11337c7cca4e9e8ce29 to your computer and use it in GitHub Desktop.
Save dudash/7fca2eb1f864e11337c7cca4e9e8ce29 to your computer and use it in GitHub Desktop.
This a custom build config (defined in yaml) that can be used in OpenShift to create a S2I docker image. For use with `oc create`
kind: "BuildConfig"
apiVersion: "v1"
metadata:
name: "swift-30-centos7-build"
spec:
triggers:
- type: "GitHub"
github:
secret: "secret101"
source:
type: "Git"
git:
uri: "git://github.com/dudash/s2i-swift.git"
strategy:
type: "Custom"
customStrategy:
from:
kind: "DockerImage"
name: "openshift/sti-image-builder"
env:
- name: "IMAGE_NAME"
value: "openshift/swift-30-centos7"
- name: "CONTEXT_DIR"
value: "/3.0/"
exposeDockerSocket: true
output:
to:
kind: "ImageStreamTag"
name: "swift:latest"
@dudash
Copy link
Author

dudash commented Jan 23, 2017

Hmm... openshift/sti-image-builder isn't there.... there are however these:
mfojtik/sti-image-builder
openshift/origin-custom-docker-builder

These seem to be "Source" strategy type images
openshift/origin-sti-builder
registry.access.redhat.com/openshift3/ose-sti-builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment