roro 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -9
- data/{docker/env_files/.keep → .keep} +0 -0
- data/Guardfile +2 -2
- data/lib/roro/cli.rb +2 -3
- data/lib/roro/cli/base/base.rb +7 -0
- data/lib/roro/cli/base/base_files.rb +38 -0
- data/lib/roro/cli/base/configuration.rb +63 -0
- data/lib/roro/cli/base/continuous_integration.rb +13 -0
- data/lib/roro/cli/base/insert_gems.rb +23 -0
- data/lib/roro/cli/base/insertions.rb +17 -0
- data/lib/roro/cli/base/utilities.rb +17 -0
- data/lib/roro/cli/generate_keys.rb +1 -1
- data/lib/roro/cli/greenfield.rb +15 -11
- data/lib/roro/cli/rollon.rb +19 -12
- data/lib/roro/cli/rollon/as_dockerize.rb +28 -0
- data/lib/roro/cli/rollon/as_quickstart.rb +17 -0
- data/lib/roro/cli/rollon/as_roro.rb +30 -0
- data/lib/roro/cli/rollon/use_cases.rb +3 -0
- data/lib/roro/cli/ruby_gem.rb +6 -0
- data/lib/roro/cli/templates/base/.dockerignore +13 -0
- data/{docker/keys → lib/roro/cli/templates/base}/.keep +0 -0
- data/{test_apps/dummy_roro/.circleci/config.yml → lib/roro/cli/templates/base/circleci/config.yml.tt} +7 -6
- data/lib/roro/cli/templates/{config → base/config}/database.yml +0 -0
- data/lib/roro/cli/templates/base/docker-compose.yml.tt +53 -0
- data/lib/roro/cli/templates/base/livereload/hosts.example +7 -0
- data/lib/roro/cli/templates/{docker/containers/database → base/roro}/.keep +0 -0
- data/lib/roro/cli/templates/{docker/env_files → base/roro/containers}/.keep +0 -0
- data/lib/roro/cli/templates/{docker/keys → base/roro/containers/app}/.keep +0 -0
- data/lib/roro/cli/templates/base/roro/containers/app/Dockerfile.tt +32 -0
- data/lib/roro/cli/templates/base/roro/containers/app/development.env.tt +1 -0
- data/lib/roro/cli/templates/base/roro/containers/app/docker-entrypoint.sh +8 -0
- data/lib/roro/cli/templates/base/roro/containers/app/test.env.tt +1 -0
- data/lib/roro/cli/templates/base/roro/containers/database/development.env.tt +4 -0
- data/lib/roro/cli/templates/base/roro/containers/database/test.env.tt +4 -0
- data/{test_apps/dummy/app/assets/images → lib/roro/cli/templates/base/roro/containers/frontend}/.keep +0 -0
- data/{test_apps/dummy/app/assets/javascripts/channels → lib/roro/cli/templates/dockerize/.env}/.keep +0 -0
- data/{test_apps/dummy/app/controllers/concerns → lib/roro/cli/templates/dockerize/.env/development}/.keep +0 -0
- data/lib/roro/cli/templates/dockerize/.env/development/database +3 -0
- data/lib/roro/cli/templates/dockerize/.env/development/web +1 -0
- data/{test_apps/dummy/app/models/concerns → lib/roro/cli/templates/dockerize}/.keep +0 -0
- data/lib/roro/cli/templates/dockerize/Dockerfile.tt +23 -0
- data/lib/roro/cli/templates/dockerize/docker-compose.yml +60 -0
- data/lib/roro/cli/templates/dockerize/docker-entrypoint.sh +9 -0
- data/lib/roro/cli/templates/greenfield/Dockerfile.tt +21 -0
- data/lib/roro/cli/templates/greenfield/Gemfile +1 -1
- data/lib/roro/cli/templates/greenfield/docker-compose.yml +12 -10
- data/lib/roro/cli/templates/greenfield/docker-entrypoint.sh +8 -0
- data/{test_apps/dummy/lib/assets → lib/roro/cli/templates/jumpstart/.env}/.keep +0 -0
- data/{test_apps/dummy/lib/tasks → lib/roro/cli/templates/jumpstart/.env/development}/.keep +0 -0
- data/lib/roro/cli/templates/jumpstart/.env/development/database +3 -0
- data/lib/roro/cli/templates/jumpstart/.env/development/web +1 -0
- data/{test_apps/dummy/log → lib/roro/cli/templates/jumpstart}/.keep +0 -0
- data/lib/roro/cli/templates/jumpstart/Dockerfile.tt +30 -0
- data/lib/roro/cli/templates/jumpstart/docker-compose.yml +59 -0
- data/lib/roro/cli/templates/jumpstart/docker-entrypoint.sh +16 -0
- data/lib/roro/cli/templates/quickstart/Dockerfile.tt +20 -0
- data/{test_apps/dummy/config → lib/roro/cli/templates/quickstart}/database.yml +12 -12
- data/lib/roro/cli/templates/quickstart/docker-compose.yml +17 -0
- data/lib/roro/cli/templates/quickstart/entrypoint.sh +8 -0
- data/lib/roro/cli/templates/ruby_gem/.gitignore +8 -0
- data/lib/roro/version.rb +1 -1
- data/roro.gemspec +5 -3
- data/vendor/cache/actionpack-6.0.3.2.gem +0 -0
- data/vendor/cache/actionview-6.0.3.2.gem +0 -0
- data/vendor/cache/activesupport-6.0.3.2.gem +0 -0
- data/vendor/cache/addressable-2.7.0.gem +0 -0
- data/vendor/cache/builder-3.2.4.gem +0 -0
- data/vendor/cache/byebug-11.1.3.gem +0 -0
- data/vendor/cache/coderay-1.1.3.gem +0 -0
- data/vendor/cache/concurrent-ruby-1.1.6.gem +0 -0
- data/vendor/cache/crass-1.0.6.gem +0 -0
- data/vendor/cache/erubi-1.9.0.gem +0 -0
- data/vendor/cache/ffi-1.13.1.gem +0 -0
- data/vendor/cache/guard-2.16.2.gem +0 -0
- data/vendor/cache/i18n-1.8.5.gem +0 -0
- data/vendor/cache/launchy-2.5.0.gem +0 -0
- data/vendor/cache/listen-3.2.1.gem +0 -0
- data/vendor/cache/loofah-2.6.0.gem +0 -0
- data/vendor/cache/lumberjack-1.2.7.gem +0 -0
- data/vendor/cache/method_source-1.0.0.gem +0 -0
- data/vendor/cache/minitest-5.14.1.gem +0 -0
- data/vendor/cache/minitest-rails-6.0.1.gem +0 -0
- data/vendor/cache/multi_json-1.15.0.gem +0 -0
- data/vendor/cache/net-scp-3.0.0.gem +0 -0
- data/vendor/cache/net-ssh-6.1.0.gem +0 -0
- data/vendor/cache/{nokogiri-1.9.1.gem → nokogiri-1.10.10.gem} +0 -0
- data/vendor/cache/notiffany-0.1.3.gem +0 -0
- data/vendor/cache/pry-0.13.1.gem +0 -0
- data/vendor/cache/public_suffix-4.0.5.gem +0 -0
- data/vendor/cache/rack-2.2.3.gem +0 -0
- data/vendor/cache/rails-html-sanitizer-1.3.0.gem +0 -0
- data/vendor/cache/railties-6.0.3.2.gem +0 -0
- data/vendor/cache/rake-13.0.1.gem +0 -0
- data/vendor/cache/rb-fsevent-0.10.4.gem +0 -0
- data/vendor/cache/rb-inotify-0.10.1.gem +0 -0
- data/vendor/cache/shoulda-4.0.0.gem +0 -0
- data/vendor/cache/shoulda-context-2.0.0.gem +0 -0
- data/vendor/cache/shoulda-matchers-4.3.0.gem +0 -0
- data/vendor/cache/sorcerer-2.0.1.gem +0 -0
- data/vendor/cache/thor-1.0.1.gem +0 -0
- data/vendor/cache/tzinfo-1.2.7.gem +0 -0
- data/vendor/cache/zeitwerk-2.4.0.gem +0 -0
- metadata +116 -272
- data/.circleci/config.yml +0 -177
- data/.circleci/setup-gem-credentials.sh +0 -3
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -165
- data/_config.yml +0 -1
- data/docker-compose.yml +0 -21
- data/docker/containers/2_5_3/Dockerfile +0 -10
- data/docker/containers/2_6_0/Dockerfile +0 -10
- data/docker/containers/app/Dockerfile +0 -10
- data/docker/env_files/circleci.env.enc +0 -5
- data/lib/roro/cli/base.rb +0 -137
- data/lib/roro/cli/templates/Gemfile.lock +0 -0
- data/lib/roro/cli/templates/Guardfile +0 -81
- data/lib/roro/cli/templates/circleci/Rakefile +0 -4
- data/lib/roro/cli/templates/circleci/config.job-example.yml +0 -33
- data/lib/roro/cli/templates/circleci/config.yml +0 -69
- data/lib/roro/cli/templates/circleci/config.yml.workflow-example +0 -62
- data/lib/roro/cli/templates/circleci/deploy.rake +0 -127
- data/lib/roro/cli/templates/config.yml +0 -71
- data/lib/roro/cli/templates/docker-compose.yml +0 -53
- data/lib/roro/cli/templates/docker/containers/app/Dockerfile.tt +0 -12
- data/lib/roro/cli/templates/docker/containers/web/Dockerfile.tt +0 -18
- data/lib/roro/cli/templates/docker/containers/web/app.conf.tt +0 -23
- data/lib/roro/cli/templates/docker/overrides/circleci.yml.tt +0 -19
- data/lib/roro/cli/templates/docker/overrides/production.yml.tt +0 -26
- data/lib/roro/cli/templates/docker/web/Dockerfile +0 -20
- data/lib/roro/cli/templates/docker/web/app.conf +0 -23
- data/lib/roro/cli/templates/gitignore +0 -27
- data/lib/roro/cli/templates/greenfield/Dockerfile +0 -8
- data/lib/roro/cli/templates/lib/tasks/deploy.rake +0 -126
- data/test_apps/dummy/.gitignore +0 -27
- data/test_apps/dummy/Gemfile +0 -61
- data/test_apps/dummy/README.md +0 -24
- data/test_apps/dummy/Rakefile +0 -6
- data/test_apps/dummy/app/assets/config/manifest.js +0 -3
- data/test_apps/dummy/app/assets/javascripts/application.js +0 -16
- data/test_apps/dummy/app/assets/javascripts/cable.js +0 -13
- data/test_apps/dummy/app/assets/stylesheets/application.css +0 -15
- data/test_apps/dummy/app/channels/application_cable/channel.rb +0 -4
- data/test_apps/dummy/app/channels/application_cable/connection.rb +0 -4
- data/test_apps/dummy/app/controllers/application_controller.rb +0 -2
- data/test_apps/dummy/app/helpers/application_helper.rb +0 -2
- data/test_apps/dummy/app/jobs/application_job.rb +0 -2
- data/test_apps/dummy/app/mailers/application_mailer.rb +0 -4
- data/test_apps/dummy/app/models/application_record.rb +0 -3
- data/test_apps/dummy/app/views/layouts/application.html.erb +0 -15
- data/test_apps/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/test_apps/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/test_apps/dummy/bin/bundle +0 -3
- data/test_apps/dummy/bin/rails +0 -4
- data/test_apps/dummy/bin/rake +0 -4
- data/test_apps/dummy/bin/setup +0 -36
- data/test_apps/dummy/bin/update +0 -31
- data/test_apps/dummy/bin/yarn +0 -11
- data/test_apps/dummy/config.ru +0 -5
- data/test_apps/dummy/config/application.rb +0 -19
- data/test_apps/dummy/config/boot.rb +0 -4
- data/test_apps/dummy/config/cable.yml +0 -10
- data/test_apps/dummy/config/credentials.yml.enc +0 -1
- data/test_apps/dummy/config/environment.rb +0 -5
- data/test_apps/dummy/config/environments/development.rb +0 -61
- data/test_apps/dummy/config/environments/production.rb +0 -94
- data/test_apps/dummy/config/environments/test.rb +0 -46
- data/test_apps/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/test_apps/dummy/config/initializers/assets.rb +0 -14
- data/test_apps/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test_apps/dummy/config/initializers/content_security_policy.rb +0 -25
- data/test_apps/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/test_apps/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test_apps/dummy/config/initializers/inflections.rb +0 -16
- data/test_apps/dummy/config/initializers/mime_types.rb +0 -4
- data/test_apps/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test_apps/dummy/config/locales/en.yml +0 -33
- data/test_apps/dummy/config/puma.rb +0 -34
- data/test_apps/dummy/config/routes.rb +0 -3
- data/test_apps/dummy/config/spring.rb +0 -6
- data/test_apps/dummy/config/storage.yml +0 -34
- data/test_apps/dummy/db/seeds.rb +0 -7
- data/test_apps/dummy/package.json +0 -5
- data/test_apps/dummy/public/404.html +0 -67
- data/test_apps/dummy/public/422.html +0 -67
- data/test_apps/dummy/public/500.html +0 -66
- data/test_apps/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test_apps/dummy/public/apple-touch-icon.png +0 -0
- data/test_apps/dummy/public/favicon.ico +0 -0
- data/test_apps/dummy/public/robots.txt +0 -1
- data/test_apps/dummy/storage/.keep +0 -0
- data/test_apps/dummy/test/application_system_test_case.rb +0 -5
- data/test_apps/dummy/test/controllers/.keep +0 -0
- data/test_apps/dummy/test/fixtures/.keep +0 -0
- data/test_apps/dummy/test/fixtures/files/.keep +0 -0
- data/test_apps/dummy/test/helpers/.keep +0 -0
- data/test_apps/dummy/test/integration/.keep +0 -0
- data/test_apps/dummy/test/mailers/.keep +0 -0
- data/test_apps/dummy/test/models/.keep +0 -0
- data/test_apps/dummy/test/system/.keep +0 -0
- data/test_apps/dummy/test/test_helper.rb +0 -10
- data/test_apps/dummy/tmp/.keep +0 -0
- data/test_apps/dummy/vendor/.keep +0 -0
- data/test_apps/dummy_gem/.keep +0 -0
- data/test_apps/dummy_roro/.circleci/Rakefile +0 -4
- data/test_apps/dummy_roro/.circleci/config.job-example.yml +0 -33
- data/test_apps/dummy_roro/.circleci/config.yml.workflow-example +0 -62
- data/test_apps/dummy_roro/.circleci/deploy.rake +0 -127
- data/test_apps/dummy_roro/.gitignore +0 -27
- data/test_apps/dummy_roro/Gemfile +0 -64
- data/test_apps/dummy_roro/README.md +0 -24
- data/test_apps/dummy_roro/Rakefile +0 -6
- data/test_apps/dummy_roro/app/assets/config/manifest.js +0 -3
- data/test_apps/dummy_roro/app/assets/images/.keep +0 -0
- data/test_apps/dummy_roro/app/assets/javascripts/application.js +0 -16
- data/test_apps/dummy_roro/app/assets/javascripts/cable.js +0 -13
- data/test_apps/dummy_roro/app/assets/javascripts/channels/.keep +0 -0
- data/test_apps/dummy_roro/app/assets/stylesheets/application.css +0 -15
- data/test_apps/dummy_roro/app/channels/application_cable/channel.rb +0 -4
- data/test_apps/dummy_roro/app/channels/application_cable/connection.rb +0 -4
- data/test_apps/dummy_roro/app/controllers/application_controller.rb +0 -2
- data/test_apps/dummy_roro/app/controllers/concerns/.keep +0 -0
- data/test_apps/dummy_roro/app/helpers/application_helper.rb +0 -2
- data/test_apps/dummy_roro/app/jobs/application_job.rb +0 -2
- data/test_apps/dummy_roro/app/mailers/application_mailer.rb +0 -4
- data/test_apps/dummy_roro/app/models/application_record.rb +0 -3
- data/test_apps/dummy_roro/app/models/concerns/.keep +0 -0
- data/test_apps/dummy_roro/app/views/layouts/application.html.erb +0 -15
- data/test_apps/dummy_roro/app/views/layouts/mailer.html.erb +0 -13
- data/test_apps/dummy_roro/app/views/layouts/mailer.text.erb +0 -1
- data/test_apps/dummy_roro/bin/bundle +0 -3
- data/test_apps/dummy_roro/bin/rails +0 -4
- data/test_apps/dummy_roro/bin/rake +0 -4
- data/test_apps/dummy_roro/bin/setup +0 -36
- data/test_apps/dummy_roro/bin/update +0 -31
- data/test_apps/dummy_roro/bin/yarn +0 -11
- data/test_apps/dummy_roro/config.ru +0 -5
- data/test_apps/dummy_roro/config/application.rb +0 -19
- data/test_apps/dummy_roro/config/boot.rb +0 -4
- data/test_apps/dummy_roro/config/cable.yml +0 -10
- data/test_apps/dummy_roro/config/credentials.yml.enc +0 -1
- data/test_apps/dummy_roro/config/database.yml +0 -20
- data/test_apps/dummy_roro/config/environment.rb +0 -5
- data/test_apps/dummy_roro/config/environments/development.rb +0 -61
- data/test_apps/dummy_roro/config/environments/production.rb +0 -94
- data/test_apps/dummy_roro/config/environments/test.rb +0 -46
- data/test_apps/dummy_roro/config/initializers/application_controller_renderer.rb +0 -8
- data/test_apps/dummy_roro/config/initializers/assets.rb +0 -14
- data/test_apps/dummy_roro/config/initializers/backtrace_silencers.rb +0 -7
- data/test_apps/dummy_roro/config/initializers/content_security_policy.rb +0 -25
- data/test_apps/dummy_roro/config/initializers/cookies_serializer.rb +0 -5
- data/test_apps/dummy_roro/config/initializers/filter_parameter_logging.rb +0 -4
- data/test_apps/dummy_roro/config/initializers/inflections.rb +0 -16
- data/test_apps/dummy_roro/config/initializers/mime_types.rb +0 -4
- data/test_apps/dummy_roro/config/initializers/wrap_parameters.rb +0 -14
- data/test_apps/dummy_roro/config/locales/en.yml +0 -33
- data/test_apps/dummy_roro/config/puma.rb +0 -34
- data/test_apps/dummy_roro/config/routes.rb +0 -3
- data/test_apps/dummy_roro/config/spring.rb +0 -6
- data/test_apps/dummy_roro/config/storage.yml +0 -34
- data/test_apps/dummy_roro/db/seeds.rb +0 -7
- data/test_apps/dummy_roro/docker-compose.yml +0 -51
- data/test_apps/dummy_roro/docker/containers/app/Dockerfile +0 -12
- data/test_apps/dummy_roro/docker/containers/app/circleci.env +0 -2
- data/test_apps/dummy_roro/docker/containers/app/development.env +0 -2
- data/test_apps/dummy_roro/docker/containers/app/production.env +0 -2
- data/test_apps/dummy_roro/docker/containers/app/staging.env +0 -2
- data/test_apps/dummy_roro/docker/containers/database/.keep +0 -0
- data/test_apps/dummy_roro/docker/containers/database/circleci.env +0 -3
- data/test_apps/dummy_roro/docker/containers/database/development.env +0 -3
- data/test_apps/dummy_roro/docker/containers/database/production.env +0 -3
- data/test_apps/dummy_roro/docker/containers/database/staging.env +0 -3
- data/test_apps/dummy_roro/docker/containers/web/Dockerfile +0 -18
- data/test_apps/dummy_roro/docker/containers/web/app.conf +0 -23
- data/test_apps/dummy_roro/docker/containers/web/circleci.env +0 -1
- data/test_apps/dummy_roro/docker/containers/web/development.env +0 -1
- data/test_apps/dummy_roro/docker/containers/web/production.env +0 -1
- data/test_apps/dummy_roro/docker/containers/web/staging.env +0 -1
- data/test_apps/dummy_roro/docker/env_files/circleci.env +0 -12
- data/test_apps/dummy_roro/docker/env_files/circleci.env.enc +0 -14
- data/test_apps/dummy_roro/docker/env_files/production.env +0 -2
- data/test_apps/dummy_roro/docker/env_files/production.env.enc +0 -2
- data/test_apps/dummy_roro/docker/keys/.keep +0 -0
- data/test_apps/dummy_roro/docker/overrides/circleci.yml +0 -19
- data/test_apps/dummy_roro/docker/overrides/production.yml +0 -26
- data/test_apps/dummy_roro/lib/assets/.keep +0 -0
- data/test_apps/dummy_roro/lib/tasks/.keep +0 -0
- data/test_apps/dummy_roro/lib/tasks/deploy.rake +0 -126
- data/test_apps/dummy_roro/log/.keep +0 -0
- data/test_apps/dummy_roro/package.json +0 -5
- data/test_apps/dummy_roro/public/404.html +0 -67
- data/test_apps/dummy_roro/public/422.html +0 -67
- data/test_apps/dummy_roro/public/500.html +0 -66
- data/test_apps/dummy_roro/public/apple-touch-icon-precomposed.png +0 -0
- data/test_apps/dummy_roro/public/apple-touch-icon.png +0 -0
- data/test_apps/dummy_roro/public/favicon.ico +0 -0
- data/test_apps/dummy_roro/public/robots.txt +0 -1
- data/test_apps/dummy_roro/storage/.keep +0 -0
- data/test_apps/dummy_roro/test/application_system_test_case.rb +0 -5
- data/test_apps/dummy_roro/test/controllers/.keep +0 -0
- data/test_apps/dummy_roro/test/fixtures/.keep +0 -0
- data/test_apps/dummy_roro/test/fixtures/files/.keep +0 -0
- data/test_apps/dummy_roro/test/helpers/.keep +0 -0
- data/test_apps/dummy_roro/test/integration/.keep +0 -0
- data/test_apps/dummy_roro/test/mailers/.keep +0 -0
- data/test_apps/dummy_roro/test/models/.keep +0 -0
- data/test_apps/dummy_roro/test/system/.keep +0 -0
- data/test_apps/dummy_roro/test/test_helper.rb +0 -10
- data/test_apps/dummy_roro/tmp/.keep +0 -0
- data/test_apps/dummy_roro/vendor/.keep +0 -0
- data/test_apps/greenfield/.keep +0 -0
- data/vendor/cache/actionpack-5.2.2.gem +0 -0
- data/vendor/cache/actionview-5.2.2.gem +0 -0
- data/vendor/cache/activesupport-5.2.2.gem +0 -0
- data/vendor/cache/addressable-2.5.2.gem +0 -0
- data/vendor/cache/builder-3.2.3.gem +0 -0
- data/vendor/cache/coderay-1.1.2.gem +0 -0
- data/vendor/cache/concurrent-ruby-1.1.4.gem +0 -0
- data/vendor/cache/crass-1.0.4.gem +0 -0
- data/vendor/cache/erubi-1.8.0.gem +0 -0
- data/vendor/cache/ffi-1.9.25.gem +0 -0
- data/vendor/cache/guard-2.15.0.gem +0 -0
- data/vendor/cache/i18n-1.3.0.gem +0 -0
- data/vendor/cache/launchy-2.4.3.gem +0 -0
- data/vendor/cache/listen-3.1.5.gem +0 -0
- data/vendor/cache/loofah-2.2.3.gem +0 -0
- data/vendor/cache/lumberjack-1.0.13.gem +0 -0
- data/vendor/cache/method_source-0.9.2.gem +0 -0
- data/vendor/cache/minitest-5.11.3.gem +0 -0
- data/vendor/cache/minitest-rails-3.0.0.gem +0 -0
- data/vendor/cache/multi_json-1.13.1.gem +0 -0
- data/vendor/cache/net-scp-2.0.0.gem +0 -0
- data/vendor/cache/net-ssh-5.2.0.gem +0 -0
- data/vendor/cache/notiffany-0.1.1.gem +0 -0
- data/vendor/cache/pry-0.12.2.gem +0 -0
- data/vendor/cache/public_suffix-3.0.3.gem +0 -0
- data/vendor/cache/rack-2.0.6.gem +0 -0
- data/vendor/cache/rails-html-sanitizer-1.0.4.gem +0 -0
- data/vendor/cache/railties-5.2.2.gem +0 -0
- data/vendor/cache/rake-10.5.0.gem +0 -0
- data/vendor/cache/rb-fsevent-0.10.3.gem +0 -0
- data/vendor/cache/rb-inotify-0.10.0.gem +0 -0
- data/vendor/cache/ruby_dep-1.5.0.gem +0 -0
- data/vendor/cache/shoulda-3.6.0.gem +0 -0
- data/vendor/cache/shoulda-context-1.2.2.gem +0 -0
- data/vendor/cache/shoulda-matchers-3.1.2.gem +0 -0
- data/vendor/cache/sorcerer-1.0.2.gem +0 -0
- data/vendor/cache/thor-0.20.3.gem +0 -0
- data/vendor/cache/tzinfo-1.2.5.gem +0 -0
@@ -1,53 +0,0 @@
|
|
1
|
-
version: '3.1'
|
2
|
-
|
3
|
-
services:
|
4
|
-
chrome:
|
5
|
-
image: selenium/standalone-chrome-debug
|
6
|
-
volumes:
|
7
|
-
- /dev/shm:/dev/shm
|
8
|
-
app:
|
9
|
-
build:
|
10
|
-
context: .
|
11
|
-
dockerfile: docker/containers/app/Dockerfile
|
12
|
-
|
13
|
-
depends_on:
|
14
|
-
- database
|
15
|
-
ports:
|
16
|
-
- "35729:35729"
|
17
|
-
- "3000:3000"
|
18
|
-
volumes:
|
19
|
-
- app-data:/usr/src/app
|
20
|
-
- gem_cache:/gems
|
21
|
-
env_file:
|
22
|
-
- docker/containers/database/development.env
|
23
|
-
- docker/containers/app/development.env
|
24
|
-
command: [ "bin/rails", "s" ]
|
25
|
-
|
26
|
-
stdin_open: true
|
27
|
-
tty: true
|
28
|
-
secrets:
|
29
|
-
- host_ssh_key
|
30
|
-
|
31
|
-
database:
|
32
|
-
image: postgres
|
33
|
-
|
34
|
-
env_file:
|
35
|
-
- docker/containers/database/development.env
|
36
|
-
|
37
|
-
volumes:
|
38
|
-
- database-data:/var/lib/postgresql/data
|
39
|
-
|
40
|
-
web:
|
41
|
-
depends_on:
|
42
|
-
- app
|
43
|
-
build:
|
44
|
-
context: .
|
45
|
-
dockerfile: docker/containers/web/Dockerfile
|
46
|
-
volumes:
|
47
|
-
database-data:
|
48
|
-
gem_cache:
|
49
|
-
app-data:
|
50
|
-
|
51
|
-
secrets:
|
52
|
-
host_ssh_key:
|
53
|
-
file: ~/.ssh/id_rsa
|
@@ -1,12 +0,0 @@
|
|
1
|
-
FROM ruby:2.5-alpine
|
2
|
-
|
3
|
-
LABEL maintainer=<%= config[:email] %>
|
4
|
-
|
5
|
-
|
6
|
-
RUN apk add --no-cache --update build-base linux-headers \
|
7
|
-
postgresql-dev nodejs tzdata libxml2-dev libxslt-dev imagemagick
|
8
|
-
|
9
|
-
COPY Gemfile* /usr/src/app/
|
10
|
-
WORKDIR /usr/src/app
|
11
|
-
RUN bundle install
|
12
|
-
COPY . /usr/src/app/
|
@@ -1,18 +0,0 @@
|
|
1
|
-
FROM nginx
|
2
|
-
|
3
|
-
RUN apt-get update -qq && apt-get -y install apache2-utils
|
4
|
-
|
5
|
-
ENV RAILS_ROOT /usr/src/app
|
6
|
-
|
7
|
-
WORKDIR $RAILS_ROOT
|
8
|
-
|
9
|
-
RUN mkdir log
|
10
|
-
|
11
|
-
# Copy Nginx config template
|
12
|
-
COPY docker/containers/web/app.conf /tmp/<%= config[:app_name] %>.nginx
|
13
|
-
|
14
|
-
# substitute variable references in the Nginx config template for real values from the environment
|
15
|
-
|
16
|
-
# put the final config in its place
|
17
|
-
|
18
|
-
RUN envsubst '$RAILS_ROOT' < /tmp/<%= config[:app_name] %>.nginx > /etc/nginx/conf.d/default.conf
|
@@ -1,23 +0,0 @@
|
|
1
|
-
upstream puma_rails_app {
|
2
|
-
server app:3000;
|
3
|
-
}
|
4
|
-
server {
|
5
|
-
listen 80;
|
6
|
-
proxy_buffers 64 16k;
|
7
|
-
proxy_max_temp_file_size 1024m;
|
8
|
-
proxy_connect_timeout 5s;
|
9
|
-
proxy_send_timeout 10s;
|
10
|
-
proxy_read_timeout 10s;
|
11
|
-
location / {
|
12
|
-
try_files $uri $uri/ @rails_app;
|
13
|
-
}
|
14
|
-
location @rails_app {
|
15
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
16
|
-
proxy_set_header Host $http_host;
|
17
|
-
proxy_redirect off;
|
18
|
-
proxy_pass http://puma_rails_app;
|
19
|
-
# limit_req zone=one;
|
20
|
-
access_log /usr/src/app/log/nginx.access.log;
|
21
|
-
error_log /usr/src/app/log/nginx.error.log;
|
22
|
-
}
|
23
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
version: '3.1'
|
2
|
-
|
3
|
-
services:
|
4
|
-
|
5
|
-
database:
|
6
|
-
env_file:
|
7
|
-
- docker/containers/database/production.env
|
8
|
-
|
9
|
-
app:
|
10
|
-
env_file:
|
11
|
-
- docker/containers/app/production.env
|
12
|
-
- docker/containers/database/production.env
|
13
|
-
|
14
|
-
web:
|
15
|
-
build:
|
16
|
-
context: .
|
17
|
-
dockerfile: docker/containers/web/Dockerfile
|
18
|
-
env_file:
|
19
|
-
- docker/containers/web/development.env
|
@@ -1,26 +0,0 @@
|
|
1
|
-
version: '3.1'
|
2
|
-
|
3
|
-
services:
|
4
|
-
|
5
|
-
database:
|
6
|
-
env_file:
|
7
|
-
- docker/containers/database/production.env
|
8
|
-
|
9
|
-
app:
|
10
|
-
image: "${DOCKERHUB_ORG}/${APP_NAME}_app:${DEPLOY_TAG}"
|
11
|
-
env_file:
|
12
|
-
- docker/containers/app/production.env
|
13
|
-
- docker/containers/database/production.env
|
14
|
-
expose:
|
15
|
-
- '3000'
|
16
|
-
|
17
|
-
web:
|
18
|
-
image: <%= config[:dockerhub_org] %>/<%= config[:app_name] %>_web:${DEPLOY_TAG}
|
19
|
-
depends_on:
|
20
|
-
- app
|
21
|
-
ports:
|
22
|
-
- "80:80"
|
23
|
-
|
24
|
-
chrome:
|
25
|
-
command: echo "Chrome service not started in production"
|
26
|
-
restart: "no"
|
@@ -1,20 +0,0 @@
|
|
1
|
-
FROM nginx
|
2
|
-
|
3
|
-
RUN apt-get update -qq && apt-get -y install apache2-utils
|
4
|
-
|
5
|
-
ENV RAILS_ROOT /usr/src/app
|
6
|
-
|
7
|
-
WORKDIR $RAILS_ROOT
|
8
|
-
|
9
|
-
RUN mkdir log
|
10
|
-
|
11
|
-
COPY public public/
|
12
|
-
|
13
|
-
# Copy Nginx config template
|
14
|
-
COPY docker/web/app.conf /tmp/docker_example.nginx
|
15
|
-
|
16
|
-
# substitute variable references in the Nginx config template for real values from the environment
|
17
|
-
|
18
|
-
# put the final config in its place
|
19
|
-
|
20
|
-
RUN envsubst '$RAILS_ROOT' < /tmp/docker_example.nginx > /etc/nginx/conf.d/default.conf
|
@@ -1,23 +0,0 @@
|
|
1
|
-
upstream puma_rails_app {
|
2
|
-
server app:3000;
|
3
|
-
}
|
4
|
-
server {
|
5
|
-
listen 80;
|
6
|
-
proxy_buffers 64 16k;
|
7
|
-
proxy_max_temp_file_size 1024m;
|
8
|
-
proxy_connect_timeout 5s;
|
9
|
-
proxy_send_timeout 10s;
|
10
|
-
proxy_read_timeout 10s;
|
11
|
-
location / {
|
12
|
-
try_files $uri $uri/ @rails_app;
|
13
|
-
}
|
14
|
-
location @rails_app {
|
15
|
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
16
|
-
proxy_set_header Host $http_host;
|
17
|
-
proxy_redirect off;
|
18
|
-
proxy_pass http://puma_rails_app;
|
19
|
-
# limit_req zone=one;
|
20
|
-
access_log /usr/src/app/log/nginx.access.log;
|
21
|
-
error_log /usr/src/app/log/nginx.error.log;
|
22
|
-
}
|
23
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore all logfiles and tempfiles.
|
11
|
-
/log/*
|
12
|
-
/tmp/*
|
13
|
-
!/log/.keep
|
14
|
-
!/tmp/.keep
|
15
|
-
|
16
|
-
# Ignore uploaded files in development
|
17
|
-
/storage/*
|
18
|
-
!/storage/.keep
|
19
|
-
|
20
|
-
/node_modules
|
21
|
-
/yarn-error.log
|
22
|
-
|
23
|
-
/public/assets
|
24
|
-
.byebug_history
|
25
|
-
|
26
|
-
# Ignore master key for decrypting credentials and more.
|
27
|
-
/config/master.key
|
@@ -1,126 +0,0 @@
|
|
1
|
-
# use SSHKit directly instead of Capistrano
|
2
|
-
require 'sshkit'
|
3
|
-
require 'sshkit/dsl'
|
4
|
-
include SSHKit::DSL
|
5
|
-
|
6
|
-
deploy_tag = ENV['DEPLOY_TAG']
|
7
|
-
hostname = ENV['SERVER_HOST']
|
8
|
-
user = ENV['SERVER_USER']
|
9
|
-
dockerhub_user = ENV['DOCKERHUB_USER']
|
10
|
-
dockerhub_pass = ENV['DOCKERHUB_PASS']
|
11
|
-
dockerhub_org = ENV['DOCKERHUB_ORG']
|
12
|
-
port = ENV['SERVER_PORT']
|
13
|
-
deploy_env = ENV['DEPLOY_ENV'] || :production
|
14
|
-
deploy_path = ENV['APP_NAME']
|
15
|
-
|
16
|
-
server = SSHKit::Host.new(hostname: hostname, port: port, user: user)
|
17
|
-
|
18
|
-
namespace :deploy do
|
19
|
-
|
20
|
-
desc 'copy to server files needed to run and manage Docker containers'
|
21
|
-
task :configs do
|
22
|
-
|
23
|
-
on server do
|
24
|
-
within deploy_path do
|
25
|
-
upload! File.expand_path('../../docker/overrides/production.docker-compose.yml', __dir__), 'docker-compose.yml'
|
26
|
-
upload! File.expand_path('../../docker', __dir__), '.', recursive: true
|
27
|
-
execute 'apt', 'install', 'ruby'
|
28
|
-
execute 'gem', 'install', 'handsome_fencer-circle_c_i'
|
29
|
-
execute 'handsome_fencer-circle_c_i', 'expose', 'production'
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
desc 'copy production key to server'
|
35
|
-
task :production_key do
|
36
|
-
|
37
|
-
on server do
|
38
|
-
within deploy_path do
|
39
|
-
|
40
|
-
upload! '.circleci/keys/production.key', '.circleci/keys/production.key'
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
desc 'expose production environment'
|
46
|
-
task :expose_production_environment do
|
47
|
-
|
48
|
-
on server do
|
49
|
-
within deploy_path do
|
50
|
-
|
51
|
-
execute 'apt', 'install', 'ruby'
|
52
|
-
execute 'gem', 'install', 'handsome_fencer-circle_c_i'
|
53
|
-
execute 'handsome_fencer-circle_c_i', 'expose', 'production'
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
|
60
|
-
namespace :docker do
|
61
|
-
|
62
|
-
desc 'logs into Docker Hub for pushing and pulling'
|
63
|
-
|
64
|
-
task :login do
|
65
|
-
on server do
|
66
|
-
execute "mkdir -p #{deploy_path}"
|
67
|
-
within deploy_path do
|
68
|
-
execute 'docker', 'login', '-u', dockerhub_user, '-p', dockerhub_pass
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
desc 'stops all Docker containers via Docker Compose'
|
74
|
-
|
75
|
-
task stop: 'deploy:configs' do
|
76
|
-
on server do
|
77
|
-
within deploy_path do
|
78
|
-
with rails_env: deploy_env, deploy_tag: deploy_tag do
|
79
|
-
execute 'docker-compose', 'stop'
|
80
|
-
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
desc 'starts all Docker containers via Docker Compose'
|
87
|
-
|
88
|
-
task start: 'deploy:configs' do
|
89
|
-
on server do
|
90
|
-
within deploy_path do
|
91
|
-
with rails_env: deploy_env, deploy_tag: deploy_tag do
|
92
|
-
execute 'docker-compose', 'up', '-d'
|
93
|
-
execute 'echo', deploy_tag , '>', 'deploy.tag'
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
desc 'pulls images from Docker Hub'
|
100
|
-
|
101
|
-
task pull: 'docker:login' do
|
102
|
-
on server do
|
103
|
-
within deploy_path do
|
104
|
-
["#{deploy_path}_app", "#{deploy_path}_web"].each do |image_name|
|
105
|
-
execute 'docker', 'pull', "#{dockerhub_org}/#{image_name}:#{deploy_tag}"
|
106
|
-
end
|
107
|
-
execute 'docker', 'pull', 'postgres:9.4.5'
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
|
113
|
-
desc 'runs database migrations in application container via Docker Compose'
|
114
|
-
task migrate: 'deploy:configs' do
|
115
|
-
on server do
|
116
|
-
within deploy_path do
|
117
|
-
with rails_env: deploy_env, deploy_tag: deploy_tag do
|
118
|
-
execute 'docker-compose', 'run', 'app', "bin/rails", 'db:create', 'db:migrate'
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
desc 'pulls images, stops old containers, updates the database, and starts new containers'
|
125
|
-
task deploy: %w{docker:pull docker:stop docker:migrate docker:start }
|
126
|
-
end
|
data/test_apps/dummy/.gitignore
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore all logfiles and tempfiles.
|
11
|
-
/log/*
|
12
|
-
/tmp/*
|
13
|
-
!/log/.keep
|
14
|
-
!/tmp/.keep
|
15
|
-
|
16
|
-
# Ignore uploaded files in development
|
17
|
-
/storage/*
|
18
|
-
!/storage/.keep
|
19
|
-
|
20
|
-
/node_modules
|
21
|
-
/yarn-error.log
|
22
|
-
|
23
|
-
/public/assets
|
24
|
-
.byebug_history
|
25
|
-
|
26
|
-
# Ignore master key for decrypting credentials and more.
|
27
|
-
/config/master.key
|
data/test_apps/dummy/Gemfile
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
-
|
4
|
-
|
5
|
-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
6
|
-
gem 'rails', '~> 5.2.2'
|
7
|
-
# Use postgresql as the database for Active Record
|
8
|
-
gem 'pg', '>= 0.18', '< 2.0'
|
9
|
-
# Use Puma as the app server
|
10
|
-
gem 'puma', '~> 3.11'
|
11
|
-
# Use SCSS for stylesheets
|
12
|
-
gem 'sass-rails', '~> 5.0'
|
13
|
-
# Use Uglifier as compressor for JavaScript assets
|
14
|
-
gem 'uglifier', '>= 1.3.0'
|
15
|
-
# See https://github.com/rails/execjs#readme for more supported runtimes
|
16
|
-
# gem 'mini_racer', platforms: :ruby
|
17
|
-
|
18
|
-
# Use CoffeeScript for .coffee assets and views
|
19
|
-
gem 'coffee-rails', '~> 4.2'
|
20
|
-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
|
21
|
-
gem 'turbolinks', '~> 5'
|
22
|
-
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
23
|
-
gem 'jbuilder', '~> 2.5'
|
24
|
-
# Use Redis adapter to run Action Cable in production
|
25
|
-
# gem 'redis', '~> 4.0'
|
26
|
-
# Use ActiveModel has_secure_password
|
27
|
-
# gem 'bcrypt', '~> 3.1.7'
|
28
|
-
|
29
|
-
# Use ActiveStorage variant
|
30
|
-
# gem 'mini_magick', '~> 4.8'
|
31
|
-
|
32
|
-
# Use Capistrano for deployment
|
33
|
-
# gem 'capistrano-rails', group: :development
|
34
|
-
|
35
|
-
# Reduces boot times through caching; required in config/boot.rb
|
36
|
-
gem 'bootsnap', '>= 1.1.0', require: false
|
37
|
-
|
38
|
-
group :development, :test do
|
39
|
-
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
40
|
-
# gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
41
|
-
end
|
42
|
-
|
43
|
-
group :development do
|
44
|
-
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
45
|
-
gem 'web-console', '>= 3.3.0'
|
46
|
-
gem 'listen', '>= 3.0.5', '< 3.2'
|
47
|
-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
48
|
-
gem 'spring'
|
49
|
-
gem 'spring-watcher-listen', '~> 2.0.0'
|
50
|
-
end
|
51
|
-
|
52
|
-
group :test do
|
53
|
-
# Adds support for Capybara system testing and selenium driver
|
54
|
-
gem 'capybara', '>= 2.15'
|
55
|
-
gem 'selenium-webdriver'
|
56
|
-
# Easy installation and use of chromedriver to run system tests with Chrome
|
57
|
-
gem 'chromedriver-helper'
|
58
|
-
end
|
59
|
-
|
60
|
-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
61
|
-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|