Created
March 4, 2021 13:28
-
-
Save jackorp/f32a7135a72211c6954a88584e8ea6db 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
make[1]: Entering directory '/home/jprokop/projects/s2i/s2i-ruby-container' | |
VERSION="3.0" SKIP_SQUASH=1 UPDATE_BASE= OS=fedora CLEAN_AFTER= DOCKER_BUILD_CONTEXT=. OPENSHIFT_NAMESPACES="2.0" CUSTOM_REPO="" REGISTRY="""" /usr/bin/env bash common/build.sh | |
-> Version 3.0: building image from 'Dockerfile.fedora' ... | |
-> Pulling image registry.fedoraproject.org/f34/s2i-base before building image from Dockerfile.fedora. | |
The image registry.fedoraproject.org/f34/s2i-base is already pulled. | |
-> building using docker build --label io.openshift.builder-version="adee3b1" -f "$dockerfile" "${DOCKER_BUILD_CONTEXT}" | |
STEP 1: FROM registry.fedoraproject.org/f34/s2i-base | |
STEP 2: EXPOSE 8080 | |
--> Using cache b003befea6a3f7661d0505898657f6def39884446d16053c7b4e57f19b96cc79 | |
--> b003befea6a | |
STEP 3: ENV NAME=ruby RUBY_VERSION=3.0 RUBY_SHORT_VER=30 VERSION=0 | |
--> Using cache 45089a82e3ef19d659c28dcab2966b06628a94be1f37a2f203b1c4295a662d63 | |
--> 45089a82e3e | |
STEP 4: ENV SUMMARY="Platform for building and running Ruby $RUBY_VERSION applications" DESCRIPTION="Ruby $RUBY_VERSION available as container is a base platform for building and running various Ruby $RUBY_VERSION 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." | |
--> Using cache 2d7253f80629d4a873aa77d4508fab31715eb9aa0b828fde58920405288db3c5 | |
--> 2d7253f8062 | |
STEP 5: LABEL summary="$SUMMARY" description="$DESCRIPTION" io.k8s.description="$DESCRIPTION" io.k8s.display-name="Ruby ${RUBY_VERSION}" io.openshift.expose-services="8080:http" io.openshift.tags="builder,ruby,ruby${RUBY_SHORT_VER}" com.redhat.component="$NAME" name="$FGC/$NAME" version="$VERSION" usage="s2i build https://github.com/sclorg/s2i-ruby-container.git --context-dir=${RUBY_VERSION}/test/puma-test-app/ registry.fedoraproject.org/$FGC/ruby ruby-sample-app" maintainer="SoftwareCollections.org <sclorg@redhat.com>" | |
--> Using cache 46a0e9d05fcdb5f67fed65a9db18dd9ad352083969ab18e58a3f8d61551f3038 | |
--> 46a0e9d05fc | |
STEP 6: RUN INSTALL_PKGS="ruby ruby-devel rubygem-bundler rubygem-rake rubygems-devel redhat-rpm-config libffi-devel" && dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && dnf clean all | |
--> Using cache cda45f14f4587c3fd80dfb1660ce649959e5344e3670b31f93de918dae4f5ba1 | |
--> cda45f14f45 | |
STEP 7: COPY ./s2i/bin/ $STI_SCRIPTS_PATH | |
--> Using cache 62ac5a1094be8f4c6731fa7d6f3a5e491d37d72bd9dc0bcb1ceb49753b81848b | |
--> 62ac5a1094b | |
STEP 8: COPY ./root/ / | |
--> Using cache 1dca1ee46dc165a6c956a417471c1b9e975a951973d9b626b0e207bce57e8868 | |
--> 1dca1ee46dc | |
STEP 9: RUN chown -R 1001:0 ${APP_ROOT} && chmod -R ug+rwx ${APP_ROOT} && rpm-file-permissions | |
--> Using cache caa58489d6d0af96a48f559b7ace0db8d0c24968574aca947186e3b7f0580d54 | |
--> caa58489d6d | |
STEP 10: USER 1001 | |
--> Using cache 545e4adb3cb6c3bdea598d3a7e39919f185b59906f057c532f4e896e1a367e78 | |
--> 545e4adb3cb | |
STEP 11: CMD $STI_SCRIPTS_PATH/usage | |
--> Using cache 53a8fb648912f04ffdba3674a0b7258f322eadcf40adffb130dd0e6e9e3aa790 | |
--> 53a8fb64891 | |
53a8fb648912f04ffdba3674a0b7258f322eadcf40adffb130dd0e6e9e3aa790 | |
ruby 3.0 => 53a8fb648912f04ffdba3674a0b7258f322eadcf40adffb130dd0e6e9e3aa790 | |
make[1]: Leaving directory '/home/jprokop/projects/s2i/s2i-ruby-container' | |
VERSIONS="3.0" SKIP_SQUASH=1 UPDATE_BASE= OS=fedora CLEAN_AFTER= DOCKER_BUILD_CONTEXT=. OPENSHIFT_NAMESPACES="2.0" CUSTOM_REPO="" REGISTRY="""" TEST_MODE=true /usr/bin/env bash common/tag.sh | |
-> Tagging image '53a8fb648912f04ffdba3674a0b7258f322eadcf40adffb130dd0e6e9e3aa790' as 'f34/ruby:0' and 'f34/ruby:latest' and 'f34/ruby:20210302-adee3b1' | |
VERSIONS="3.0" SKIP_SQUASH=1 UPDATE_BASE= OS=fedora CLEAN_AFTER= DOCKER_BUILD_CONTEXT=. OPENSHIFT_NAMESPACES="2.0" CUSTOM_REPO="" REGISTRY="""" TEST_MODE=true /usr/bin/env bash common/test.sh | |
/home/jprokop/projects/s2i/s2i-ruby-container/3.0/test /home/jprokop/projects/s2i/s2i-ruby-container/3.0 | |
/home/jprokop/projects/s2i/s2i-ruby-container/3.0 | |
[1m[INFO] Check building using a Dockerfile...[0m | |
Using this Dockerfile: | |
FROM f34/ruby:0 | |
ADD app-src ./ | |
RUN bundle install --path ./bundle | |
CMD exec bundle exec "rackup -P /tmp/rack.pid --host 0.0.0.0 --port 8080" | |
Building 'myapp' image using docker build | |
STEP 1: FROM f34/ruby:0 | |
STEP 2: ADD app-src ./ | |
--> 1aec1b54f2b | |
STEP 3: RUN bundle install --path ./bundle | |
Fetching gem metadata from https://rubygems.org/.. | |
ERROR: The image cannot be built from /home/jprokop/projects/s2i/s2i-ruby-container/examples/from-dockerfile/Dockerfile and application https://github.com/sclorg/rails-ex.git. | |
Terminating the Dockerfile build. | |
[1m[INFO] Check building using a Dockerfile.s2i...[0m | |
Using this Dockerfile: | |
FROM f34/ruby:0 | |
# Add application sources to a directory that the assemble script expects them | |
# and set permissions so that the container runs without root access | |
USER 0 | |
ADD app-src /tmp/src | |
RUN chown -R 1001:0 /tmp/src | |
USER 1001 | |
ENV RAILS_ENV=development | |
# Install the dependencies | |
RUN /usr/libexec/s2i/assemble | |
# Set the default command for the resulting image | |
CMD /usr/libexec/s2i/run | |
Building 'myapp' image using docker build | |
STEP 1: FROM f34/ruby:0 | |
STEP 2: USER 0 | |
--> a07d68f1afa | |
STEP 3: ADD app-src /tmp/src | |
--> b4515123cb2 | |
STEP 4: RUN chown -R 1001:0 /tmp/src | |
--> f47f1024ca5 | |
STEP 5: USER 1001 | |
--> 9fd0a354be3 | |
STEP 6: ENV RAILS_ENV=development | |
--> 7e3bc7c1dc5 | |
STEP 7: RUN /usr/libexec/s2i/assemble | |
---> Installing application source ... | |
---> Building your Ruby application from source ... | |
---> Running 'bundle install --retry 2 --deployment --without test' ... | |
Fetching gem metadata from https://rubygems.org/.. | |
ERROR: The image cannot be built from /home/jprokop/projects/s2i/s2i-ruby-container/examples/from-dockerfile/Dockerfile.s2i and application https://github.com/sclorg/rails-ex.git. | |
Terminating the Dockerfile build. | |
STEP 1: FROM f34/ruby:0 | |
STEP 2: LABEL "io.openshift.s2i.build.image"="f34/ruby:0" "io.openshift.s2i.build.source-location"="file:///home/jprokop/projects/s2i/s2i-ruby-container/3.0/test/db-test-app" | |
--> 5e48249643d | |
STEP 3: USER root | |
--> 98dd9f3c2ab | |
STEP 4: COPY upload/src/ /tmp/src | |
--> 732b45605d2 | |
STEP 5: COPY upload/scripts/ /tmp/scripts | |
--> 71ee0515a0e | |
STEP 6: RUN chown -R 1001:0 /tmp/scripts | |
--> 627511fa661 | |
STEP 7: RUN chown -R 1001:0 /tmp/src | |
--> 95554ebb8fe | |
STEP 8: ENV RACK_ENV=production | |
--> 543f60dc0de | |
STEP 9: USER 1001 | |
--> 795483e2ac3 | |
STEP 10: RUN /usr/libexec/s2i/assemble | |
---> Installing application source ... | |
---> Building your Ruby application from source ... | |
---> Running 'bundle install --retry 2 --deployment --without development:test' ... | |
Fetching source index from https://rubygems.org/ | |
[1m[INFO] Running test test_docker_run_usage ... ...[0m | |
[1m[INFO] Testing 'docker run' usage...[0m | |
[1m[INFO] Running test test_application ... ...[0m | |
[1m[INFO] Waiting for application container to start...[0m | |
[1m[INFO] Running test test_connection ... ...[0m | |
[1m[INFO] Testing the HTTP connection (http://:8080)...[0m | |
[1m[INFO] Running test test_scl_variables_in_dockerfile ... ...[0m | |
[1m[INFO] Running test test_scl_usage ... ...[0m | |
[1m[INFO] Testing the image SCL enable...[0m | |
ERROR[exec /bin/bash -c ruby --version] Expected 'ruby .', got 'Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. | |
Error: no container with name or ID /bin/bash found: no such container' | |
[1m[INFO] Running test test_npm_functionality ... ...[0m | |
[1m[INFO] Testing npm availibility...[0m | |
[1m[INFO] Cleaning up the test application image db...[0m | |
[1m[INFO] Cleaning up the test application image db...[0m | |
STEP 1: FROM f34/ruby:0 | |
STEP 2: LABEL "io.openshift.s2i.build.image"="f34/ruby:0" "io.openshift.s2i.build.source-location"="file:///home/jprokop/projects/s2i/s2i-ruby-container/3.0/test/puma-test-app" | |
--> 588c0e35953 | |
STEP 3: USER root | |
--> fb79eaf94eb | |
STEP 4: COPY upload/src/ /tmp/src | |
--> 809f7b96503 | |
STEP 5: RUN chown -R 1001:0 /tmp/src | |
--> 80b310b092e | |
STEP 6: USER 1001 | |
--> 500d6b9f071 | |
STEP 7: RUN /usr/libexec/s2i/assemble | |
---> Installing application source ... | |
---> Building your Ruby application from source ... | |
---> Running 'bundle install --retry 2 --deployment --without development:test' ... | |
Fetching source index from https://rubygems.org/ | |
Using bundler 2.2.3 | |
Fetching mustermann 1.0.1 | |
Fetching puma 3.11.2 | |
Fetching rack 2.0.4 | |
Fetching tilt 2.0.8 | |
Installing mustermann 1.0.1 | |
Installing tilt 2.0.8 | |
Installing puma 3.11.2 with native extensions | |
Installing rack 2.0.4 | |
Fetching rack-protection 2.0.0 | |
Installing rack-protection 2.0.0 | |
Fetching sinatra 2.0.0 | |
Installing sinatra 2.0.0 | |
Bundle complete! 2 Gemfile dependencies, 7 gems now installed. | |
Gems in the groups development and test were not installed. | |
Bundled gems are installed into `./bundle` | |
---> Cleaning up unused ruby gems ... | |
Running `bundle clean --verbose` with bundler 2.2.3 | |
Frozen, using resolution from the lockfile | |
--> 145d8524856 | |
STEP 8: CMD /usr/libexec/s2i/run | |
STEP 9: COMMIT f34/ruby:0-testapp | |
--> 3e839f9d663 | |
3e839f9d6633d1decff8fc2755ce3192f57752a1fe6081434fbb0fc80989db89 | |
[1m[INFO] Running test test_docker_run_usage ... ...[0m | |
[1m[INFO] Testing 'docker run' usage...[0m | |
[1m[INFO] Running test test_application ... ...[0m | |
[1m[INFO] Waiting for application container to start...[0m | |
[1m[INFO] Running test test_connection ... ...[0m | |
[1m[INFO] Testing the HTTP connection (http://10.88.0.25:8080)...[0m | |
[1] Puma starting in cluster mode... | |
[1] * Version 3.11.2 (ruby 3.0.0-p0), codename: Love Song | |
[1] * Min threads: 0, max threads: 16 | |
[1] * Environment: production | |
[1] * Process workers: 8 | |
[1] * Phased restart available | |
[1] * Listening on tcp://0.0.0.0:8080 | |
[1] Use Ctrl-C to stop | |
[1] - Gracefully shutting down workers... | |
[10270] Early termination of worker | |
[10276] Early termination of worker | |
[10262] Early termination of worker | |
[10268] Early termination of worker | |
[10274] Early termination of worker | |
[10259] Early termination of worker | |
[10272] Early termination of worker | |
[10263] Early termination of worker | |
[1] === puma shutdown: 2021-03-04 13:18:56 +0000 === | |
[1] - Goodbye! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment