Skip to content

Instantly share code, notes, and snippets.

@schneems
Created May 28, 2019 21:39
Show Gist options
  • Save schneems/fa0363453e971b82894624f7d27b0e27 to your computer and use it in GitHub Desktop.
Save schneems/fa0363453e971b82894624f7d27b0e27 to your computer and use it in GitHub Desktop.
$ docker run -it --rm ruby:2.6 bash
root@22e145f8dfa6:/# gem install rails
Fetching concurrent-ruby-1.1.5.gem
Fetching thread_safe-0.3.6.gem
Fetching activesupport-5.2.3.gem
Fetching crass-1.0.4.gem
Fetching i18n-1.6.0.gem
Fetching tzinfo-1.2.5.gem
Fetching rack-2.0.7.gem
Fetching rack-test-1.1.0.gem
Fetching mini_portile2-2.4.0.gem
Fetching nokogiri-1.10.3.gem
Fetching erubi-1.8.0.gem
Fetching rails-dom-testing-2.0.3.gem
Fetching loofah-2.2.3.gem
Fetching actionview-5.2.3.gem
Fetching actionpack-5.2.3.gem
Fetching builder-3.2.3.gem
Fetching activemodel-5.2.3.gem
Fetching rails-html-sanitizer-1.0.4.gem
Fetching arel-9.0.0.gem
Fetching activerecord-5.2.3.gem
Fetching globalid-0.4.2.gem
Fetching activejob-5.2.3.gem
Fetching mini_mime-1.0.1.gem
Fetching mail-2.7.1.gem
Fetching actionmailer-5.2.3.gem
Fetching nio4r-2.3.1.gem
Fetching websocket-extensions-0.1.3.gem
Fetching marcel-0.3.3.gem
Fetching actioncable-5.2.3.gem
Fetching mimemagic-0.3.3.gem
Fetching websocket-driver-0.7.0.gem
Fetching thor-0.20.3.gem
Fetching method_source-0.9.2.gem
Fetching railties-5.2.3.gem
Fetching rails-5.2.3.gem
Fetching activestorage-5.2.3.gem
Fetching sprockets-3.7.2.gem
Fetching sprockets-rails-3.2.1.gem
Successfully installed concurrent-ruby-1.1.5
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Successfully installed i18n-1.6.0
Successfully installed thread_safe-0.3.6
Successfully installed tzinfo-1.2.5
Successfully installed activesupport-5.2.3
Successfully installed rack-2.0.7
Successfully installed rack-test-1.1.0
Successfully installed crass-1.0.4
Successfully installed mini_portile2-2.4.0
Building native extensions. This could take a while...
Successfully installed nokogiri-1.10.3
Successfully installed loofah-2.2.3
Successfully installed rails-html-sanitizer-1.0.4
Successfully installed rails-dom-testing-2.0.3
Successfully installed builder-3.2.3
Successfully installed erubi-1.8.0
Successfully installed actionview-5.2.3
Successfully installed actionpack-5.2.3
Successfully installed activemodel-5.2.3
Successfully installed arel-9.0.0
Successfully installed activerecord-5.2.3
Successfully installed globalid-0.4.2
Successfully installed activejob-5.2.3
Successfully installed mini_mime-1.0.1
Successfully installed mail-2.7.1
Successfully installed actionmailer-5.2.3
Building native extensions. This could take a while...
Successfully installed nio4r-2.3.1
Successfully installed websocket-extensions-0.1.3
Building native extensions. This could take a while...
Successfully installed websocket-driver-0.7.0
Successfully installed actioncable-5.2.3
Successfully installed mimemagic-0.3.3
Successfully installed marcel-0.3.3
Successfully installed activestorage-5.2.3
Successfully installed thor-0.20.3
Successfully installed method_source-0.9.2
Successfully installed railties-5.2.3
Successfully installed sprockets-3.7.2
Successfully installed sprockets-rails-3.2.1
Successfully installed rails-5.2.3
38 gems installed
root@22e145f8dfa6:/# rails new foobar
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /foobar/.git/
create package.json
create app
create app/assets/config/manifest.js
create app/assets/javascripts/application.js
create app/assets/javascripts/cable.js
create app/assets/stylesheets/application.css
create app/channels/application_cable/channel.rb
create app/channels/application_cable/connection.rb
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/jobs/application_job.rb
create app/mailers/application_mailer.rb
create app/models/application_record.rb
create app/views/layouts/application.html.erb
create app/views/layouts/mailer.html.erb
create app/views/layouts/mailer.text.erb
create app/assets/images/.keep
create app/assets/javascripts/channels
create app/assets/javascripts/channels/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create bin/update
create bin/yarn
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/cable.yml
create config/puma.rb
create config/spring.rb
create config/storage.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/application_controller_renderer.rb
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/content_security_policy.rb
create config/initializers/cookies_serializer.rb
create config/initializers/cors.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_framework_defaults_5_2.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/master.key
append .gitignore
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/apple-touch-icon-precomposed.png
create public/apple-touch-icon.png
create public/favicon.ico
create public/robots.txt
create tmp
create tmp/.keep
create tmp/cache
create tmp/cache/assets
create vendor
create vendor/.keep
create test/fixtures
create test/fixtures/.keep
create test/fixtures/files
create test/fixtures/files/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create test/system
create test/system/.keep
create test/application_system_test_case.rb
create storage
create storage/.keep
create tmp/storage
create tmp/storage/.keep
remove config/initializers/cors.rb
remove config/initializers/new_framework_defaults_5_2.rb
run bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
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 gem metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 12.3.2
Using concurrent-ruby 1.1.5
Using i18n 1.6.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.3
Using builder 3.2.3
Using erubi 1.8.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.3
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.3
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.3
Using rack 2.0.7
Using rack-test 1.1.0
Using actionpack 5.2.3
Using nio4r 2.3.1
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.3
Using globalid 0.4.2
Using activejob 5.2.3
Using mini_mime 1.0.1
Using mail 2.7.1
Using actionmailer 5.2.3
Using activemodel 5.2.3
Using arel 9.0.0
Using activerecord 5.2.3
Using mimemagic 0.3.3
Using marcel 0.3.3
Using activestorage 5.2.3
Fetching public_suffix 3.1.0
Installing public_suffix 3.1.0
Fetching addressable 2.6.0
Installing addressable 2.6.0
Fetching io-like 0.3.0
Installing io-like 0.3.0
Fetching archive-zip 0.12.0
Installing archive-zip 0.12.0
Fetching bindex 0.7.0
Installing bindex 0.7.0 with native extensions
Fetching msgpack 1.2.10
Installing msgpack 1.2.10 with native extensions
Fetching bootsnap 1.4.4
Installing bootsnap 1.4.4 with native extensions
Using bundler 1.17.2
Fetching byebug 11.0.1
Installing byebug 11.0.1 with native extensions
Fetching regexp_parser 1.5.1
Installing regexp_parser 1.5.1
Fetching xpath 3.2.0
Installing xpath 3.2.0
Fetching capybara 3.21.0
Installing capybara 3.21.0
Fetching childprocess 1.0.1
Installing childprocess 1.0.1 with native extensions
Fetching chromedriver-helper 2.1.1
Installing chromedriver-helper 2.1.1
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
Using method_source 0.9.2
Using thor 0.20.3
Using railties 5.2.3
Fetching coffee-rails 4.2.2
Installing coffee-rails 4.2.2
Fetching ffi 1.11.1
Installing ffi 1.11.1 with native extensions
Fetching jbuilder 2.9.1
Installing jbuilder 2.9.1
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rb-inotify 0.10.0
Installing rb-inotify 0.10.0
Fetching ruby_dep 1.5.0
Installing ruby_dep 1.5.0
Fetching listen 3.1.5
Installing listen 3.1.5
Fetching puma 3.12.1
Installing puma 3.12.1 with native extensions
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.2.3
Fetching rubyzip 1.2.3
Installing rubyzip 1.2.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching tilt 2.0.9
Installing tilt 2.0.9
Fetching sass-rails 5.0.7
Installing sass-rails 5.0.7
Fetching selenium-webdriver 3.142.3
Installing selenium-webdriver 3.142.3
Fetching spring 2.0.2
Installing spring 2.0.2
Fetching spring-watcher-listen 2.0.1
Installing spring-watcher-listen 2.0.1
Fetching sqlite3 1.4.1
Installing sqlite3 1.4.1 with native extensions
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching turbolinks 5.2.0
Installing turbolinks 5.2.0
Fetching uglifier 4.1.20
Installing uglifier 4.1.20
Fetching web-console 3.7.0
Installing web-console 3.7.0
Bundle complete! 18 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from chromedriver-helper:
+--------------------------------------------------------------------+
| |
| NOTICE: chromedriver-helper is deprecated after 2019-03-31. |
| |
| Please update to use the 'webdrivers' gem instead. |
| See https://github.com/flavorjones/chromedriver-helper/issues/83 |
| |
+--------------------------------------------------------------------+
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
run bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted
root@22e145f8dfa6:/# cd foobar
root@22e145f8dfa6:/foobar# rails c
Traceback (most recent call last):
22: from /usr/local/bundle/gems/spring-2.0.2/bin/spring:49:in `<main>'
21: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
20: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
19: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/client/server.rb:9:in `call'
18: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
17: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
16: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/server.rb:9:in `<top (required)>'
15: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
14: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
13: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/commands.rb:4:in `<top (required)>'
12: from /usr/local/bundle/gems/spring-2.0.2/lib/spring/commands.rb:33:in `<module:Spring>'
11: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
10: from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
9: from /usr/local/lib/ruby/2.6.0/bundler/setup.rb:20:in `<top (required)>'
8: from /usr/local/lib/ruby/2.6.0/bundler.rb:107:in `setup'
7: from /usr/local/lib/ruby/2.6.0/bundler/runtime.rb:20:in `setup'
6: from /usr/local/lib/ruby/2.6.0/bundler/runtime.rb:108:in `block in definition_method'
5: from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:226:in `requested_specs'
4: from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:237:in `specs_for'
3: from /usr/local/lib/ruby/2.6.0/bundler/definition.rb:170:in `specs'
2: from /usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:85:in `materialize'
1: from /usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:85:in `map!'
/usr/local/lib/ruby/2.6.0/bundler/spec_set.rb:91:in `block in materialize': Could not find rake-12.3.2 in any of the sources (Bundler::GemNotFound)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment