shippy 0.1.5 → 0.1.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
  SHA256:
3
- metadata.gz: e28ff568f47b1c6ab79cd83a7f136a07187f9966d71fc134200396f9a7f235c4
4
- data.tar.gz: c3d4d946f98cfc6c993e00ff3e5bc685261a34e05bad9b1e9e7c776a5fe26bf2
3
+ metadata.gz: e6045bbdd9f3d3ec7b83b88dc28809c7d3f5391c421b1d8972793e468eb23486
4
+ data.tar.gz: 63a4e730a4a4637b5d8f4eb13be9330ec6058f622ea17d4bc4cea6e98be26355
5
5
  SHA512:
6
- metadata.gz: c964e8762f426cae3ed46adb35c117dc327a15f9a378a39015ebe30b17bc045418a6bbbe786988f48884cb96e71863436693fd53267ca6fb9662efd272b045af
7
- data.tar.gz: e87db690c30bb9939114fd95a06f315c0356f79efceff5353baaf99ea9cadabfe54d0e89465f7f5e5c0d8c7cc43cd3d39e024123a8803b8581a310542fc7d4c1
6
+ metadata.gz: 1fbee88e84f54ad80aa02e4337586a0f5cba380ec20185e8b3fa45bbcb8ad927accef5e03fdda69b2d61a096d62d544100a51faef78e42ac991e81de217efba8
7
+ data.tar.gz: bef7b11ba7a7219c229f5da67d3caad8a66405514ed62d5c453051740aa9defe4875597866288b4ab7b7cc6bbd4829bc548b8518d53df863acc16ace04b8649d
@@ -56,17 +56,18 @@ module Shippy
56
56
  networks { ["lan_access"] }
57
57
  end
58
58
 
59
- def use_traefik(name:, alt: nil, port: nil, healthcheck: nil)
59
+ def use_traefik(name:, alt: nil, port: nil, healthcheck: false)
60
60
  labels do
61
61
  all_labels = ["traefik.enable=true"]
62
- all_labels += build_traefik_labels(name: name, port: port, healthcheck: healthcheck)
63
- all_labels += build_traefik_labels(name: alt, port: port, healthcheck: healthcheck) if alt
62
+ all_labels += build_traefik_labels(name: name, port: port)
63
+ all_labels += build_traefik_labels(name: alt, port: port) if alt
64
+ all_labels += build_ihxator_labels(service: "https://#{name}.#{wildcard_domain}") if healthcheck
64
65
 
65
66
  all_labels
66
67
  end
67
68
  end
68
69
 
69
- def build_traefik_labels(name:, port: nil, healthcheck: nil)
70
+ def build_traefik_labels(name:, port: nil)
70
71
  [
71
72
  "traefik.http.routers.websecure-#{name}.rule=Host(`#{name}.#{wildcard_domain}`)",
72
73
  "traefik.http.routers.websecure-#{name}.entrypoints=websecure",
@@ -92,14 +93,16 @@ module Shippy
92
93
  labels << "traefik.http.routers.web-#{name}.service=#{name}"
93
94
  labels << "traefik.http.routers.#{name}-local.service=#{name}"
94
95
  end
95
-
96
- if healthcheck
97
- labels << "traefik.http.services.#{name}.loadbalancer.healthcheck.path=#{healthcheck}"
98
- labels << "traefik.http.services.#{name}.loadbalancer.healthcheck.interval=5s"
99
- end
100
96
  end
101
97
  end
102
98
 
99
+ def build_ihxator_labels(service:)
100
+ [
101
+ "ihxator.enable=true",
102
+ "ihxator.service=#{service}"
103
+ ]
104
+ end
105
+
103
106
  def secrets(name)
104
107
  @app.secrets(name)
105
108
  end
@@ -1,3 +1,3 @@
1
1
  module Shippy
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shippy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Bobin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-17 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport