orchestration 0.4.3 → 0.4.4
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 +22 -4
- data/lib/orchestration/templates/orchestration.mk.erb +4 -3
- 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: 73e3bd1a53561ff23639b91df25206eeba692032b889923c5f2c1bed31fdff79
|
|
4
|
+
data.tar.gz: e78fd68cbf8882b150a6299ef8c1beab516ed4e60e95fd25d28d08d45ca699a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c11c6c27f1cd7db3777115706eb83ff31a44a1a26074bfd0f91d95d4c0403dd4f474c0adfe390d3c4f9c6a1d55e273d0c7603e7eeed9697dbacac89e517593ce
|
|
7
|
+
data.tar.gz: d1a156ad2f061fa02dbd08665a47acc9de28f95002d470bd7a44379483516b87564aecaea35f1add0439a339a1907c6f230ed5a9d0dabb3ff38a6415c2315b93
|
data/README.md
CHANGED
|
@@ -29,7 +29,7 @@ The below screenshot demonstrates _Orchestration_ being installed in a brand new
|
|
|
29
29
|
Add _Orchestration_ to your Gemfile:
|
|
30
30
|
|
|
31
31
|
```ruby
|
|
32
|
-
gem 'orchestration', '~> 0.4.
|
|
32
|
+
gem 'orchestration', '~> 0.4.4'
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
Install:
|
|
@@ -178,14 +178,32 @@ Note that _Orchestration_ will wait for all services to become fully available (
|
|
|
178
178
|
|
|
179
179
|
### Deployment to Docker Swarm
|
|
180
180
|
|
|
181
|
-
To deploy your application to _Docker Swarm_:
|
|
181
|
+
To deploy your application to a local _Docker Swarm_ use:
|
|
182
|
+
```
|
|
183
|
+
make deploy
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### Deploy to a remote swarm
|
|
187
|
+
|
|
188
|
+
To connect via _SSH_ to a remote swarm and deploy, pass the `manager` parameter:
|
|
182
189
|
```
|
|
183
190
|
make deploy manager=user@manager.swarm.example.com
|
|
184
191
|
```
|
|
185
192
|
|
|
186
|
-
|
|
193
|
+
#### Use a custom stack name
|
|
194
|
+
|
|
195
|
+
The [_Docker_ stack](https://docs.docker.com/engine/reference/commandline/stack/) name defaults to the name of your repository (as defined in `.orchesration.yml`) and the _Rails_ environment, e.g. `anvil_production`.
|
|
196
|
+
|
|
197
|
+
To override this default, pass the `project_name` parameter:
|
|
198
|
+
```
|
|
199
|
+
make deploy project_name=acme_anvil_production
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Use a custom `.env` file
|
|
203
|
+
|
|
204
|
+
Specify a path to a local `.env` file (see [Docker Compose documentation](https://docs.docker.com/compose/environment-variables/#the-env-file)):
|
|
187
205
|
```
|
|
188
|
-
make deploy env_file=/path/to/.env
|
|
206
|
+
make deploy env_file=/path/to/.env
|
|
189
207
|
```
|
|
190
208
|
|
|
191
209
|
Note that the following two variables _must_ be set in the relevant `.env` file (will look in the current working directory if no path provided):
|
|
@@ -204,11 +204,12 @@ endif
|
|
|
204
204
|
ifndef manager
|
|
205
205
|
@$(call println_error,'Missing `manager` parameter: `make deploy manager=swarm-manager.example.com`')
|
|
206
206
|
endif
|
|
207
|
-
|
|
207
|
+
ifeq (,${project_name})
|
|
208
208
|
deploy: project_name = ${docker_repository}_${env}
|
|
209
|
+
endif
|
|
209
210
|
deploy: path := $(shell mktemp -d)
|
|
210
|
-
deploy: RAILS_ENV
|
|
211
|
-
deploy: RACK_ENV
|
|
211
|
+
deploy: RAILS_ENV := ${env}
|
|
212
|
+
deploy: RACK_ENV := ${env}
|
|
212
213
|
deploy: DOCKER_TAG = ${git_version}
|
|
213
214
|
deploy:
|
|
214
215
|
@$(call println,'${yellow}Deploying stack via${reset} ${green}${manager}${reset} ...') && \
|
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.4.
|
|
4
|
+
version: 0.4.4
|
|
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-
|
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: database_url
|