Created
February 13, 2020 18:32
-
-
Save pvalena/b0eda49375f5162f00c4f25a6b81f064 to your computer and use it in GitHub Desktop.
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 characters
$ s2i build --loglevel=3 https://github.com/openshift/ruby-hello-world candidate-registry.fedoraproject.org/f31/ruby f31-ruby-hello-test | |
I0213 19:25:34.176694 22071 build.go:50] Running S2I version "v1.1.13" | |
I0213 19:25:34.187241 22071 docker.go:484] Image "candidate-registry.fedoraproject.org/f31/ruby:latest" not available locally, pulling ... | |
I0213 19:25:36.222870 22071 build.go:163] | |
Builder Name: Ruby 2.6 | |
Builder Image: candidate-registry.fedoraproject.org/f31/ruby | |
Source: https://github.com/openshift/ruby-hello-world | |
Output Image Tag: f31-ruby-hello-test | |
Environment: | |
Labels: | |
Incremental Build: disabled | |
Remove Old Build: disabled | |
Builder Pull Policy: if-not-present | |
Previous Image Pull Policy: if-not-present | |
Quiet: disabled | |
Layered Build: disabled | |
Docker Endpoint: unix:///var/run/docker.sock | |
Docker Pull Config: /home/vagrant/.docker/config.json | |
Docker Pull User: | |
I0213 19:25:36.231258 22071 docker.go:488] Using locally available image "candidate-registry.fedoraproject.org/f31/ruby:latest" | |
I0213 19:25:36.244659 22071 docker.go:488] Using locally available image "candidate-registry.fedoraproject.org/f31/ruby:latest" | |
I0213 19:25:36.244718 22071 docker.go:728] Image sha256:ffb01683ed4dbfe8cb63d73c6fdae31f10bc61ed5f390abdef616a366371e217 contains io.openshift.s2i.scripts-url set to "image:///usr/libexec/s2i" | |
I0213 19:25:36.244798 22071 sti.go:204] Preparing to build f31-ruby-hello-test | |
I0213 19:25:36.246164 22071 clone.go:36] Downloading "https://github.com/openshift/ruby-hello-world" ... | |
I0213 19:25:36.246219 22071 clone.go:40] Cloning sources into "/tmp/s2i891002674/upload/src" | |
I0213 19:25:37.558026 22071 clone.go:56] Checked out "HEAD" | |
I0213 19:25:37.617562 22071 clone.go:62] Updated submodules for "HEAD" | |
I0213 19:25:37.647886 22071 sti.go:213] Clean build will be performed | |
I0213 19:25:37.647914 22071 sti.go:216] Performing source build from https://github.com/openshift/ruby-hello-world | |
I0213 19:25:37.647929 22071 sti.go:227] Running "assemble" in "f31-ruby-hello-test" | |
I0213 19:25:37.647947 22071 sti.go:585] Using image name candidate-registry.fedoraproject.org/f31/ruby | |
I0213 19:25:37.651386 22071 docker.go:488] Using locally available image "candidate-registry.fedoraproject.org/f31/ruby:latest" | |
I0213 19:25:37.651448 22071 environment.go:41] Setting 1 environment variables provided by environment file in sources | |
I0213 19:25:37.651667 22071 sti.go:703] starting the source uploading ... | |
I0213 19:25:37.658035 22071 docker.go:728] Image sha256:ffb01683ed4dbfe8cb63d73c6fdae31f10bc61ed5f390abdef616a366371e217 contains io.openshift.s2i.scripts-url set to "image:///usr/libexec/s2i" | |
I0213 19:25:37.658053 22071 docker.go:803] Base directory for S2I scripts is '/usr/libexec/s2i'. Untarring destination is '/tmp'. | |
I0213 19:25:37.658296 22071 docker.go:968] Creating container with options {Name:"s2i_candidate_registry_fedoraproject_org_f31_ruby_b05efd56" Config:{Hostname: Domainname: User: AttachStdin:false AttachStdout:true AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[RACK_ENV=production] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble] Healthcheck:<nil> ArgsEscaped:false Image:candidate-registry.fedoraproject.org/f31/ruby:latest Volumes:map[] WorkingDir: Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} HostConfig:&{Binds:[] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode: PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[] DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:67108864 Sysctls:map[] Runtime: ConsoleSize:[0 0] Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DiskQuota:0 KernelMemory:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:0 Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[] Init:<nil>}} ... | |
I0213 19:25:37.749173 22071 docker.go:1000] Attaching to container "050b574583edb9642550397a365cd408799480168166c562ed3ca5f63cf48364" ... | |
I0213 19:25:37.750772 22071 docker.go:1011] Starting container "050b574583edb9642550397a365cd408799480168166c562ed3ca5f63cf48364" ... | |
I0213 19:25:38.083735 22071 sti.go:711] ---> Installing application source ... | |
I0213 19:25:38.085927 22071 sti.go:711] ---> Building your Ruby application from source ... | |
I0213 19:25:38.085948 22071 sti.go:711] ---> Running 'bundle install --retry 2 --deployment --without development:test' ... | |
I0213 19:25:41.703822 22071 sti.go:711] Fetching gem metadata from https://rubygems.org/.......... | |
I0213 19:25:41.729429 22071 sti.go:711] Fetching rake 13.0.0 | |
I0213 19:25:41.846471 22071 sti.go:711] Installing rake 13.0.0 | |
I0213 19:25:41.919399 22071 sti.go:711] Fetching concurrent-ruby 1.1.5 | |
I0213 19:25:42.061906 22071 sti.go:711] Installing concurrent-ruby 1.1.5 | |
I0213 19:25:42.204954 22071 sti.go:711] Fetching i18n 1.7.0 | |
I0213 19:25:42.298116 22071 sti.go:711] Installing i18n 1.7.0 | |
I0213 19:25:42.356614 22071 sti.go:711] Fetching minitest 5.13.0 | |
I0213 19:25:42.454953 22071 sti.go:711] Installing minitest 5.13.0 | |
I0213 19:25:42.501598 22071 sti.go:711] Fetching thread_safe 0.3.6 | |
I0213 19:25:42.608004 22071 sti.go:711] Installing thread_safe 0.3.6 | |
I0213 19:25:42.671753 22071 sti.go:711] Fetching tzinfo 1.2.5 | |
I0213 19:25:42.799970 22071 sti.go:711] Installing tzinfo 1.2.5 | |
I0213 19:25:42.900248 22071 sti.go:711] Fetching zeitwerk 2.2.1 | |
I0213 19:25:42.981360 22071 sti.go:711] Installing zeitwerk 2.2.1 | |
I0213 19:25:43.006165 22071 sti.go:711] Fetching activesupport 6.0.0 | |
I0213 19:25:43.136502 22071 sti.go:711] Installing activesupport 6.0.0 | |
I0213 19:25:43.359109 22071 sti.go:711] Fetching activemodel 6.0.0 | |
I0213 19:25:43.451238 22071 sti.go:711] Installing activemodel 6.0.0 | |
I0213 19:25:43.530007 22071 sti.go:711] Fetching activerecord 6.0.0 | |
I0213 19:25:43.685769 22071 sti.go:711] Installing activerecord 6.0.0 | |
I0213 19:25:44.140095 22071 sti.go:711] Using bundler 1.17.2 | |
I0213 19:25:44.141040 22071 sti.go:711] Fetching mustermann 1.0.3 | |
I0213 19:25:44.235015 22071 sti.go:711] Installing mustermann 1.0.3 | |
I0213 19:25:44.296027 22071 sti.go:711] Fetching mysql2 0.4.10 | |
I0213 19:25:44.418289 22071 sti.go:711] Installing mysql2 0.4.10 with native extensions | |
I0213 19:25:49.412104 22071 sti.go:711] Fetching rack 2.0.7 | |
I0213 19:25:49.574260 22071 sti.go:711] Installing rack 2.0.7 | |
I0213 19:25:49.723896 22071 sti.go:711] Fetching rack-protection 2.0.7 | |
I0213 19:25:49.808130 22071 sti.go:711] Installing rack-protection 2.0.7 | |
I0213 19:25:49.858384 22071 sti.go:711] Fetching tilt 2.0.10 | |
I0213 19:25:49.940281 22071 sti.go:711] Installing tilt 2.0.10 | |
I0213 19:25:49.995857 22071 sti.go:711] Fetching sinatra 2.0.7 | |
I0213 19:25:50.154082 22071 sti.go:711] Installing sinatra 2.0.7 | |
I0213 19:25:50.211957 22071 sti.go:711] Fetching sinatra-activerecord 2.0.14 | |
I0213 19:25:50.269884 22071 sti.go:711] Installing sinatra-activerecord 2.0.14 | |
I0213 19:25:50.283526 22071 sti.go:711] Bundle complete! 6 Gemfile dependencies, 18 gems now installed. | |
I0213 19:25:50.284564 22071 sti.go:711] Gems in the groups development and test were not installed. | |
I0213 19:25:50.284576 22071 sti.go:711] Bundled gems are installed into `./bundle` | |
I0213 19:25:50.284582 22071 sti.go:711] Post-install message from i18n: | |
I0213 19:25:50.284587 22071 sti.go:711] | |
I0213 19:25:50.284593 22071 sti.go:711] HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. | |
I0213 19:25:50.284598 22071 sti.go:711] But that may break your application. | |
I0213 19:25:50.284603 22071 sti.go:711] | |
I0213 19:25:50.284608 22071 sti.go:711] Please check your Rails app for 'config.i18n.fallbacks = true'. | |
I0213 19:25:50.284615 22071 sti.go:711] If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be | |
I0213 19:25:50.284620 22071 sti.go:711] 'config.i18n.fallbacks = [I18n.default_locale]'. | |
I0213 19:25:50.284625 22071 sti.go:711] If not, fallbacks will be broken in your app by I18n 1.1.x. | |
I0213 19:25:50.284631 22071 sti.go:711] | |
I0213 19:25:50.284636 22071 sti.go:711] For more info see: | |
I0213 19:25:50.284641 22071 sti.go:711] https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 | |
I0213 19:25:50.284646 22071 sti.go:711] | |
I0213 19:25:50.323611 22071 sti.go:711] ---> Cleaning up unused ruby gems ... | |
I0213 19:25:50.492515 22071 sti.go:711] Running `bundle clean --verbose` with bundler 1.17.2 | |
I0213 19:25:50.535321 22071 sti.go:711] Frozen, using resolution from the lockfile | |
I0213 19:25:52.209391 22071 docker.go:1067] Invoking PostExecute function | |
I0213 19:25:52.209416 22071 postexecutorstep.go:68] Skipping step: store previous image | |
I0213 19:25:52.209432 22071 postexecutorstep.go:117] Executing step: commit image | |
I0213 19:25:52.211876 22071 postexecutorstep.go:523] Checking for new Labels to apply... | |
I0213 19:25:52.211890 22071 postexecutorstep.go:531] Creating the download path '/tmp/s2i891002674/metadata' | |
I0213 19:25:52.304794 22071 postexecutorstep.go:539] unable to download and extract 'image_metadata.json' ... continuing | |
I0213 19:25:52.311187 22071 docker.go:1101] Committing container with dockerOpts: {Reference:f31-ruby-hello-test Comment: Author: Changes:[] Pause:false Config:0xc4202d6640}, config: {Hostname: Domainname: User:1001 AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RACK_ENV=production] Cmd:[/usr/libexec/s2i/run] Healthcheck:<nil> ArgsEscaped:false Image: Volumes:map[] WorkingDir: Entrypoint:[container-entrypoint] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[vcs-type:git maintainer:SoftwareCollections.org <[email protected]> build-date:2020-02-13T17:53:57.665061 authoritative-source-url:registry.fedoraproject.org vendor:Fedora Project com.redhat.component:ruby io.openshift.s2i.build.image:candidate-registry.fedoraproject.org/f31/ruby com.redhat.build-host:osbs-node01.phx2.fedoraproject.org summary:Platform for building and running Ruby 2.6 applications io.openshift.s2i.build.commit.author:Ben Parees <[email protected]> io.openshift.s2i.build.commit.ref:master io.openshift.s2i.build.source-location:https://github.com/openshift/ruby-hello-world io.k8s.display-name:f31-ruby-hello-test io.openshift.s2i.build.commit.message:Merge pull request #85 from wewang58/master vcs-ref:a4e75f54ed7400f53b58c09823f2a5a442058ce8 description:Ruby 2.6 available as container is a base platform for building and running various Ruby 2.6 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible. usage:s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=2.4/test/puma-test-app/ registry.fedoraproject.org/f31/ruby ruby-sample-app io.k8s.description:Ruby 2.6 available as container is a base platform for building and running various Ruby 2.6 applications and frameworks. Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible. io.openshift.expose-services:8080:http io.openshift.tags:builder,ruby,ruby26 license:MIT version:0 io.s2i.scripts-url:image:///usr/libexec/s2i io.openshift.s2i.scripts-url:image:///usr/libexec/s2i name:f31/ruby io.openshift.s2i.build.commit.date:Wed Nov 6 09:41:20 2019 -0500 io.openshift.s2i.build.commit.id:57073c041d103a412ff7d4a6e64b0ea7f77ea1b3 architecture:x86_64 distribution-scope:public release:17.f25docker] StopSignal: StopTimeout:<nil> Shell:[]} | |
I0213 19:25:53.102383 22071 postexecutorstep.go:393] Executing step: report success | |
I0213 19:25:53.102406 22071 postexecutorstep.go:398] Successfully built f31-ruby-hello-test | |
I0213 19:25:53.102415 22071 postexecutorstep.go:93] Skipping step: remove previous image | |
I0213 19:25:53.165540 22071 cleanup.go:33] Removing temporary directory /tmp/s2i891002674 | |
I0213 19:25:53.165588 22071 fs.go:302] Removing directory '/tmp/s2i891002674' | |
I0213 19:25:53.167653 22071 build.go:175] Build completed successfully | |
$ docker run --rm -it --network host f31-ruby-hello-test /bin/bash bash-5.0$ ls | |
Dockerfile Gemfile.lock Rakefile bundle config.ru models.rb test | |
Gemfile README.md app.rb config db run.sh views | |
$ docker run --rm -it f31-ruby-hello-test | |
You might consider adding 'puma' into your Gemfile. | |
Run app... | |
[2020-02-13 18:26:36] INFO WEBrick 1.4.2 | |
[2020-02-13 18:26:36] INFO ruby 2.6.5 (2019-10-01) [x86_64-linux] | |
[2020-02-13 18:26:36] INFO WEBrick::HTTPServer#start: pid=1 port=8080 | |
(another terminal) $ curl -I localhost:8080 | |
HTTP/1.1 200 OK | |
Content-Type: text/html;charset=utf-8 | |
Content-Length: 2478 | |
X-Xss-Protection: 1; mode=block | |
X-Content-Type-Options: nosniff | |
X-Frame-Options: SAMEORIGIN | |
Server: WEBrick/1.4.2 (Ruby/2.6.5/2019-10-01) | |
Date: Thu, 13 Feb 2020 18:31:18 GMT | |
Connection: Keep-Alive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment