orchestration 0.5.7 → 0.5.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/README.md +3 -2
- data/lib/orchestration/templates/orchestration.mk.erb +2 -2
- data/lib/orchestration/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a68a281672878086f5ebc086998c3e37aba04dabaff40b6d677144e59ee6ca4a
|
|
4
|
+
data.tar.gz: f601425345ad35f9b0e5478e62901fbddf91261b3f2f36071d07e365664ec794
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f33f122d8098d2eae2157e94e6c65b2b548d752d1339ab1f83170913264e09b01b2db8e835b5fbee8c48a1cad346622ca4875d0d253f5f0d946801164288a8f2
|
|
7
|
+
data.tar.gz: a34869f47a254f369ca41d487bc13186e367f4671c22d02d503f0a1b8f86557ce26faa712c7dff9db5f44ff7ab01cadbbc579b04670366fc17b986d8f2458d5f
|
data/README.md
CHANGED
|
@@ -27,7 +27,7 @@ The below screenshot demonstrates _Orchestration_ being installed in a brand new
|
|
|
27
27
|
Add _Orchestration_ to your Gemfile:
|
|
28
28
|
|
|
29
29
|
```ruby
|
|
30
|
-
gem 'orchestration', '~> 0.5.
|
|
30
|
+
gem 'orchestration', '~> 0.5.8'
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Install:
|
|
@@ -227,7 +227,7 @@ To connect via _SSH_ to a remote swarm and deploy, pass the `manager` parameter:
|
|
|
227
227
|
make deploy manager=user@manager.swarm.example.com
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
The file `orchestration/docker-compose.production.yml` is created automatically.
|
|
230
|
+
The file `orchestration/docker-compose.production.yml` is created automatically. This file will always be used for deployment, regardless of _Rails_ environment. Other environments should be configured using a separate [`.env` file](#env-file) for each environment.
|
|
231
231
|
|
|
232
232
|
#### Roll back a deployment
|
|
233
233
|
|
|
@@ -262,6 +262,7 @@ networks:
|
|
|
262
262
|
```
|
|
263
263
|
|
|
264
264
|
#### Use a custom `.env` file
|
|
265
|
+
<a name="env-file"></a>
|
|
265
266
|
|
|
266
267
|
Specify a path to a local `.env` file (see [Docker Compose documentation](https://docs.docker.com/compose/environment-variables/#the-env-file)):
|
|
267
268
|
```
|
|
@@ -264,7 +264,7 @@ deploy: RAILS_ENV := ${env}
|
|
|
264
264
|
deploy: RACK_ENV := ${env}
|
|
265
265
|
deploy: DOCKER_TAG = ${git_version}
|
|
266
266
|
deploy: base_vars = DOCKER_ORGANIZATION=${docker_organization} DOCKER_REPOSITORY=${docker_repository} DOCKER_TAG=${git_version}
|
|
267
|
-
deploy: compose_deploy := ${base_vars} COMPOSE_PROJECT_NAME=${project_base} HOST_UID=$(shell id -u) docker-compose ${env_file_option} --project-name ${project_base} -f orchestration/docker-compose
|
|
267
|
+
deploy: compose_deploy := ${base_vars} COMPOSE_PROJECT_NAME=${project_base} HOST_UID=$(shell id -u) docker-compose ${env_file_option} --project-name ${project_base} -f orchestration/docker-compose.production.yml
|
|
268
268
|
deploy: compose_config := ${compose_deploy} config
|
|
269
269
|
deploy: deploy_cmd := echo "$${config}" | ssh "${manager}" "/bin/bash -lc 'cat | docker stack deploy --prune --with-registry-auth -c - ${project_base}'"
|
|
270
270
|
deploy: out_of_sequence_error := rpc error: code = Unknown desc = update out of sequence
|
|
@@ -282,7 +282,7 @@ endif
|
|
|
282
282
|
export config="$$(${compose_config} 2>${stderr})" ; \
|
|
283
283
|
config_exit_code=$$? ; \
|
|
284
284
|
if [[ "$${config_exit_code}" != "0" ]]; then exit ${config_exit_code}; fi ; \
|
|
285
|
-
output="$$(${deploy_cmd} | tee
|
|
285
|
+
output="$$(${deploy_cmd} | tee)" ; \
|
|
286
286
|
deploy_exit_code=$$? ; \
|
|
287
287
|
if [[ "$${deploy_exit_code}" == 0 ]] ; then exit 0 ; fi ; \
|
|
288
288
|
if ! echo "$${output}" | grep -q '${out_of_sequence_error}' ; then exit ${deploy_exit_code} ; fi ; \
|
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.5.
|
|
4
|
+
version: 0.5.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bob Farrell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: database_url
|