dockerize-stack 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dockerize_stack.rb +5 -13
- data/lib/thor_extend.rb +1 -1
- data/lib/version.rb +1 -1
- data/templates/gatsby/.dockerignore.erb +73 -0
- data/templates/rails/.dockerignore.erb +20 -0
- data/templates/react/.dockerignore.erb +27 -0
- data/templates/strapi/.dockerignore.erb +114 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a29329d0689f46f4d984668ed76e49cb432ed09477ad8f4c2a12b349bf0aa63
|
4
|
+
data.tar.gz: 7ce5791980da3acec05f4c4737814b6bb618c0982a0d45f3096cd8faf056c1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47364165578af22beb5f4fcf623ea25ddb2cae999206f5267e854fb189cb1ad22136e3e9153484ec98015701c1b925a6c956c3c9736b13151d10d5ffcf466754
|
7
|
+
data.tar.gz: 7e284acd53693d53e92c00deebed6ece05396ff5976f85a176c0c30a7099038de7bb34f0f8d293970f7bb1a15a35f802fbfa367a35f9c993edcbd61670586b44
|
data/lib/dockerize_stack.rb
CHANGED
@@ -8,13 +8,8 @@ module DockerizeStack
|
|
8
8
|
include Thor::Actions
|
9
9
|
include ThorActionsExtend
|
10
10
|
|
11
|
-
option :template_folder,
|
12
|
-
|
13
|
-
desc: 'Template folder path'
|
14
|
-
option :output_folder,
|
15
|
-
default: '.',
|
16
|
-
aliases: 'o',
|
17
|
-
desc: 'Output folder'
|
11
|
+
option :template_folder, aliases: 't', desc: 'Template folder path'
|
12
|
+
option :output_folder, default: '.', aliases: 'o', desc: 'Output folder'
|
18
13
|
|
19
14
|
CONFIG[:rails][:questions].each do |question|
|
20
15
|
option question[:option],
|
@@ -28,18 +23,18 @@ module DockerizeStack
|
|
28
23
|
if file_path =~ %r{./templates/rails/kubernetes} && !@kubernetes
|
29
24
|
return false
|
30
25
|
end
|
31
|
-
|
32
26
|
file_name = file_path.gsub('/templates/rails', '')
|
33
27
|
template file_name, "#{@output_folder}/#{file_name.gsub('.erb', '')}"
|
34
28
|
end
|
35
|
-
render_template! '.dockerignore.erb'
|
36
29
|
|
37
30
|
puts 'Update your database.yml based in database-docker.yml'
|
38
31
|
end
|
39
32
|
|
40
33
|
option :template_folder, aliases: 't', desc: 'Template folder path'
|
41
34
|
option :output_folder, default: '.', aliases: 'o', desc: 'Output folder'
|
42
|
-
|
35
|
+
CONFIG[:react][:questions].each do |question|
|
36
|
+
option question[:option], desc: question[:title]
|
37
|
+
end
|
43
38
|
|
44
39
|
desc 'react', 'generate docker files for create react app'
|
45
40
|
def react
|
@@ -48,7 +43,6 @@ module DockerizeStack
|
|
48
43
|
file_name = file_path.gsub('/templates/react', '')
|
49
44
|
template file_name, "#{@output_folder}/#{file_name.gsub('.erb', '')}"
|
50
45
|
end
|
51
|
-
render_template! '.dockerignore.erb'
|
52
46
|
end
|
53
47
|
|
54
48
|
option :template_folder, aliases: 't', desc: 'Template folder path'
|
@@ -66,7 +60,6 @@ module DockerizeStack
|
|
66
60
|
file_name = file_path.gsub("/templates/#{@type}", '')
|
67
61
|
template file_name, "#{@output_folder}/#{file_name.gsub('.erb', '')}"
|
68
62
|
end
|
69
|
-
render_template! '.dockerignore.erb'
|
70
63
|
end
|
71
64
|
|
72
65
|
option :template_folder, aliases: 't', desc: 'Template folder path'
|
@@ -84,7 +77,6 @@ module DockerizeStack
|
|
84
77
|
file_name = file_path.gsub("/templates/#{@type}", '')
|
85
78
|
template file_name, "#{@output_folder}/#{file_name.gsub('.erb', '')}"
|
86
79
|
end
|
87
|
-
render_template! '.dockerignore.erb'
|
88
80
|
end
|
89
81
|
end
|
90
82
|
end
|
data/lib/thor_extend.rb
CHANGED
data/lib/version.rb
CHANGED
@@ -0,0 +1,73 @@
|
|
1
|
+
.git
|
2
|
+
|
3
|
+
.idea
|
4
|
+
# Logs
|
5
|
+
logs
|
6
|
+
*.log
|
7
|
+
npm-debug.log*
|
8
|
+
yarn-debug.log*
|
9
|
+
yarn-error.log*
|
10
|
+
|
11
|
+
# Runtime data
|
12
|
+
pids
|
13
|
+
*.pid
|
14
|
+
*.seed
|
15
|
+
*.pid.lock
|
16
|
+
|
17
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
18
|
+
lib-cov
|
19
|
+
|
20
|
+
# Coverage directory used by tools like istanbul
|
21
|
+
coverage
|
22
|
+
|
23
|
+
# nyc test coverage
|
24
|
+
.nyc_output
|
25
|
+
|
26
|
+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
27
|
+
.grunt
|
28
|
+
|
29
|
+
# Bower dependency directory (https://bower.io/)
|
30
|
+
bower_components
|
31
|
+
|
32
|
+
# node-waf configuration
|
33
|
+
.lock-wscript
|
34
|
+
|
35
|
+
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
36
|
+
build/Release
|
37
|
+
|
38
|
+
# Dependency directories
|
39
|
+
node_modules/
|
40
|
+
jspm_packages/
|
41
|
+
|
42
|
+
# Typescript v1 declaration files
|
43
|
+
typings/
|
44
|
+
|
45
|
+
# Optional npm cache directory
|
46
|
+
.npm
|
47
|
+
|
48
|
+
# Optional eslint cache
|
49
|
+
.eslintcache
|
50
|
+
|
51
|
+
# Optional REPL history
|
52
|
+
.node_repl_history
|
53
|
+
|
54
|
+
# Output of 'npm pack'
|
55
|
+
*.tgz
|
56
|
+
|
57
|
+
# dotenv environment variables file
|
58
|
+
.env
|
59
|
+
|
60
|
+
# gatsby files
|
61
|
+
.cache/
|
62
|
+
public
|
63
|
+
|
64
|
+
# Mac files
|
65
|
+
.DS_Store
|
66
|
+
|
67
|
+
# Yarn
|
68
|
+
yarn-error.log
|
69
|
+
.pnp/
|
70
|
+
.pnp.js
|
71
|
+
# Yarn Integrity file
|
72
|
+
.yarn-integrity
|
73
|
+
deploy.js
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Ignore all files from .gitignore
|
2
|
+
# echo .git > .dockerignore && cat .gitignore >> .dockerignore
|
3
|
+
|
4
|
+
/log/*
|
5
|
+
/tmp/*
|
6
|
+
|
7
|
+
.byebug_history
|
8
|
+
|
9
|
+
volumes
|
10
|
+
|
11
|
+
|
12
|
+
public/packs
|
13
|
+
public/packs-test
|
14
|
+
public/uploads
|
15
|
+
|
16
|
+
node_modules
|
17
|
+
coverage
|
18
|
+
yarn-error.log
|
19
|
+
.DS_Store
|
20
|
+
.git
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
2
|
+
# echo .git > .dockerignore && cat .gitignore >> .dockerignore
|
3
|
+
|
4
|
+
.git
|
5
|
+
Dockerfile
|
6
|
+
|
7
|
+
# dependencies
|
8
|
+
/node_modules
|
9
|
+
/.pnp
|
10
|
+
.pnp.js
|
11
|
+
|
12
|
+
# testing
|
13
|
+
/coverage
|
14
|
+
|
15
|
+
# production
|
16
|
+
/build
|
17
|
+
|
18
|
+
# misc
|
19
|
+
.DS_Store
|
20
|
+
.env.local
|
21
|
+
.env.development.local
|
22
|
+
.env.test.local
|
23
|
+
.env.production.local
|
24
|
+
|
25
|
+
npm-debug.log*
|
26
|
+
yarn-debug.log*
|
27
|
+
yarn-error.log*
|
@@ -0,0 +1,114 @@
|
|
1
|
+
.git
|
2
|
+
.env
|
3
|
+
############################
|
4
|
+
# OS X
|
5
|
+
############################
|
6
|
+
|
7
|
+
.DS_Store
|
8
|
+
.AppleDouble
|
9
|
+
.LSOverride
|
10
|
+
Icon
|
11
|
+
.Spotlight-V100
|
12
|
+
.Trashes
|
13
|
+
._*
|
14
|
+
|
15
|
+
|
16
|
+
############################
|
17
|
+
# Linux
|
18
|
+
############################
|
19
|
+
|
20
|
+
*~
|
21
|
+
|
22
|
+
|
23
|
+
############################
|
24
|
+
# Windows
|
25
|
+
############################
|
26
|
+
|
27
|
+
Thumbs.db
|
28
|
+
ehthumbs.db
|
29
|
+
Desktop.ini
|
30
|
+
$RECYCLE.BIN/
|
31
|
+
*.cab
|
32
|
+
*.msi
|
33
|
+
*.msm
|
34
|
+
*.msp
|
35
|
+
|
36
|
+
|
37
|
+
############################
|
38
|
+
# Packages
|
39
|
+
############################
|
40
|
+
|
41
|
+
*.7z
|
42
|
+
*.csv
|
43
|
+
*.dat
|
44
|
+
*.dmg
|
45
|
+
*.gz
|
46
|
+
*.iso
|
47
|
+
*.jar
|
48
|
+
*.rar
|
49
|
+
*.tar
|
50
|
+
*.zip
|
51
|
+
*.com
|
52
|
+
*.class
|
53
|
+
*.dll
|
54
|
+
*.exe
|
55
|
+
*.o
|
56
|
+
*.seed
|
57
|
+
*.so
|
58
|
+
*.swo
|
59
|
+
*.swp
|
60
|
+
*.swn
|
61
|
+
*.swm
|
62
|
+
*.out
|
63
|
+
*.pid
|
64
|
+
|
65
|
+
|
66
|
+
############################
|
67
|
+
# Logs and databases
|
68
|
+
############################
|
69
|
+
|
70
|
+
.tmp
|
71
|
+
*.log
|
72
|
+
*.sql
|
73
|
+
*.sqlite
|
74
|
+
*.sqlite3
|
75
|
+
|
76
|
+
|
77
|
+
############################
|
78
|
+
# Misc.
|
79
|
+
############################
|
80
|
+
|
81
|
+
*#
|
82
|
+
ssl
|
83
|
+
.idea
|
84
|
+
nbproject
|
85
|
+
public/uploads/*
|
86
|
+
!public/uploads/.gitkeep
|
87
|
+
|
88
|
+
############################
|
89
|
+
# Node.js
|
90
|
+
############################
|
91
|
+
|
92
|
+
lib-cov
|
93
|
+
lcov.info
|
94
|
+
pids
|
95
|
+
logs
|
96
|
+
results
|
97
|
+
node_modules
|
98
|
+
.node_history
|
99
|
+
|
100
|
+
|
101
|
+
############################
|
102
|
+
# Tests
|
103
|
+
############################
|
104
|
+
|
105
|
+
testApp
|
106
|
+
coverage
|
107
|
+
|
108
|
+
############################
|
109
|
+
# Strapi
|
110
|
+
############################
|
111
|
+
|
112
|
+
exports
|
113
|
+
.cache
|
114
|
+
build
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockerize-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Savignano
|
@@ -39,8 +39,10 @@ files:
|
|
39
39
|
- lib/dockerize_stack.rb
|
40
40
|
- lib/thor_extend.rb
|
41
41
|
- lib/version.rb
|
42
|
+
- templates/gatsby/.dockerignore.erb
|
42
43
|
- templates/gatsby/Dockerfile.erb
|
43
44
|
- templates/gatsby/nginx/conf.d/default.conf
|
45
|
+
- templates/rails/.dockerignore.erb
|
44
46
|
- templates/rails/Dockerfile.erb
|
45
47
|
- templates/rails/config/database-docker.yml.erb
|
46
48
|
- templates/rails/docker-compose.yml.erb
|
@@ -60,8 +62,10 @@ files:
|
|
60
62
|
- templates/rails/nginx/entrypoint.sh
|
61
63
|
- templates/rails/nginx/etc/nginx/conf.d/default.conf
|
62
64
|
- templates/rails/nginx/etc/nginx/nginx.conf
|
65
|
+
- templates/react/.dockerignore.erb
|
63
66
|
- templates/react/Dockerfile.erb
|
64
67
|
- templates/react/nginx/conf.d/default.conf.template
|
68
|
+
- templates/strapi/.dockerignore.erb
|
65
69
|
- templates/strapi/Dockerfile.erb
|
66
70
|
homepage: https://github.com/MiguelSavignano/dockerize-stack
|
67
71
|
licenses:
|