stack_car 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stack_car/cli.rb +4 -3
- data/lib/stack_car/version.rb +1 -1
- data/templates/.env.erb +1 -1
- data/templates/docker-compose-ci.yml.erb +19 -4
- data/templates/docker-compose-prod.yml.erb +2 -2
- data/templates/docker-compose.yml.erb +19 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5c18ca3a905df3da0c9039321540b89745d2423
|
|
4
|
+
data.tar.gz: 73bb0eccbcf82a7bd062c480eeb4444976c71195
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f0d974686a5500bf35d12c4ec3f69f1c1b5093e82ea8105529ab386c7b664c633ffc927398c4807a98674481d3f3ebe8b77ff05bb5a1425a4360fcd1137eff1
|
|
7
|
+
data.tar.gz: 550714d0683a6f3f0b7abd35b8b9899a7a4143066c450fb73adfcc88538f57c9da72c41808c131be270f14e2dbdb0da5f2dd812a76e184f05cb7b586177785e6
|
data/lib/stack_car/cli.rb
CHANGED
|
@@ -52,7 +52,7 @@ module StackCar
|
|
|
52
52
|
run("docker-compose pull #{options[:service]} #{args.join(' ')}")
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
method_option :service, default: '
|
|
55
|
+
method_option :service, default: '', type: :string, aliases: '-s'
|
|
56
56
|
desc "ps ARGS", "wraps docker-compose pull web unless --service is used to specify"
|
|
57
57
|
def ps(*args)
|
|
58
58
|
run("docker-compose ps #{options[:service]} #{args.join(' ')}")
|
|
@@ -124,7 +124,8 @@ module StackCar
|
|
|
124
124
|
method_option :deploy, default: false, type: :boolean, aliases: '-d'
|
|
125
125
|
method_option :rancher, default: false, type: :boolean, aliases: '-dr'
|
|
126
126
|
method_option :sidekiq, default: false, type: :boolean, aliases: '-sq' # TODO
|
|
127
|
-
method_option :mongodb, default: false, type: :boolean, aliases: '-mg'
|
|
127
|
+
method_option :mongodb, default: false, type: :boolean, aliases: '-mg'
|
|
128
|
+
method_option :memcached, default: false, type: :boolean, aliases: '-mc'
|
|
128
129
|
desc 'dockerize DIR', 'Will copy the docker tempates in to your project, see options for supported dependencies'
|
|
129
130
|
long_desc <<-DOCKERIZE
|
|
130
131
|
|
|
@@ -171,7 +172,7 @@ module StackCar
|
|
|
171
172
|
protected
|
|
172
173
|
def compose_depends(*excludes)
|
|
173
174
|
@compose_depends = []
|
|
174
|
-
services = [:postgres, :mysql, :elasticsearch, :solr, :redis, :delayed_job] - excludes
|
|
175
|
+
services = [:postgres, :mysql, :elasticsearch, :solr, :redis, :mongodb, :memcached, :delayed_job] - excludes
|
|
175
176
|
services.each do |service|
|
|
176
177
|
if options[service]
|
|
177
178
|
@compose_depends << " - #{service}"
|
data/lib/stack_car/version.rb
CHANGED
data/templates/.env.erb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
version: '2'
|
|
1
|
+
version: '2.1'
|
|
2
2
|
services:
|
|
3
3
|
<% if options[:postgres] -%>
|
|
4
4
|
postgres:
|
|
@@ -51,6 +51,20 @@ services:
|
|
|
51
51
|
volumes:
|
|
52
52
|
- 'redis:/var/lib/redis/data'
|
|
53
53
|
<% end -%>
|
|
54
|
+
<% if options[:mongodb] -%>
|
|
55
|
+
mongodb:
|
|
56
|
+
image: mongo:2.6.12
|
|
57
|
+
volumes:
|
|
58
|
+
- 'mongodb:/data/db'
|
|
59
|
+
ports:
|
|
60
|
+
- "27017"
|
|
61
|
+
<% end -%>
|
|
62
|
+
<% if options[:memcached] -%>
|
|
63
|
+
memcached:
|
|
64
|
+
image: memcached
|
|
65
|
+
ports:
|
|
66
|
+
- "11211"
|
|
67
|
+
<% end -%>
|
|
54
68
|
<% if options[:fcrepo] -%>
|
|
55
69
|
fcrepo:
|
|
56
70
|
image: botimer/fcrepo:4.5.1
|
|
@@ -60,7 +74,7 @@ services:
|
|
|
60
74
|
- "8080"
|
|
61
75
|
<% end -%>
|
|
62
76
|
main:
|
|
63
|
-
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG}"
|
|
77
|
+
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG:-master}"
|
|
64
78
|
volumes:
|
|
65
79
|
- .:/app
|
|
66
80
|
env_file:
|
|
@@ -107,6 +121,7 @@ volumes:
|
|
|
107
121
|
<% if options[:redis] -%>
|
|
108
122
|
redis:
|
|
109
123
|
<% end -%>
|
|
110
|
-
|
|
111
|
-
|
|
124
|
+
<% if options[:mongodb] -%>
|
|
125
|
+
mongodb:
|
|
126
|
+
<% end -%>
|
|
112
127
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
version: '2'
|
|
1
|
+
version: '2.1'
|
|
2
2
|
services:
|
|
3
3
|
web:
|
|
4
|
-
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG}"
|
|
4
|
+
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG:-master}"
|
|
5
5
|
command: bash -c "bundle exec rake assets:precompile db:migrate && bundle exec passenger start -p 3000 -b '0.0.0.0'""
|
|
6
6
|
environment:
|
|
7
7
|
- RAILS_ENV=production
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
version: '2'
|
|
1
|
+
version: '2.1'
|
|
2
2
|
services:
|
|
3
3
|
<% if options[:postgres] -%>
|
|
4
4
|
postgres:
|
|
@@ -51,6 +51,20 @@ services:
|
|
|
51
51
|
volumes:
|
|
52
52
|
- 'redis:/var/lib/redis/data'
|
|
53
53
|
<% end -%>
|
|
54
|
+
<% if options[:mongodb] -%>
|
|
55
|
+
mongodb:
|
|
56
|
+
image: mongo:2.6.12
|
|
57
|
+
volumes:
|
|
58
|
+
- 'mongodb:/data/db'
|
|
59
|
+
ports:
|
|
60
|
+
- "27017"
|
|
61
|
+
<% end -%>
|
|
62
|
+
<% if options[:memcached] -%>
|
|
63
|
+
memcached:
|
|
64
|
+
image: memcached
|
|
65
|
+
ports:
|
|
66
|
+
- "11211"
|
|
67
|
+
<% end -%>
|
|
54
68
|
<% if options[:fcrepo] -%>
|
|
55
69
|
fcrepo:
|
|
56
70
|
image: botimer/fcrepo:4.5.1
|
|
@@ -61,7 +75,7 @@ services:
|
|
|
61
75
|
<% end -%>
|
|
62
76
|
main:
|
|
63
77
|
build: .
|
|
64
|
-
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG}"
|
|
78
|
+
image: "${REGISTRY_HOST}/${REGISTRY_URI}:${TAG:-master}"
|
|
65
79
|
volumes:
|
|
66
80
|
- .:/app
|
|
67
81
|
env_file:
|
|
@@ -104,3 +118,6 @@ volumes:
|
|
|
104
118
|
<% if options[:redis] -%>
|
|
105
119
|
redis:
|
|
106
120
|
<% end -%>
|
|
121
|
+
<% if options[:mongodb] -%>
|
|
122
|
+
mongodb:
|
|
123
|
+
<% end -%>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stack_car
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rob Kaufman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|