railsdock 0.1.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile.lock +39 -39
- data/example-app/.browserslistrc +1 -0
- data/example-app/.gitignore +31 -0
- data/example-app/.ruby-version +1 -0
- data/example-app/Gemfile +46 -0
- data/example-app/Gemfile.lock +201 -0
- data/example-app/README.md +24 -0
- data/example-app/Rakefile +6 -0
- data/example-app/app/assets/config/manifest.js +2 -0
- data/example-app/app/assets/images/.keep +0 -0
- data/example-app/app/assets/stylesheets/application.css +15 -0
- data/example-app/app/channels/application_cable/channel.rb +4 -0
- data/example-app/app/channels/application_cable/connection.rb +4 -0
- data/example-app/app/controllers/application_controller.rb +2 -0
- data/example-app/app/controllers/concerns/.keep +0 -0
- data/example-app/app/helpers/application_helper.rb +2 -0
- data/example-app/app/javascript/channels/consumer.js +6 -0
- data/example-app/app/javascript/channels/index.js +5 -0
- data/example-app/app/javascript/packs/application.js +17 -0
- data/example-app/app/jobs/application_job.rb +7 -0
- data/example-app/app/mailers/application_mailer.rb +4 -0
- data/example-app/app/models/application_record.rb +3 -0
- data/example-app/app/models/concerns/.keep +0 -0
- data/example-app/app/views/layouts/application.html.erb +15 -0
- data/example-app/app/views/layouts/mailer.html.erb +13 -0
- data/example-app/app/views/layouts/mailer.text.erb +1 -0
- data/example-app/babel.config.js +72 -0
- data/example-app/bin/bundle +105 -0
- data/example-app/bin/rails +9 -0
- data/example-app/bin/rake +9 -0
- data/example-app/bin/setup +36 -0
- data/example-app/bin/spring +17 -0
- data/example-app/bin/webpack +18 -0
- data/example-app/bin/webpack-dev-server +18 -0
- data/example-app/bin/yarn +11 -0
- data/example-app/config.ru +5 -0
- data/example-app/config/application.rb +35 -0
- data/example-app/config/boot.rb +4 -0
- data/example-app/config/cable.yml +10 -0
- data/example-app/config/credentials.yml.enc +1 -0
- data/example-app/config/database.yml +18 -0
- data/example-app/config/environment.rb +5 -0
- data/example-app/config/environments/development.rb +62 -0
- data/example-app/config/environments/production.rb +112 -0
- data/example-app/config/environments/test.rb +48 -0
- data/example-app/config/initializers/application_controller_renderer.rb +8 -0
- data/example-app/config/initializers/assets.rb +14 -0
- data/example-app/config/initializers/backtrace_silencers.rb +7 -0
- data/example-app/config/initializers/content_security_policy.rb +30 -0
- data/example-app/config/initializers/cookies_serializer.rb +5 -0
- data/example-app/config/initializers/filter_parameter_logging.rb +4 -0
- data/example-app/config/initializers/inflections.rb +16 -0
- data/example-app/config/initializers/mime_types.rb +4 -0
- data/example-app/config/initializers/wrap_parameters.rb +14 -0
- data/example-app/config/locales/en.yml +33 -0
- data/example-app/config/puma.rb +38 -0
- data/example-app/config/routes.rb +3 -0
- data/example-app/config/spring.rb +6 -0
- data/example-app/config/storage.yml +34 -0
- data/example-app/config/webpack/development.js +5 -0
- data/example-app/config/webpack/environment.js +3 -0
- data/example-app/config/webpack/production.js +5 -0
- data/example-app/config/webpack/test.js +5 -0
- data/example-app/config/webpacker.yml +96 -0
- data/example-app/db/schema.rb +18 -0
- data/example-app/db/seeds.rb +7 -0
- data/example-app/lib/assets/.keep +0 -0
- data/example-app/lib/tasks/.keep +0 -0
- data/example-app/log/.keep +0 -0
- data/example-app/package.json +15 -0
- data/example-app/postcss.config.js +12 -0
- data/example-app/public/404.html +67 -0
- data/example-app/public/422.html +67 -0
- data/example-app/public/500.html +66 -0
- data/example-app/public/apple-touch-icon-precomposed.png +0 -0
- data/example-app/public/apple-touch-icon.png +0 -0
- data/example-app/public/favicon.ico +0 -0
- data/example-app/public/robots.txt +1 -0
- data/example-app/storage/.keep +0 -0
- data/example-app/tmp/.keep +0 -0
- data/example-app/vendor/.keep +0 -0
- data/example-app/yarn.lock +7721 -0
- data/lib/railsdock/commands/install.rb +33 -13
- data/lib/railsdock/templates/install/default/Dockerfile +10 -4
- data/lib/railsdock/templates/install/default/default.env.erb +2 -27
- data/lib/railsdock/templates/install/default/docker-compose.yml.erb +10 -22
- data/lib/railsdock/templates/install/default/entrypoint.sh +67 -0
- data/lib/railsdock/templates/install/memcached/docker-compose.yml.erb +1 -3
- data/lib/railsdock/templates/install/mysql/docker-compose.yml.erb +2 -4
- data/lib/railsdock/templates/install/postgres/docker-compose.yml.erb +3 -3
- data/lib/railsdock/templates/install/redis/docker-compose.yml.erb +1 -3
- data/lib/railsdock/version.rb +1 -1
- data/railsdock.gemspec +1 -1
- metadata +89 -13
- data/lib/railsdock/templates/install/default/docker-compose.mac.yml +0 -7
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'ostruct'
|
4
4
|
require 'erb'
|
5
|
+
require 'bundler'
|
5
6
|
require_relative '../command'
|
6
7
|
require_relative '../logo'
|
7
8
|
|
@@ -11,7 +12,11 @@ module Railsdock
|
|
11
12
|
OPTIONS_HASH = {
|
12
13
|
database: {
|
13
14
|
name: 'Database',
|
14
|
-
options: %i[postgres mysql]
|
15
|
+
options: %i[postgres mysql],
|
16
|
+
default_port: {
|
17
|
+
postgres: 5432,
|
18
|
+
mysql: 3306
|
19
|
+
}
|
15
20
|
},
|
16
21
|
mem_store: {
|
17
22
|
name: 'In-Memory Store',
|
@@ -34,7 +39,8 @@ module Railsdock
|
|
34
39
|
app_name: options[:app_name] || get_app_name,
|
35
40
|
is_windows?: platform.windows?,
|
36
41
|
is_mac?: platform.mac?,
|
37
|
-
uid: cmd.run('id -u').out.chomp
|
42
|
+
uid: cmd.run('id -u').out.chomp,
|
43
|
+
ruby_version: get_ruby_version
|
38
44
|
)
|
39
45
|
end
|
40
46
|
|
@@ -48,9 +54,12 @@ module Railsdock
|
|
48
54
|
inject_driver_config(service)
|
49
55
|
append_erb_to_compose_file(service)
|
50
56
|
file.inject_into_file('./docker-compose.yml', "\n #{service}:", after: "\nvolumes:")
|
51
|
-
|
52
|
-
|
57
|
+
if type == :database
|
58
|
+
copy_db_yml("#{BASE_TEMPLATE_DIR}/#{service}/database.yml.erb")
|
59
|
+
inject_db_script_into_entrypoint(service)
|
60
|
+
end
|
53
61
|
end
|
62
|
+
cmd.run('chmod +x ./docker/ruby/entrypoint.sh')
|
54
63
|
output.puts POST_INSTALL_MESSAGE
|
55
64
|
end
|
56
65
|
|
@@ -60,10 +69,24 @@ module Railsdock
|
|
60
69
|
::File.open('./config/application.rb').read.match(/module (.+)\s/)[1].downcase
|
61
70
|
end
|
62
71
|
|
72
|
+
def get_ruby_version
|
73
|
+
::Bundler.definition.ruby_version.versions[0] || RUBY_VERSION
|
74
|
+
end
|
75
|
+
|
63
76
|
def copy_db_yml(erb_file)
|
64
77
|
file.copy_file(erb_file, './config/database.yml', context: @variables)
|
65
78
|
end
|
66
79
|
|
80
|
+
def inject_db_script_into_entrypoint(service)
|
81
|
+
file.inject_into_file('./docker/ruby/entrypoint.sh', after: "echo \"DB is not ready, sleeping...\"\n") do
|
82
|
+
<<~BASH
|
83
|
+
until nc -vz #{service} #{OPTIONS_HASH[:database][:default_port][service]}; do
|
84
|
+
sleep 1
|
85
|
+
done
|
86
|
+
BASH
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
67
90
|
def collect_service_selections
|
68
91
|
prompt.collect do
|
69
92
|
OPTIONS_HASH.each do |key, value|
|
@@ -74,9 +97,9 @@ module Railsdock
|
|
74
97
|
|
75
98
|
def inject_driver_config(service)
|
76
99
|
file.inject_into_file('./docker-compose.yml', after: " node_modules:\n driver: ${VOLUMES_DRIVER}\n") do
|
77
|
-
|
78
|
-
|
79
|
-
|
100
|
+
<<~YAML
|
101
|
+
#{service}:
|
102
|
+
driver: ${VOLUMES_DRIVER}
|
80
103
|
YAML
|
81
104
|
end
|
82
105
|
end
|
@@ -102,12 +125,7 @@ module Railsdock
|
|
102
125
|
file.safe_append_to_file('./docker-compose.yml') do
|
103
126
|
generate_erb("#{BASE_TEMPLATE_DIR}/#{service}/docker-compose.yml.erb")
|
104
127
|
end
|
105
|
-
|
106
|
-
|
107
|
-
def append_service_config_to_env(service)
|
108
|
-
file.safe_append_to_file('./.env') do
|
109
|
-
::File.binread("#{BASE_TEMPLATE_DIR}/#{service}/#{service}.env")
|
110
|
-
end
|
128
|
+
file.inject_into_file('./docker-compose.yml', " - #{service}\n", after: "depends_on:\n")
|
111
129
|
end
|
112
130
|
|
113
131
|
def prompt_for_dockerfile_directory
|
@@ -129,6 +147,8 @@ module Railsdock
|
|
129
147
|
case File.basename(path)
|
130
148
|
when 'Dockerfile'
|
131
149
|
file.copy_file(path, "#{@variables.dockerfile_dir}ruby/Dockerfile", context: @variables)
|
150
|
+
when 'entrypoint.sh'
|
151
|
+
file.copy_file(path, "#{@variables.dockerfile_dir}ruby/entrypoint.sh", context: @variables)
|
132
152
|
when 'docker-compose.yml.erb'
|
133
153
|
file.copy_file(path, './docker-compose.yml', context: @variables)
|
134
154
|
when 'default.env.erb'
|
@@ -10,7 +10,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|
10
10
|
# Base Software Install
|
11
11
|
###############################################################################
|
12
12
|
|
13
|
-
ARG RAILSDOCK_NODE_VERSION=
|
13
|
+
ARG RAILSDOCK_NODE_VERSION=12
|
14
14
|
|
15
15
|
RUN curl -sL https://deb.nodesource.com/setup_$RAILSDOCK_NODE_VERSION.x | bash -
|
16
16
|
|
@@ -50,8 +50,10 @@ RUN groupadd -g $RUBY_GID $USER && \
|
|
50
50
|
|
51
51
|
ENV LANG C.UTF-8
|
52
52
|
|
53
|
+
# Update Rubygems to latest
|
54
|
+
RUN gem update --system
|
55
|
+
|
53
56
|
# Point Bundler at /gems. This will cause Bundler to re-use gems that have already been installed on the gems volume
|
54
|
-
ENV BUNDLE_PATH /gems
|
55
57
|
ENV BUNDLE_HOME /gems
|
56
58
|
|
57
59
|
# Increase how many threads Bundler uses when installing. Optional!
|
@@ -67,7 +69,9 @@ ENV GEM_HOME /gems
|
|
67
69
|
ENV GEM_PATH /gems
|
68
70
|
|
69
71
|
# Add /gems/bin to the path so any installed gem binaries are runnable from bash.
|
70
|
-
ENV PATH /gems/bin:$PATH
|
72
|
+
ENV PATH ${GEM_HOME}/bin:${GEM_HOME}/gems/bin:$PATH
|
73
|
+
|
74
|
+
RUN unset BUNDLE_PATH && unset BUNDLE_BIN
|
71
75
|
|
72
76
|
###############################################################################
|
73
77
|
# Optional Software Install
|
@@ -89,11 +93,13 @@ RUN if [ "$INSTALL_PG_CLIENT" = true ]; then \
|
|
89
93
|
###############################################################################
|
90
94
|
|
91
95
|
RUN mkdir -p "$GEM_HOME" && chown $USER:$USER "$GEM_HOME"
|
96
|
+
RUN mkdir -p /app && chown $USER:$USER /app
|
92
97
|
|
93
|
-
RUN mkdir -p /app
|
94
98
|
WORKDIR /app
|
95
99
|
|
96
100
|
RUN mkdir -p node_modules && chown $USER:$USER node_modules
|
101
|
+
RUN mkdir -p public/packs && chown $USER:$USER public/packs
|
102
|
+
RUN mkdir -p tmp/cache && chown $USER:$USER tmp/cache
|
97
103
|
|
98
104
|
USER $USER
|
99
105
|
|
@@ -2,23 +2,10 @@
|
|
2
2
|
############################# General Setup ###################################
|
3
3
|
###############################################################################
|
4
4
|
|
5
|
-
### Paths #####################################################################
|
6
|
-
|
7
|
-
# Point to the path of your applications code on your host
|
8
|
-
APP_CODE_PATH_HOST=../
|
9
|
-
|
10
|
-
# Point to where the `APP_CODE_PATH_HOST` should be in the container.
|
11
|
-
APP_CODE_PATH_CONTAINER=/app
|
12
|
-
|
13
|
-
### DRIVERS ###################################################################
|
14
|
-
|
15
|
-
# All volumes driver
|
16
|
-
VOLUMES_DRIVER=local
|
17
|
-
|
18
5
|
### Docker compose files ######################################################
|
19
6
|
|
20
7
|
# Select which docker-compose files to include. If using an override append `:docker-compose.example.yml` at the end
|
21
|
-
COMPOSE_FILE=docker-compose.yml
|
8
|
+
COMPOSE_FILE=docker-compose.yml
|
22
9
|
|
23
10
|
# Change the separator from : to ; on Windows
|
24
11
|
COMPOSE_PATH_SEPARATOR=<%= is_windows? ? ';' : ':' %>
|
@@ -26,19 +13,7 @@ COMPOSE_PATH_SEPARATOR=<%= is_windows? ? ';' : ':' %>
|
|
26
13
|
# Define the prefix of container names. This is useful when there are multiple projects using railsdock
|
27
14
|
COMPOSE_PROJECT_NAME=<%= app_name %>
|
28
15
|
|
29
|
-
|
30
|
-
######################### Containers Customization ############################
|
31
|
-
###############################################################################
|
32
|
-
|
33
|
-
|
34
|
-
### RUBY ######################################################################
|
35
|
-
# Select a Ruby Version of the Ruby container. Accepted values: 2.2-2.6
|
16
|
+
### User Configuration ######################################################
|
36
17
|
|
37
|
-
RAILSDOCK_RUBY_VERSION=2.6
|
38
|
-
BUNDLE_JOBS=10
|
39
|
-
BUNDLE_RETRY=3
|
40
|
-
RAILS_SERVER_HOST_PORT=3000
|
41
18
|
RUBY_UID=<%= uid %>
|
42
19
|
RUBY_GID=<%= uid %>
|
43
|
-
# Select a Node Version for the Ruby container. Accepted values: 8-11
|
44
|
-
NODE_VERSION=11
|
@@ -4,12 +4,14 @@ x-ruby: &ruby-base
|
|
4
4
|
build:
|
5
5
|
context: <%= dockerfile_dir %>ruby
|
6
6
|
args:
|
7
|
-
- RAILSDOCK_RUBY_VERSION
|
8
|
-
- RAILSDOCK_NODE_VERSION
|
7
|
+
- RAILSDOCK_RUBY_VERSION=<%= ruby_version %>
|
8
|
+
- RAILSDOCK_NODE_VERSION=12
|
9
|
+
- RAILSDOCK_BUNDLE_JOBS=10
|
10
|
+
- RAILSDOCK_BUNDLE_RETRY=3
|
9
11
|
- RUBY_UID=${RUBY_UID}
|
10
12
|
- RUBY_GID=${RUBY_GID}
|
11
13
|
volumes:
|
12
|
-
- .:/app
|
14
|
+
- .:/app:cached
|
13
15
|
- gems:/gems
|
14
16
|
- node_modules:/app/node_modules
|
15
17
|
- packs:/app/public/packs
|
@@ -20,32 +22,18 @@ x-ruby: &ruby-base
|
|
20
22
|
tty: true
|
21
23
|
stdin_open: true
|
22
24
|
depends_on:
|
23
|
-
- postgres
|
24
|
-
- redis
|
25
25
|
|
26
26
|
volumes:
|
27
27
|
gems:
|
28
28
|
node_modules:
|
29
|
+
packs:
|
30
|
+
rails_cache:
|
29
31
|
|
30
32
|
services:
|
31
33
|
|
32
34
|
rails:
|
33
35
|
<<: *ruby-base
|
34
|
-
|
35
|
-
|
36
|
-
args:
|
37
|
-
- RAILSDOCK_BUNDLE_JOBS=${BUNDLE_JOBS}
|
38
|
-
- RAILSDOCK_BUNDLE_RETRY=${BUNDLE_RETRY}
|
39
|
-
environment:
|
40
|
-
- DATABASE_USER=${DATABASE_USER}
|
41
|
-
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
|
42
|
-
- DATABASE_HOST=${DATABASE_HOST}
|
43
|
-
volumes:
|
44
|
-
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
45
|
-
- gems:/gems
|
46
|
-
- node_modules:${APP_CODE_PATH_CONTAINER}/node_modules
|
36
|
+
command: bundle exec rails server -p 3000 -b '0.0.0.0'
|
37
|
+
entrypoint: ./docker/ruby/entrypoint.sh
|
47
38
|
ports:
|
48
|
-
- "
|
49
|
-
user: ruby
|
50
|
-
tty: true
|
51
|
-
stdin_open: true
|
39
|
+
- "3000:3000"
|
@@ -0,0 +1,67 @@
|
|
1
|
+
#! /bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
: ${APP_PATH:="/app"}
|
5
|
+
: ${APP_TEMP_PATH:="$APP_PATH/tmp"}
|
6
|
+
: ${APP_SETUP_LOCK:="$APP_TEMP_PATH/setup.lock"}
|
7
|
+
: ${APP_SETUP_WAIT:="5"}
|
8
|
+
: ${HOST_DOMAIN:="host.docker.internal"}
|
9
|
+
|
10
|
+
# 1: Define the functions lock and unlock our app containers setup
|
11
|
+
# processes:
|
12
|
+
function lock_setup { mkdir -p $APP_TEMP_PATH && touch $APP_SETUP_LOCK; }
|
13
|
+
function unlock_setup { rm -rf $APP_SETUP_LOCK; }
|
14
|
+
function wait_setup { echo "Waiting for app setup to finish..."; sleep $APP_SETUP_WAIT; }
|
15
|
+
function check_host { ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1; }
|
16
|
+
function schema_file_exists { [[ -e "db/schema.rb" || -e "db/structure.sql" ]]; }
|
17
|
+
|
18
|
+
# 2: 'Unlock' the setup process if the script exits prematurely:
|
19
|
+
trap unlock_setup HUP INT QUIT KILL TERM EXIT
|
20
|
+
|
21
|
+
# 3: Wait for postgres to come up
|
22
|
+
echo "DB is not ready, sleeping..."
|
23
|
+
echo "DB is ready, starting Rails."
|
24
|
+
|
25
|
+
# 4: Specify a default command, in case it wasn't issued:
|
26
|
+
if [ -z "$1" ]; then set -- bundle exec rails server -p 3000 -b 0.0.0.0 "$@"; fi
|
27
|
+
|
28
|
+
# 5: Run the checks only if the app code is going to be executed:
|
29
|
+
if [[ "$3" = "rails" ]]
|
30
|
+
then
|
31
|
+
# Clean up any orphaned lock file
|
32
|
+
unlock_setup
|
33
|
+
# 6: Wait until the setup 'lock' file no longer exists:
|
34
|
+
while [ -f $APP_SETUP_LOCK ]; do wait_setup; done
|
35
|
+
|
36
|
+
# 6: 'Lock' the setup process, to prevent a race condition when the
|
37
|
+
# project's app containers will try to install gems and setup the
|
38
|
+
# database concurrently:
|
39
|
+
lock_setup
|
40
|
+
# 8: Check if dependencies need to be installed and install them
|
41
|
+
bundle check || bundle install
|
42
|
+
|
43
|
+
yarn install
|
44
|
+
# 9: Setup the database if it doesn't
|
45
|
+
if ! schema_file_exists; then
|
46
|
+
bundle exec rake db:create && bundle exec rake db:migrate
|
47
|
+
elif ! rake db:migrate 2> /dev/null; then
|
48
|
+
bundle exec rake db:setup
|
49
|
+
fi
|
50
|
+
|
51
|
+
# check if the docker host is running on mac or windows
|
52
|
+
if ! check_host; then
|
53
|
+
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
|
54
|
+
echo "$HOST_IP $HOST_DOMAIN" | sudo tee -a /etc/hosts > /dev/null
|
55
|
+
fi
|
56
|
+
|
57
|
+
# 10: 'Unlock' the setup process:
|
58
|
+
unlock_setup
|
59
|
+
|
60
|
+
# 11: If the command to execute is 'rails server', then we must remove any
|
61
|
+
# pid file present. Suddenly killing and removing app containers might leave
|
62
|
+
# this file, and prevent rails from starting-up if present:
|
63
|
+
if [[ "$4" = "s" || "$4" = "server" ]]; then rm -rf /app/tmp/pids/server.pid; fi
|
64
|
+
fi
|
65
|
+
|
66
|
+
# 10: Execute the given or default command:
|
67
|
+
exec "$@"
|
@@ -4,10 +4,8 @@
|
|
4
4
|
build:
|
5
5
|
context: <%= dockerfile_dir %>mysql
|
6
6
|
args:
|
7
|
-
- MYSQL_VERSION
|
7
|
+
- MYSQL_VERSION=5.7
|
8
8
|
environment:
|
9
|
-
- MYSQL_ROOT_PASSWORD
|
10
|
-
ports:
|
11
|
-
- "${MYSQL_HOST_PORT}:3306"
|
9
|
+
- MYSQL_ROOT_PASSWORD=Password1
|
12
10
|
volumes:
|
13
11
|
- mysql:/var/lib/mysql
|
@@ -4,8 +4,8 @@
|
|
4
4
|
build:
|
5
5
|
context: <%= dockerfile_dir %>postgres
|
6
6
|
args:
|
7
|
-
- POSTGRES_VERSION
|
8
|
-
|
9
|
-
-
|
7
|
+
- POSTGRES_VERSION=12
|
8
|
+
environment:
|
9
|
+
- POSTGRES_HOST_AUTH_METHOD=trust
|
10
10
|
volumes:
|
11
11
|
- postgres:/var/lib/postgresql/data
|
data/lib/railsdock/version.rb
CHANGED
data/railsdock.gemspec
CHANGED
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
|
|
44
44
|
spec.add_dependency 'tty-platform', '~> 0.2.0'
|
45
45
|
spec.add_dependency 'tty-prompt', '~> 0.19.0'
|
46
46
|
|
47
|
-
spec.add_development_dependency 'rake', '
|
47
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
48
48
|
spec.add_development_dependency 'rake-compiler'
|
49
49
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
50
50
|
spec.add_development_dependency 'appraisal', '2.2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railsdock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Boe
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -133,16 +133,16 @@ dependencies:
|
|
133
133
|
name: rake
|
134
134
|
requirement: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 12.3.3
|
139
139
|
type: :development
|
140
140
|
prerelease: false
|
141
141
|
version_requirements: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 12.3.3
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: rake-compiler
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,6 +221,87 @@ files:
|
|
221
221
|
- Rakefile
|
222
222
|
- bin/console
|
223
223
|
- bin/setup
|
224
|
+
- example-app/.browserslistrc
|
225
|
+
- example-app/.gitignore
|
226
|
+
- example-app/.ruby-version
|
227
|
+
- example-app/Gemfile
|
228
|
+
- example-app/Gemfile.lock
|
229
|
+
- example-app/README.md
|
230
|
+
- example-app/Rakefile
|
231
|
+
- example-app/app/assets/config/manifest.js
|
232
|
+
- example-app/app/assets/images/.keep
|
233
|
+
- example-app/app/assets/stylesheets/application.css
|
234
|
+
- example-app/app/channels/application_cable/channel.rb
|
235
|
+
- example-app/app/channels/application_cable/connection.rb
|
236
|
+
- example-app/app/controllers/application_controller.rb
|
237
|
+
- example-app/app/controllers/concerns/.keep
|
238
|
+
- example-app/app/helpers/application_helper.rb
|
239
|
+
- example-app/app/javascript/channels/consumer.js
|
240
|
+
- example-app/app/javascript/channels/index.js
|
241
|
+
- example-app/app/javascript/packs/application.js
|
242
|
+
- example-app/app/jobs/application_job.rb
|
243
|
+
- example-app/app/mailers/application_mailer.rb
|
244
|
+
- example-app/app/models/application_record.rb
|
245
|
+
- example-app/app/models/concerns/.keep
|
246
|
+
- example-app/app/views/layouts/application.html.erb
|
247
|
+
- example-app/app/views/layouts/mailer.html.erb
|
248
|
+
- example-app/app/views/layouts/mailer.text.erb
|
249
|
+
- example-app/babel.config.js
|
250
|
+
- example-app/bin/bundle
|
251
|
+
- example-app/bin/rails
|
252
|
+
- example-app/bin/rake
|
253
|
+
- example-app/bin/setup
|
254
|
+
- example-app/bin/spring
|
255
|
+
- example-app/bin/webpack
|
256
|
+
- example-app/bin/webpack-dev-server
|
257
|
+
- example-app/bin/yarn
|
258
|
+
- example-app/config.ru
|
259
|
+
- example-app/config/application.rb
|
260
|
+
- example-app/config/boot.rb
|
261
|
+
- example-app/config/cable.yml
|
262
|
+
- example-app/config/credentials.yml.enc
|
263
|
+
- example-app/config/database.yml
|
264
|
+
- example-app/config/environment.rb
|
265
|
+
- example-app/config/environments/development.rb
|
266
|
+
- example-app/config/environments/production.rb
|
267
|
+
- example-app/config/environments/test.rb
|
268
|
+
- example-app/config/initializers/application_controller_renderer.rb
|
269
|
+
- example-app/config/initializers/assets.rb
|
270
|
+
- example-app/config/initializers/backtrace_silencers.rb
|
271
|
+
- example-app/config/initializers/content_security_policy.rb
|
272
|
+
- example-app/config/initializers/cookies_serializer.rb
|
273
|
+
- example-app/config/initializers/filter_parameter_logging.rb
|
274
|
+
- example-app/config/initializers/inflections.rb
|
275
|
+
- example-app/config/initializers/mime_types.rb
|
276
|
+
- example-app/config/initializers/wrap_parameters.rb
|
277
|
+
- example-app/config/locales/en.yml
|
278
|
+
- example-app/config/puma.rb
|
279
|
+
- example-app/config/routes.rb
|
280
|
+
- example-app/config/spring.rb
|
281
|
+
- example-app/config/storage.yml
|
282
|
+
- example-app/config/webpack/development.js
|
283
|
+
- example-app/config/webpack/environment.js
|
284
|
+
- example-app/config/webpack/production.js
|
285
|
+
- example-app/config/webpack/test.js
|
286
|
+
- example-app/config/webpacker.yml
|
287
|
+
- example-app/db/schema.rb
|
288
|
+
- example-app/db/seeds.rb
|
289
|
+
- example-app/lib/assets/.keep
|
290
|
+
- example-app/lib/tasks/.keep
|
291
|
+
- example-app/log/.keep
|
292
|
+
- example-app/package.json
|
293
|
+
- example-app/postcss.config.js
|
294
|
+
- example-app/public/404.html
|
295
|
+
- example-app/public/422.html
|
296
|
+
- example-app/public/500.html
|
297
|
+
- example-app/public/apple-touch-icon-precomposed.png
|
298
|
+
- example-app/public/apple-touch-icon.png
|
299
|
+
- example-app/public/favicon.ico
|
300
|
+
- example-app/public/robots.txt
|
301
|
+
- example-app/storage/.keep
|
302
|
+
- example-app/tmp/.keep
|
303
|
+
- example-app/vendor/.keep
|
304
|
+
- example-app/yarn.lock
|
224
305
|
- exe/railsdock
|
225
306
|
- ext/railsdock/extconf.rb
|
226
307
|
- ext/railsdock/railsdock.c
|
@@ -232,23 +313,18 @@ files:
|
|
232
313
|
- lib/railsdock/logo.rb
|
233
314
|
- lib/railsdock/templates/install/default/Dockerfile
|
234
315
|
- lib/railsdock/templates/install/default/default.env.erb
|
235
|
-
- lib/railsdock/templates/install/default/dev-entrypoint
|
236
|
-
- lib/railsdock/templates/install/default/docker-compose.mac.yml
|
237
316
|
- lib/railsdock/templates/install/default/docker-compose.yml.erb
|
317
|
+
- lib/railsdock/templates/install/default/entrypoint.sh
|
238
318
|
- lib/railsdock/templates/install/memcached/Dockerfile
|
239
319
|
- lib/railsdock/templates/install/memcached/docker-compose.yml.erb
|
240
|
-
- lib/railsdock/templates/install/memcached/memcached.env
|
241
320
|
- lib/railsdock/templates/install/mysql/Dockerfile
|
242
321
|
- lib/railsdock/templates/install/mysql/database.yml.erb
|
243
322
|
- lib/railsdock/templates/install/mysql/docker-compose.yml.erb
|
244
|
-
- lib/railsdock/templates/install/mysql/mysql.env
|
245
323
|
- lib/railsdock/templates/install/postgres/Dockerfile
|
246
324
|
- lib/railsdock/templates/install/postgres/database.yml.erb
|
247
325
|
- lib/railsdock/templates/install/postgres/docker-compose.yml.erb
|
248
|
-
- lib/railsdock/templates/install/postgres/postgres.env
|
249
326
|
- lib/railsdock/templates/install/redis/Dockerfile
|
250
327
|
- lib/railsdock/templates/install/redis/docker-compose.yml.erb
|
251
|
-
- lib/railsdock/templates/install/redis/redis.env
|
252
328
|
- lib/railsdock/version.rb
|
253
329
|
- railsdock.gemspec
|
254
330
|
- railsdock.png
|
@@ -274,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
350
|
- !ruby/object:Gem::Version
|
275
351
|
version: '0'
|
276
352
|
requirements: []
|
277
|
-
rubygems_version: 3.
|
353
|
+
rubygems_version: 3.1.3
|
278
354
|
signing_key:
|
279
355
|
specification_version: 4
|
280
356
|
summary: Docker-ize your Rails project.
|