Skip to content

Instantly share code, notes, and snippets.

@pweil-
Created April 3, 2017 14:07
Show Gist options
  • Save pweil-/7cffada4cae3f1385e194c148555ec30 to your computer and use it in GitHub Desktop.
Save pweil-/7cffada4cae3f1385e194c148555ec30 to your computer and use it in GitHub Desktop.
I0403 14:06:35.140540 1 tar.go:200] Adding "/tmp/s2i-build350187676/upload" to tar ...
I0403 14:06:35.140673 1 docker.go:874] ------------------------- opts: docker.RunContainerOptions{Image:"centos/ruby-22-centos7:latest", PullImage:false, PullAuth:api.AuthConfig{Username:"", Password:"", Email:"", ServerAddress:""}, ExternalScripts:false, ScriptsURL:"", Destination:"", Env:[]string{"OPENSHIFT_BUILD_NAME=ruby-ex-13", "OPENSHIFT_BUILD_NAMESPACE=testuserns", "OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-ex.git", "OPENSHIFT_BUILD_COMMIT=855ab2de53ff897a19e1055f7554c64d19e02c50", "BUILD_LOGLEVEL=5"}, Entrypoint:[]string(nil), Stdin:(*io.PipeReader)(0xc420098498), Stdout:(*io.PipeWriter)(0xc420098480), Stderr:(*io.PipeWriter)(0xc420098490), OnStart:(func(string) error)(nil), PostExec:(*sti.STI)(0xc4205a0800), TargetImage:false, NetworkMode:"container:78f6363da792223278433cc9531e4577885ff6771d2dbb3aa396ad67f8250171", UsernsMode:"host", User:"", CGroupLimits:(*api.CGroupLimits)(0xc420911fb0), CapDrop:[]string{"KILL", "MKNOD", "SETGID", "SETUID", "SYS_CHROOT"}, Binds:[]string{}, Command:"assemble", CommandOverrides:(func(string) string)(nil), CommandExplicit:[]string(nil)}
I0403 14:06:35.140830 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/HEAD as src/.git/HEAD
I0403 14:06:35.143072 1 docker.go:708] Image sha256:c55461e8ca9f74aefe2f2c489f9759bf0086c7406199d39023bb044294e8fd73 contains io.openshift.s2i.scripts-url set to "image:///usr/libexec/s2i"
I0403 14:06:35.143081 1 docker.go:783] Base directory for S2I scripts is '/usr/libexec/s2i'. Untarring destination is '/tmp'.
I0403 14:06:35.143090 1 docker.go:919] Setting "/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble" command for container ...
I0403 14:06:35.143195 1 docker.go:928] Creating container with options {Name:"s2i_centos_ruby_22_centos7_latest_04088eee" Config:&{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[OPENSHIFT_BUILD_NAME=ruby-ex-13 OPENSHIFT_BUILD_NAMESPACE=testuserns OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-ex.git OPENSHIFT_BUILD_COMMIT=855ab2de53ff897a19e1055f7554c64d19e02c50 BUILD_LOGLEVEL=5] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble] ArgsEscaped:false Image:centos/ruby-22-centos7:latest Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal:} HostConfig:&{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:container:78f6363da792223278433cc9531e4577885ff6771d2dbb3aa396ad67f8250171 PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[KILL MKNOD SETGID SETUID SYS_CHROOT] DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode:host ShmSize:67108864 Sysctls:map[] ConsoleSize:[0 0] Isolation: Resources:{CPUShares:2 Memory:92233720368547 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:100000 CPUQuota:-1 CpusetCpus: CpusetMems: Devices:[] DiskQuota:0 KernelMemory:0 MemoryReservation:0 MemorySwap:92233720368547 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:0 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0 NetworkMaximumBandwidth:0}}} ...
I0403 14:06:35.480188 1 docker.go:954] Attaching to container "7ab72a937b85e32dc6e3f81f1d6f04199ff1b003f948391c59e75d1796a61746" ...
I0403 14:06:35.480753 1 docker.go:965] Starting container "7ab72a937b85e32dc6e3f81f1d6f04199ff1b003f948391c59e75d1796a61746" ...
I0403 14:06:35.628011 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/config as src/.git/config
I0403 14:06:35.628095 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/description as src/.git/description
I0403 14:06:35.628188 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/applypatch-msg.sample as src/.git/hooks/applypatch-msg.sample
I0403 14:06:35.628293 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/commit-msg.sample as src/.git/hooks/commit-msg.sample
I0403 14:06:35.628555 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/post-update.sample as src/.git/hooks/post-update.sample
I0403 14:06:35.628647 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/pre-applypatch.sample as src/.git/hooks/pre-applypatch.sample
I0403 14:06:35.628703 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/pre-commit.sample as src/.git/hooks/pre-commit.sample
I0403 14:06:35.628755 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/pre-push.sample as src/.git/hooks/pre-push.sample
I0403 14:06:35.628820 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/pre-rebase.sample as src/.git/hooks/pre-rebase.sample
I0403 14:06:35.628878 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/prepare-commit-msg.sample as src/.git/hooks/prepare-commit-msg.sample
I0403 14:06:35.628946 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/hooks/update.sample as src/.git/hooks/update.sample
I0403 14:06:35.629001 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/index as src/.git/index
I0403 14:06:35.629073 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/info/exclude as src/.git/info/exclude
I0403 14:06:35.629161 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/logs/HEAD as src/.git/logs/HEAD
I0403 14:06:35.629361 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/logs/refs/heads/master as src/.git/logs/refs/heads/master
I0403 14:06:35.629454 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/logs/refs/remotes/origin/HEAD as src/.git/logs/refs/remotes/origin/HEAD
I0403 14:06:35.629545 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/7b/c119c5868ce3c8d033679eed1814ccebb621c4 as src/.git/objects/7b/c119c5868ce3c8d033679eed1814ccebb621c4
I0403 14:06:35.629627 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/85/5ab2de53ff897a19e1055f7554c64d19e02c50 as src/.git/objects/85/5ab2de53ff897a19e1055f7554c64d19e02c50
I0403 14:06:35.629720 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/8e/06a0c70d181ab7443bb4580841d26409721c96 as src/.git/objects/8e/06a0c70d181ab7443bb4580841d26409721c96
I0403 14:06:35.629779 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/a7/09f068080deadf6712de917ea37cd87d3f900d as src/.git/objects/a7/09f068080deadf6712de917ea37cd87d3f900d
I0403 14:06:35.629882 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/dc/dd2f248a2df1b0e28c3e523f40b315953cbfe1 as src/.git/objects/dc/dd2f248a2df1b0e28c3e523f40b315953cbfe1
I0403 14:06:35.630076 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/objects/e9/9db24a4b6d7853cb20b5d7ab748164f6bc3df8 as src/.git/objects/e9/9db24a4b6d7853cb20b5d7ab748164f6bc3df8
I0403 14:06:35.630164 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/packed-refs as src/.git/packed-refs
I0403 14:06:35.630253 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/refs/heads/master as src/.git/refs/heads/master
I0403 14:06:35.630338 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/refs/remotes/origin/HEAD as src/.git/refs/remotes/origin/HEAD
I0403 14:06:35.630402 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/.git/shallow as src/.git/shallow
I0403 14:06:35.630433 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/Gemfile as src/Gemfile
I0403 14:06:35.630464 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/Gemfile.lock as src/Gemfile.lock
I0403 14:06:35.630490 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/README.md as src/README.md
I0403 14:06:35.630527 1 tar.go:286] Adding to tar: /tmp/s2i-build350187676/upload/src/config.ru as src/config.ru
I0403 14:06:35.648712 1 sti.go:662] ---> Installing application source ...
I0403 14:06:35.649023 1 sti.go:662] ---> Building your Ruby application from source ...
I0403 14:06:35.649625 1 sti.go:662] ---> Running 'bundle install --deployment --without development:test' ...
I0403 14:06:39.208005 1 sti.go:662] Fetching gem metadata from https://rubygems.org/...............
I0403 14:06:40.605284 1 sti.go:662] Installing puma 3.4.0
I0403 14:06:41.218574 1 sti.go:662] Installing rack 1.6.4
I0403 14:06:41.218680 1 sti.go:662] Using bundler 1.7.8
I0403 14:06:41.218869 1 sti.go:662] Your bundle is complete!
I0403 14:06:41.219650 1 sti.go:662] Gems in the groups development and test were not installed.
I0403 14:06:41.219657 1 sti.go:662] It was installed into ./bundle
I0403 14:06:41.236141 1 sti.go:662] current dir is /opt/app-root/src
I0403 14:06:41.236154 1 sti.go:662] contents of bundle:
I0403 14:06:41.238059 1 sti.go:662] total 0
I0403 14:06:41.238070 1 sti.go:662] drwxr-xr-x. 3 default root 18 Apr 3 14:06 .
I0403 14:06:41.238074 1 sti.go:662] drwxrwxr-x. 6 2329225 root 128 Apr 3 14:06 ..
I0403 14:06:41.238079 1 sti.go:662] drwxr-xr-x. 9 default root 111 Apr 3 14:06 ruby
I0403 14:06:41.238171 1 sti.go:662] ---> Cleaning up unused ruby gems ...
I0403 14:06:41.386761 1 sti.go:662] contents of bundle:
I0403 14:06:41.388139 1 sti.go:662] total 0
I0403 14:06:41.388162 1 sti.go:662] drwxr-xr-x. 3 default root 18 Apr 3 14:06 .
I0403 14:06:41.388172 1 sti.go:662] drwxrwxr-x. 6 2329225 root 128 Apr 3 14:06 ..
I0403 14:06:41.388182 1 sti.go:662] drwxr-xr-x. 9 default root 111 Apr 3 14:06 ruby
I0403 14:06:41.749861 1 sti.go:662] fixing permissions
I0403 14:06:41.749877 1 sti.go:662] changing permissions on ./tmp
I0403 14:06:41.749882 1 sti.go:662] changing permissions on ./db
I0403 14:06:41.749887 1 sti.go:662] end of script - contents of /opt/app-root/src are:
I0403 14:06:41.751348 1 sti.go:662] total 52
I0403 14:06:41.751359 1 sti.go:662] -rw-r--r--. 1 default root 52 Apr 3 14:06 Gemfile
I0403 14:06:41.751364 1 sti.go:662] -rw-r--r--. 1 default root 149 Apr 3 14:06 Gemfile.lock
I0403 14:06:41.751371 1 sti.go:662] -rw-r--r--. 1 default root 3183 Apr 3 14:06 README.md
I0403 14:06:41.751387 1 sti.go:662] drwxr-xr-x. 3 default root 18 Apr 3 14:06 bundle
I0403 14:06:41.751392 1 sti.go:662] -rwxr-xr-x. 1 default root 39929 Apr 3 14:06 config.ru
I0403 14:06:41.818043 1 docker.go:996] Waiting for container "7ab72a937b85e32dc6e3f81f1d6f04199ff1b003f948391c59e75d1796a61746" to stop ...
I0403 14:06:41.964779 1 docker.go:1013] Invoking PostExecute function
I0403 14:06:41.964792 1 postexecutorstep.go:62] Skipping step: store previous image
I0403 14:06:41.964796 1 postexecutorstep.go:109] Executing step: commit image
I0403 14:06:41.967310 1 docker.go:1047] Committing container with dockerOpts: {Reference:testuserns/ruby-ex-13:ed65932b Comment: Author: Changes:[] Pause:false Config:0xc421215b00}, config: {Hostname: Domainname: User:1001 AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[OPENSHIFT_BUILD_NAME=ruby-ex-13 OPENSHIFT_BUILD_NAMESPACE=testuserns OPENSHIFT_BUILD_SOURCE=https://github.com/openshift/ruby-ex.git OPENSHIFT_BUILD_COMMIT=855ab2de53ff897a19e1055f7554c64d19e02c50 BUILD_LOGLEVEL=5] Cmd:[/usr/libexec/s2i/run] ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[container-entrypoint] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[io.k8s.display-name:testuserns/ruby-ex-13:ed65932b io.openshift.builder-base-version:915990b license:GPLv2 name:CentOS Base Image io.openshift.build.source-location:https://github.com/openshift/ruby-ex.git io.k8s.description:Platform for building and running Ruby 2.2 applications io.openshift.build.image:centos/ruby-22-centos7:latest build-date:20161214 io.openshift.builder-version:06c0ec324aa6edf151f4ea1e7304199c72011bec io.s2i.scripts-url:image:///usr/libexec/s2i io.openshift.build.commit.id:855ab2de53ff897a19e1055f7554c64d19e02c50 io.openshift.build.commit.message:Merge pull request #6 from aj07/typo io.openshift.build.commit.date:Mon Dec 12 14:37:32 2016 +0100 io.openshift.build.commit.ref:master io.openshift.expose-services:8080:http io.openshift.s2i.scripts-url:image:///usr/libexec/s2i io.openshift.tags:builder,ruby,ruby22 vendor:CentOS io.openshift.build.commit.author:Ionut Palade <PI-Victor@users.noreply.github.com>] StopSignal:}
I0403 14:06:43.346058 1 postexecutorstep.go:388] Executing step: report success
I0403 14:06:43.346073 1 postexecutorstep.go:393] Successfully built testuserns/ruby-ex-13:ed65932b
I0403 14:06:43.346078 1 postexecutorstep.go:87] Skipping step: remove previous image
I0403 14:06:43.346102 1 docker.go:938] Removing container "7ab72a937b85e32dc6e3f81f1d6f04199ff1b003f948391c59e75d1796a61746" ...
I0403 14:06:43.680842 1 docker.go:942] Removed container "7ab72a937b85e32dc6e3f81f1d6f04199ff1b003f948391c59e75d1796a61746"
I0403 14:06:43.680933 1 cleanup.go:31] Temporary directory "/tmp/s2i-build350187676" will be saved, not deleted
I0403 14:06:43.688972 1 cfg.go:44] Locating docker auth for image 172.30.175.35:5000/testuserns/ruby-ex:latest and type PUSH_DOCKERCFG_PATH
I0403 14:06:43.689002 1 cfg.go:112] Using Docker authentication configuration in '/var/run/secrets/openshift.io/push/.dockercfg'
I0403 14:06:43.689179 1 cfg.go:79] Using serviceaccount user for Docker authentication for image 172.30.175.35:5000/testuserns/ruby-ex:latest
I0403 14:06:43.689195 1 sti.go:313] Using provided push secret for pushing 172.30.175.35:5000/testuserns/ruby-ex:latest image
Pushing image 172.30.175.35:5000/testuserns/ruby-ex:latest ...
The push refers to a repository [172.30.175.35:5000/testuserns/ruby-ex]
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Preparing
Waiting
Waiting
Waiting
Waiting
Waiting
Waiting
Waiting
Waiting
Waiting
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Layer already exists
Pushing 3.072 kB
Pushed
latest: digest: sha256:13baeafe32a3fe6646694709fabe11e2d54e64e8493b4dc002af1249b66541b1 size: 22838
Push successful
[pweil@localhost tmp]$ docker run -it 172.30.175.35:5000/testuserns/ruby-ex@sha256:13baeafe32a3fe6646694709fabe11e2d54e64e8493b4dc002af1249b66541b1 ls -l /opt/app-root/src
total 0
[pweil@localhost tmp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment