dockerize-stack 0.5.1 → 0.5.2
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/rails.rb +1 -1
- data/lib/thor_extend.rb +2 -2
- data/lib/version.rb +1 -1
- data/templates/rails/dockerignore.erb +20 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87574780f266391e269351522bcb8014e0ede375bdee86b340dc1bc43e1ac405
|
4
|
+
data.tar.gz: 8b206957467b456ffacc59612c7a15845cac8fca5e8234a673c016601ad96146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6cd4e4e84de9ef3e8042f016af769246d3926ce17657a7d77c9c9bf79a42f6dc6fd1d451118d8a4a843208f8f42f8e8d03a282edb145c31d924bd17461c8777
|
7
|
+
data.tar.gz: 26c5b75ea1dca073fc4683ce4923779a503e4050cb6ab683ac9b75de3563803ce5ca3dc7f4341021eee45979305ec543f71fac0916df7945df4af0a075fd82be
|
@@ -32,7 +32,7 @@ module DockerizeStack
|
|
32
32
|
render_template 'entrypoint.sh.erb'
|
33
33
|
render_template 'docker-compose.yml.erb'
|
34
34
|
render_template 'config/database-docker.yml.erb'
|
35
|
-
render_template '
|
35
|
+
render_template 'dockerignore.erb', '.dockerignore'
|
36
36
|
|
37
37
|
puts 'Update your database.yml based in database-docker.yml'
|
38
38
|
end
|
data/lib/thor_extend.rb
CHANGED
@@ -2,8 +2,8 @@ module ThorActionsExtend
|
|
2
2
|
include Thor::Actions
|
3
3
|
|
4
4
|
private
|
5
|
-
def render_template(path)
|
6
|
-
template path, "#{@workdir}/#{
|
5
|
+
def render_template(path, target_path = path)
|
6
|
+
template path, "#{@workdir}/#{target_path.gsub('.erb', '')}"
|
7
7
|
end
|
8
8
|
|
9
9
|
def ask_with_default(question = '', default = '')
|
data/lib/version.rb
CHANGED
@@ -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
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Savignano
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- templates/rails/Dockerfile.erb
|
43
43
|
- templates/rails/config/database-docker.yml.erb
|
44
44
|
- templates/rails/docker-compose.yml.erb
|
45
|
+
- templates/rails/dockerignore.erb
|
45
46
|
- templates/rails/entrypoint.sh.erb
|
46
47
|
- templates/rails/kubernetes/scripts/deploy.sh
|
47
48
|
- templates/rails/kubernetes/scripts/get-secrets.sh
|