Created
January 29, 2016 10:09
-
-
Save mfojtik/5707899c2c14363c11de to your computer and use it in GitHub Desktop.
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
[root@localhost origin]# oc create -f secret2.json | |
secret "testsecret2" created | |
[root@localhost origin]# oc new-build --image=ruby:2.2 https://github.com/wzheng1/build-secret.git --strategy=docker --build-secret testsecret1:mysecret1 --build-secret testsecret2 | |
--> Found image 57b08d9 (Less than a second old) in image stream "ruby" in project "openshift" under tag "2.2" for "ruby:2.2" | |
Ruby 2.2 | |
-------- | |
Platform for building and running Ruby 2.2 applications | |
Tags: builder, ruby, ruby22 | |
* A Docker build using source code from https://github.com/wzheng1/build-secret.git will be created | |
* The resulting image will be pushed to image stream "build-secret:latest" | |
--> Creating resources with label build=build-secret ... | |
imagestream "build-secret" created | |
buildconfig "build-secret" created | |
--> Success | |
Build configuration "build-secret" created and build triggered. | |
Run 'oc logs -f bc/build-secret' to stream the build progress. | |
[root@localhost origin]# oc logs -f bc/build-secret | |
I0125 18:37:50.553684 1 docker.go:115] Copying files from the build secret "testsecret1" to "mysecret1" | |
I0125 18:37:50.556373 1 docker.go:115] Copying files from the build secret "testsecret2" to "." | |
Step 0 : FROM centos/ruby-22-centos7@sha256:3a335d7d8a452970c5b4054ad7118ff134b3a6b50a2bb6d0c07c746e8986b28e | |
---> 57b08d979c86 | |
Step 1 : USER default | |
---> Running in 8720a9701b1d | |
---> 7b49f6b23839 | |
Removing intermediate container 8720a9701b1d | |
Step 2 : EXPOSE 8080 | |
---> Running in 72d945795b01 | |
---> 027bf388a53a | |
Removing intermediate container 72d945795b01 | |
Step 3 : ENV RACK_ENV production | |
---> Running in bb8da0767e4e | |
---> 1c9d84f4db18 | |
Removing intermediate container bb8da0767e4e | |
Step 4 : ENV RAILS_ENV production | |
---> Running in d7756222f2d5 | |
---> 589ae026074c | |
Removing intermediate container d7756222f2d5 | |
Step 5 : COPY . /opt/app-root/src/ | |
---> 148afe4e373f | |
Removing intermediate container e219f5eeb095 | |
Step 6 : RUN scl enable rh-ruby22 "bundle install" | |
---> Running in d88b0509fa2a | |
Fetching gem metadata from https://rubygems.org/.......... | |
Installing rake 10.3.2 | |
Installing i18n 0.6.11 | |
Installing json 1.8.3 | |
Installing minitest 5.4.2 | |
Installing thread_safe 0.3.4 | |
Installing tzinfo 1.2.2 | |
Installing activesupport 4.1.7 | |
Installing builder 3.2.2 | |
Installing activemodel 4.1.7 | |
Installing arel 5.0.1.20140414130214 | |
Installing activerecord 4.1.7 | |
Installing mysql2 0.3.16 | |
Installing rack 1.5.2 | |
Installing rack-protection 1.5.3 | |
Installing tilt 1.4.1 | |
Installing sinatra 1.4.5 | |
Installing sinatra-activerecord 2.0.3 | |
Using bundler 1.7.8 | |
Your bundle is complete! | |
Use `bundle show [gemname]` to see where a bundled gem is installed. | |
---> 5f9db8cc15d5 | |
Removing intermediate container d88b0509fa2a | |
Step 7 : CMD scl enable rh-ruby22 ./run.sh | |
---> Running in b6cad8c33aa5 | |
---> 12d73556af80 | |
Removing intermediate container b6cad8c33aa5 | |
Step 8 : USER root | |
---> Running in 515b2dd19eb7 | |
---> 52c261ea389a | |
Removing intermediate container 515b2dd19eb7 | |
Step 9 : RUN chmod og+rw /opt/app-root/src/db | |
---> Running in 2d4becf56a18 | |
---> 4bf18080053b | |
Removing intermediate container 2d4becf56a18 | |
Step 10 : ADD ./mysecret1 /secrets | |
---> 2e7f80cd4d32 | |
Removing intermediate container 0bdf341c7216 | |
Step 11 : COPY ./secret2 / | |
---> f0c55e505e3f | |
Removing intermediate container 5e65f751fddc | |
Step 12 : RUN test -f /secrets/secret1 && echo -n "secret1=" && cat /secrets/secret1 | |
---> Running in c8165d60b97d | |
secret1=secret1 | |
---> ac35818bca91 | |
Removing intermediate container c8165d60b97d | |
Step 13 : RUN test -f /secret2 && echo -n "relative-secret2=" && cat /secret2 | |
---> Running in a847e13beab9 | |
relative-secret2=secret2 | |
---> ca688a135ed9 | |
Removing intermediate container a847e13beab9 | |
Step 14 : RUN rm -rf /secrets && rm -rf /secret2 | |
---> Running in e271278ad0d0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment