stack_car 0.2.7 → 0.2.8

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
  SHA1:
3
- metadata.gz: 95e9a766c53dc60137049a34e4383dd1be2b58e4
4
- data.tar.gz: 3a595fbf2e5aa3fea2ed40d7b31c37d96529c924
3
+ metadata.gz: e5c18ca3a905df3da0c9039321540b89745d2423
4
+ data.tar.gz: 73bb0eccbcf82a7bd062c480eeb4444976c71195
5
5
  SHA512:
6
- metadata.gz: 5f26afb657875cd2a01fea147c36ad340c76f8439b5436c29d43eeaa90a6b494f88feab7844e7022f631748c3387243a3ecb6aed53b7bbd8b650075279185419
7
- data.tar.gz: 2c0be0669b973341047c06fd70965fc7cc0f56e4c4b5587ffe04ed25aae92e8c6266598bf8a2d7eedd526344871aa7c4b3bcd02851e90009216c1eec0a07b347
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: 'web', type: :string, aliases: '-s'
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' # TODO
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}"
@@ -1,3 +1,3 @@
1
1
  module StackCar
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
data/templates/.env.erb CHANGED
@@ -18,4 +18,4 @@ REGISTRY_HOST=registry.gitlab.com
18
18
  REGISTRY_URI=/TODO/<%= @project_name %>
19
19
  SITE_URI=https://TODO.com
20
20
  <% end -%>
21
- TAG=`git branch | grep \* | cut -d ' ' -f2-`
21
+ TAG=dev
@@ -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.7
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-14 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler