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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 347130396d5cf0de94694fdc5d5edcce940833d0dd4e7c05726fa218c0669801
4
- data.tar.gz: c62702ddffe13310445c8c830fa5cabb06763ed9ae71477d4e41e15c7f8239c5
3
+ metadata.gz: '068cf557c3a44aece001366bcd147616d4e6aafc3db1f6941a7b0b79c3db6799'
4
+ data.tar.gz: f73cdb06ddd54b2ea5b9744257172a196af3b34a4b08039580e4391e59959f67
5
5
  SHA512:
6
- metadata.gz: 738b139b5a8ead311d1c1445a88418cdf0d31f4c18a6e200515338f32a6dd041c9e324dffb998b3df9f19d8ed1323c34b340027ef3786b6c43152ce27f007973
7
- data.tar.gz: 5f67d76cf8c9d3ebb4b4b8e21dd71d6a420dfa514c955bae2c23dc6d12005d3793587c91895992f767efd18c2d16d884bbd416f39fec995f5535873985336fe6
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
@@ -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!{ _1 % hash }
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
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  class Stack
3
- VERSION = '0.0.70'
3
+ VERSION = '0.0.71'
4
4
  end
5
5
  end
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.70
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-01 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake