Last active
April 27, 2020 23:42
-
-
Save sub-mod/0857cfd96cc79a52feb8f850fe6ff8c3 to your computer and use it in GitHub Desktop.
Revisions
-
sub-mod revised this gist
Apr 27, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -20,7 +20,7 @@ spec: 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" -
sub-mod revised this gist
Apr 27, 2020 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,15 +8,20 @@ spec: 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_enable devtoolset-7 rh-python36 USER example strategy: type: "Docker" dockerStrategy: -
sub-mod created this gist
Apr 27, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ --- apiVersion: image.openshift.io/v1 kind: ImageStream metadata: name: test-bc-sample spec: lookupPolicy: local: false --- kind: "BuildConfig" apiVersion: "v1" metadata: name: "test-sample-build" spec: source: type: "Git" git: uri: "https://github.com/sub-mod/empty-repo" dockerfile: "FROM registry.access.redhat.com/ubi8:latest\n USER 0\n RUN yum install which -y\n RUN yum install gcc -y\n USER example" strategy: type: "Docker" dockerStrategy: dockerfilePath: Dockerfile output: to: kind: "ImageStreamTag" name: "test-bc-sample:latest"