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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 923a65d99f63b8c97495fb9d5de2a22a04409cf4551e01726e985c6874529d90
4
- data.tar.gz: 827ffa48f1edb1a5a9e483d142e4595fe5b72d2c4a870a75e1dfd9f78c890230
3
+ metadata.gz: 87574780f266391e269351522bcb8014e0ede375bdee86b340dc1bc43e1ac405
4
+ data.tar.gz: 8b206957467b456ffacc59612c7a15845cac8fca5e8234a673c016601ad96146
5
5
  SHA512:
6
- metadata.gz: 3a91d5ab9705810e884741489e2b8d0dc745a409091e470013b1a4d74fda2e1cf5dfdb2d4156eea6fe80b876e7c4e34470301280cfb5022eaae1ed43890bdc80
7
- data.tar.gz: a0d02bca85d35a4e52ed6728d51aa9fbe01d975184bb49d014874161ad79fedfe64d1749f376ac7cd509b5558a668f00fd4f048a306b46de860fb7719ab9861a
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 '.dockerignore.erb'
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}/#{path.gsub('.erb', '')}"
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
@@ -1,3 +1,3 @@
1
1
  module DockerizeStack
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -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.1
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