orchestration 0.3.16 → 0.3.17

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: fd921565b9b20b945732f3acca684e796a34b34e1ea4d114ae32f08be13a9154
4
- data.tar.gz: 35215ab0b5e79a4cd0010013c32edfac740040cdf3d781c1e68c9320c5ff5773
3
+ metadata.gz: a45477bd5cd5d3aaf948247ed294c24509c59b55c3244d2bdb34d7adb50bf7d8
4
+ data.tar.gz: cc1be97aec363dabbe212d4bc5160651ec78b2f46ed3fe5461950c8392522adc
5
5
  SHA512:
6
- metadata.gz: 8e18cd088528a72508ddf360cedcb1ccb2a8a2ead7988c63b023bb5540c036eda8012d096cc4495d9c902a6e6e032ef076ebe94117c9fb600679c96b21af39ea
7
- data.tar.gz: 6ef64fcd29bf6e962b311008bf9473196fda122bca958e2a8863740248074b65c8b6934b8518d72da8b2d55855f3d7df8c6bc7229130727d6e28e021c84ffe04
6
+ metadata.gz: e151308a54ac3048249820773ee5c2657fd1e6f1cfa2d8429ccfae1782bb77bc6413dcdd55a010004fc6b869eae9e057f89b52101eb9af5e9c236d34c08ccb49
7
+ data.tar.gz: 472e8a63dbd0277c2bc6a5e6cfc5c24ab69b27a132109f08f097288c8958c6ad0f7c1565c60db5b6075f4ee7dc1eaa49b1c7d46908995cb7b7e4c55cccb4c2ca
data/README.md CHANGED
@@ -11,7 +11,7 @@ _Orchestration_ is a toolkit for testing, building, and deploying _Ruby_ (includ
11
11
  Add _Orchestration_ to your Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'orchestration', '~> 0.3.16'
14
+ gem 'orchestration', '~> 0.3.17'
15
15
  ```
16
16
 
17
17
  Install:
@@ -33,11 +33,11 @@ en:
33
33
  settings:
34
34
  docker:
35
35
  organization:
36
- description: "Docker registry organization/username"
36
+ description: "Registry organization/username"
37
37
  prompt: "organization"
38
38
 
39
39
  repository:
40
- description: "Project name (will be used as Docker registry repository)"
40
+ description: "Project name/Docker repository name"
41
41
  prompt: "project name"
42
42
 
43
43
  rake:
@@ -10,7 +10,7 @@ module Orchestration
10
10
 
11
11
  def definition
12
12
  {
13
- 'image' => '${DOCKER_ORGANIZATION}/${DOCKER_REPOSITORY}',
13
+ 'image' => image,
14
14
  'environment' => environment,
15
15
  'ports' => ports
16
16
  }
@@ -18,6 +18,10 @@ module Orchestration
18
18
 
19
19
  private
20
20
 
21
+ def image
22
+ '${DOCKER_ORGANIZATION}/${DOCKER_REPOSITORY}'
23
+ end
24
+
21
25
  def environment
22
26
  {
23
27
  'RAILS_LOG_TO_STDOUT' => '1',
@@ -1,5 +1,2 @@
1
1
  # Your application will be available on this port when deployed to the Swarm:
2
2
  LISTEN_PORT=3000
3
-
4
- # Comma-separated list of hostnames your application will be available on:
5
- VIRTUAL_HOST=localhost
@@ -135,7 +135,10 @@ migrate:
135
135
  .PHONY: migrate-container
136
136
  migrate-container:
137
137
  @echo "[app] Running migrations..."
138
- @${compose} run --rm app make migrate env=${env}
138
+ ifdef env_file
139
+ @cp ${env_file} ./.env
140
+ endif
141
+ ${compose} run --rm app bundle exec rake db:migrate
139
142
  @echo "[app] Migrations complete."
140
143
 
141
144
  ### Service healthcheck commands ###
@@ -169,6 +172,10 @@ ifeq (${env},$(filter ${env},test development))
169
172
  @${rake} orchestration:rabbitmq:wait
170
173
  endif
171
174
 
175
+ .PHONY: wait-app
176
+ wait-app:
177
+ @# no-op
178
+
172
179
  ### Docker build commands ###
173
180
 
174
181
  .PHONY: build
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orchestration
4
- VERSION = '0.3.16'
4
+ VERSION = '0.3.17'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orchestration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize