Last active
April 27, 2020 23:42
-
-
Save sub-mod/0857cfd96cc79a52feb8f850fe6ff8c3 to your computer and use it in GitHub Desktop.
simple-buildConfig with Dockerbuild Strategy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: image.openshift.io/v1 | |
kind: ImageStream | |
metadata: | |
name: test-bc-sample | |
spec: | |
lookupPolicy: | |
local: false | |
--- | |
kind: "BuildConfig" | |
apiVersion: "build.openshift.io/v1" #3.11 v1 | |
metadata: | |
name: "test-sample-build" | |
spec: | |
source: | |
type: "Git" | |
git: | |
uri: "https://github.com/sub-mod/empty-repo" | |
dockerfile: |- | |
FROM centos:7 | |
USER 0 | |
RUN yum install -y centos-release-scl && yum install devtoolset-7 rh-python36 -y | |
RUN source scl_source enable devtoolset-7 rh-python36 && gcc --version && python -V | |
USER example | |
strategy: | |
type: "Docker" | |
dockerStrategy: | |
dockerfilePath: Dockerfile | |
output: | |
to: | |
kind: "ImageStreamTag" | |
name: "test-bc-sample:latest" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment