Skip to content

Instantly share code, notes, and snippets.

@pvalena
Created February 28, 2022 12:32
Show Gist options
  • Save pvalena/b61bcc35accdcb1807c10d3fe9c323e9 to your computer and use it in GitHub Desktop.
Save pvalena/b61bcc35accdcb1807c10d3fe9c323e9 to your computer and use it in GitHub Desktop.
s2i build https://github.com/sclorg/rails-ex registry.access.redhat.com/ubi8/ruby-26 rails-ex:2.6
/tmp/src ~
---> Building your Ruby application from source ...
You are replacing the current global value of set, which is currently "--local deployment true"
---> Running 'bundle install --retry 2' ...
You are replacing the current global value of set, which is currently "--local without development:test"
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching rake 13.0.3
Errno::EACCES: Permission denied @ rb_file_s_rename -
(/opt/app-root/src/.gem/ruby/cache/rake-13.0.3.gem,
/usr/share/gems/cache/rake-13.0.3.gem)
An error occurred while installing rake (13.0.3), and Bundler cannot continue.
Make sure that `gem install rake -v '13.0.3' --source 'https://rubygems.org/'`
succeeds before bundling.
In Gemfile:
coffee-rails was resolved to 5.0.0, which depends on
railties was resolved to 6.1.3.1, which depends on
rake
---> Cleaning up unused ruby gems ...
Running `bundle clean --verbose` with bundler 1.17.2
Cleaning all the gems on your system is dangerous! If you're sure you want to
remove every system gem not in this bundle, run `bundle clean --force`.
---> No master key present in environment, generating ...
/usr/share/gems/gems/bundler-1.17.2/lib/bundler/spec_set.rb:91:in `block in materialize': Could not find rake-13.0.3 in any of the sources (Bundler::GemNotFound)
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/spec_set.rb:85:in `map!'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/spec_set.rb:85:in `materialize'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/definition.rb:170:in `specs'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/definition.rb:237:in `specs_for'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/definition.rb:226:in `requested_specs'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/runtime.rb:108:in `block in definition_method'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/runtime.rb:20:in `setup'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler.rb:107:in `setup'
from /usr/share/gems/gems/bundler-1.17.2/lib/bundler/setup.rb:20:in `<top (required)>'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
from /tmp/src/config/boot.rb:3:in `<top (required)>'
from bin/rails:4:in `require_relative'
from bin/rails:4:in `<main>'
~
---> Installing application source ...
---> Building your Ruby application from source ...
---> Running 'bundle install --retry 2 --deployment --without development:test' ...
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/..........
Fetching rake 13.0.3
Installing rake 13.0.3
Fetching concurrent-ruby 1.1.8
Installing concurrent-ruby 1.1.8
Fetching i18n 1.8.10
Installing i18n 1.8.10
Fetching minitest 5.14.4
Installing minitest 5.14.4
Fetching tzinfo 2.0.4
Installing tzinfo 2.0.4
Fetching zeitwerk 2.4.2
Installing zeitwerk 2.4.2
Fetching activesupport 6.1.3.1
Installing activesupport 6.1.3.1
Fetching builder 3.2.4
Installing builder 3.2.4
Fetching erubi 1.10.0
Installing erubi 1.10.0
Fetching mini_portile2 2.5.1
Installing mini_portile2 2.5.1
Fetching racc 1.5.2
Installing racc 1.5.2 with native extensions
Fetching nokogiri 1.11.3 (x86_64-linux)
Installing nokogiri 1.11.3 (x86_64-linux)
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching crass 1.0.6
Installing crass 1.0.6
Fetching loofah 2.9.1
Installing loofah 2.9.1
Fetching rails-html-sanitizer 1.3.0
Installing rails-html-sanitizer 1.3.0
Fetching actionview 6.1.3.1
Installing actionview 6.1.3.1
Fetching rack 2.2.3
Installing rack 2.2.3
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching actionpack 6.1.3.1
Installing actionpack 6.1.3.1
Fetching nio4r 2.5.7
Installing nio4r 2.5.7 with native extensions
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching websocket-driver 0.7.3
Installing websocket-driver 0.7.3 with native extensions
Fetching actioncable 6.1.3.1
Installing actioncable 6.1.3.1
Fetching globalid 0.4.2
Installing globalid 0.4.2
Fetching activejob 6.1.3.1
Installing activejob 6.1.3.1
Fetching activemodel 6.1.3.1
Installing activemodel 6.1.3.1
Fetching activerecord 6.1.3.1
Installing activerecord 6.1.3.1
Fetching marcel 1.0.1
Installing marcel 1.0.1
Fetching mini_mime 1.0.3
Installing mini_mime 1.0.3
Fetching activestorage 6.1.3.1
Installing activestorage 6.1.3.1
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching actionmailbox 6.1.3.1
Installing actionmailbox 6.1.3.1
Fetching actionmailer 6.1.3.1
Installing actionmailer 6.1.3.1
Fetching actiontext 6.1.3.1
Installing actiontext 6.1.3.1
Using bundler 1.17.2
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching thor 1.1.0
Installing thor 1.1.0
Fetching railties 6.1.3.1
Installing railties 6.1.3.1
Fetching coffee-rails 5.0.0
Installing coffee-rails 5.0.0
Fetching ffi 1.15.0
Installing ffi 1.15.0 with native extensions
Fetching jbuilder 2.11.2
Installing jbuilder 2.11.2
Fetching rb-fsevent 0.10.4
Installing rb-fsevent 0.10.4
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching listen 3.5.1
Installing listen 3.5.1
Fetching pg 1.2.3
Installing pg 1.2.3 with native extensions
Fetching puma 5.2.2
Installing puma 5.2.2 with native extensions
Fetching sprockets 4.0.2
Installing sprockets 4.0.2
Fetching sprockets-rails 3.2.2
Installing sprockets-rails 3.2.2
Fetching rails 6.1.3.1
Installing rails 6.1.3.1
Fetching redis 4.2.5
Installing redis 4.2.5
Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Installing sass-rails 6.0.0
Fetching sqlite3 1.4.2
Installing sqlite3 1.4.2 with native extensions
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching uglifier 4.2.0
Installing uglifier 4.2.0
Bundle complete! 18 Gemfile dependencies, 62 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 1.17.2
Frozen, using resolution from the lockfile
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
---> Starting asset compilation ...
rake aborted!
ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `bin/rails credentials:edit`
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:596:in `validate_secret_key_base'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:430:in `secret_key_base'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:177:in `key_generator'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:201:in `message_verifier'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activestorage-6.1.3.1/lib/active_storage/engine.rb:111:in `block (2 levels) in <class:Engine>'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:51:in `each'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:32:in `run'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:384:in `initialize!'
/opt/app-root/src/config/environment.rb:5:in `<top (required)>'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `require'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `block in require'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/app-root/src/bundle/ruby/2.6.0/gems/activesupport-6.1.3.1/lib/active_support/dependencies.rb:332:in `require'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:360:in `require_environment!'
/opt/app-root/src/bundle/ruby/2.6.0/gems/railties-6.1.3.1/lib/rails/application.rb:526:in `block in run_tasks_blocks'
/opt/app-root/src/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:61:in `block (2 levels) in define'
/opt/app-root/src/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
Build failed
ERROR: An error occurred: non-zero (13) exit code from registry.access.redhat.com/ubi8/ruby-26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment