orchestration 0.2.5 → 0.2.6
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d452624b11c2d2502ad8f063deb3cdf860d471a
|
4
|
+
data.tar.gz: 2d5fc17927a310c894a9f0ea894164d300bc512b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c6ad0de94e5d530ff11d82e5e5c6ddfc24e023bc29abce9daf99c1eaf55160dfea9b6d6e39290dd760b6f28884cfee5df31f09d411cbf12b4548e06cffc9530
|
7
|
+
data.tar.gz: ea8d5d8ea15eb9754e69a2e74b69de1e124b34143342ba3edf3b33f39c37b5ab0fda1d66b8be2659e04c198df965c77dec46d8c28596fe662525b176df61f9ab
|
data/README.md
CHANGED
@@ -19,15 +19,19 @@ module Orchestration
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def local_port
|
22
|
-
_host, _, port =
|
23
|
-
.fetch('clients')
|
24
|
-
.fetch('default')
|
22
|
+
_host, _, port = clients.fetch('default')
|
25
23
|
.fetch('hosts')
|
26
24
|
.first
|
27
25
|
.partition(':')
|
28
26
|
port.empty? ? remote_port : port
|
29
27
|
end
|
30
28
|
|
29
|
+
def clients
|
30
|
+
@config.settings.fetch('clients')
|
31
|
+
rescue KeyError
|
32
|
+
@config.settings.fetch('sessions')
|
33
|
+
end
|
34
|
+
|
31
35
|
def remote_port
|
32
36
|
Orchestration::Services::Mongo::PORT
|
33
37
|
end
|
@@ -57,21 +57,23 @@ wait-rabbitmq:
|
|
57
57
|
|
58
58
|
docker: build push
|
59
59
|
|
60
|
+
GIT_BRANCH:=BRANCH:=$(if $(BRANCH),$(BRANCH),$(shell git rev-parse --abbrev-ref HEAD))
|
61
|
+
|
60
62
|
build:
|
61
63
|
@echo "Preparing build."
|
62
64
|
@mkdir -p ./docker/.build
|
63
|
-
@git show
|
64
|
-
@git show
|
65
|
+
@git show ${GIT_BRANCH}:./Gemfile > ./docker/Gemfile
|
66
|
+
@git show ${GIT_BRANCH}:./Gemfile.lock > ./docker/Gemfile.lock
|
65
67
|
@echo "Building..."
|
66
|
-
@git archive --format tar.gz -o docker/.build/context.tar.gz
|
68
|
+
@git archive --format tar.gz -o docker/.build/context.tar.gz ${GIT_BRANCH}
|
67
69
|
@docker build \
|
68
70
|
--build-arg BUNDLE_GITHUB__COM \
|
69
71
|
--build-arg BUNDLE_BITBUCKET__ORG \
|
70
72
|
-t $(shell bin/rake orchestration:docker:username)/<%= app_id %> \
|
71
|
-
-t $(shell bin/rake orchestration:docker:username)/<%= app_id %>:$(shell git rev-parse --short --verify
|
73
|
+
-t $(shell bin/rake orchestration:docker:username)/<%= app_id %>:$(shell git rev-parse --short --verify ${GIT_BRANCH}) \
|
72
74
|
./docker/
|
73
75
|
@echo "Build complete."
|
74
76
|
|
75
|
-
push: VERSION := $(shell git rev-parse --short --verify
|
77
|
+
push: VERSION := $(shell git rev-parse --short --verify ${GIT_BRANCH})
|
76
78
|
push:
|
77
79
|
docker push $(shell bin/rake orchestration:docker:username)/<%= app_id %>:${VERSION}
|
data/orchestration.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_runtime_dependency 'colorize', '~> 0.8.1'
|
28
28
|
spec.add_runtime_dependency 'erubis', '~> 2.7'
|
29
29
|
spec.add_runtime_dependency 'i18n', '>= 0.5'
|
30
|
-
spec.add_runtime_dependency 'unicorn'
|
30
|
+
spec.add_runtime_dependency 'unicorn', '~> 5.4'
|
31
31
|
|
32
32
|
spec.add_development_dependency 'activerecord', '~> 5.2'
|
33
33
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: unicorn
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.4'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '5.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activerecord
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|