dry-stack 0.0.70 → 0.0.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/stack.drs +5 -0
- data/lib/dry-stack/stack.rb +3 -3
- data/lib/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: '068cf557c3a44aece001366bcd147616d4e6aafc3db1f6941a7b0b79c3db6799'
|
4
|
+
data.tar.gz: f73cdb06ddd54b2ea5b9744257172a196af3b34a4b08039580e4391e59959f67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf9793fd47e3c90114bf80c0d05fc07ca29e8ff8c28b017a86da6b1a37887492926c350b19f7fdc6e957642a87485c043e2e6f737fcb0117848335e5e6c6613
|
7
|
+
data.tar.gz: 1d8bcbc7a6f7105196686f12a9cdde4ddfc0ee5f37fa75be96b79d1c3c9ba41db7c9a4a116ea5cf07a7a547b6e1a2a84e39fd124d57b6d3138e58f8843a87716
|
data/bin/stack.drs
CHANGED
@@ -9,6 +9,11 @@ SwarmDeploy :sky_gates do
|
|
9
9
|
env REGISTRY_HOST: '10.100.0.2:5000'
|
10
10
|
end
|
11
11
|
|
12
|
+
Deploy [:admin, :operator], labels: [
|
13
|
+
'traefik.http.middlewares.%{service-name}_auth.basicauth.users=admin:$apr1$i7hdbc9g$Rkocxo9snhmuESvUg0TTv/',
|
14
|
+
"traefik.http.routers.%{service-name}.middlewares=%{service-name}_auth"
|
15
|
+
]
|
16
|
+
|
12
17
|
PublishPorts admin: 4000, operator: 4001, navigator: 4002, reports: 7000 # mode: ingress, protocol: tcp
|
13
18
|
|
14
19
|
Service :admin, image: 'frontend', env: {APP: 'admin'}, ports: 5000
|
data/lib/dry-stack/stack.rb
CHANGED
@@ -182,16 +182,16 @@ module Dry
|
|
182
182
|
service[:environment].merge! STACK_NAME: @name.to_s, STACK_SERVICE_NAME: name.to_s
|
183
183
|
service[:environment].transform_values! { !!_1 == _1 ? _1.to_s : _1 } # (false|true) to string
|
184
184
|
|
185
|
+
service[:deploy].merge! @deploy[name] if @deploy[name]
|
186
|
+
|
185
187
|
hash = {'service-name': service_name, 'stack-name': @name}
|
186
188
|
hash.default = ''
|
187
189
|
original_verbosity = $VERBOSE
|
188
190
|
$VERBOSE = nil
|
189
|
-
service[:deploy][:labels].map
|
191
|
+
service[:deploy][:labels] = service[:deploy][:labels].map{ _1 % hash }
|
190
192
|
service[:environment].transform_values!{ _1.is_a?(String) ? (_1 % hash) : _1 }
|
191
193
|
$VERBOSE = original_verbosity
|
192
194
|
|
193
|
-
service[:deploy].merge! @deploy[name] if @deploy[name]
|
194
|
-
|
195
195
|
pp_i = @publish_ports[name]&.reject { _1.class == String }
|
196
196
|
pp_s = @publish_ports[name]&.select { _1.class == String }
|
197
197
|
service[:ports] = pp_i&.zip(service[:ports] || pp_i)&.map { _1.join ':' }
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artyom B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|