harbr 0.1.72 → 0.1.74
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/lib/harbr/container.rb +1 -1
- data/lib/harbr/job.rb +13 -9
- data/lib/harbr/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: 9877634da31a16119ff1d0e5ecfacdc31f24fde43ad9a7480b35bea64d35e6b1
|
|
4
|
+
data.tar.gz: b17a073276840f9ca3afc649890a3fdc9d16a1c79ac8a426b57ec761760ec795
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d156312501011ccfdc8e00413de6c4c43abc9ae301cc41ec931b25d63ef5e7c9f2c5609c8a53fe72c9e0bbc340fe35355b5f9ad437584cc57dd20319e63870a3
|
|
7
|
+
data.tar.gz: aeec78960e4c368d778238d4517691757017be952f230030da96cebc7fe0b48ea86d48b0101d06d7e8f6b5e592a773adfa98f8fa6f1dd111255c381a61592a31
|
data/lib/harbr/container.rb
CHANGED
data/lib/harbr/job.rb
CHANGED
|
@@ -39,17 +39,21 @@ module Harbr
|
|
|
39
39
|
puts "Traefik configuration written to /etc/traefik/harbr.toml"
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
def collate_containers(name, host, port)
|
|
42
|
+
def collate_containers(name, host, port, host_header_aliases = [])
|
|
43
43
|
containers = Harbr::Container::Repository.new
|
|
44
44
|
container = containers.find_by_header(host)
|
|
45
|
+
|
|
46
|
+
host_header_aliases << host
|
|
45
47
|
|
|
46
48
|
if container.nil?
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
host_header_aliases.each do |host_header_alias|
|
|
50
|
+
container = Harbr::Container.new
|
|
51
|
+
container.name = name
|
|
52
|
+
container.host_header = host_header_alias
|
|
53
|
+
container.ip = "127.0.0.1"
|
|
54
|
+
container.port = port
|
|
55
|
+
containers.create(container)
|
|
56
|
+
end
|
|
53
57
|
else
|
|
54
58
|
container.port = port
|
|
55
59
|
containers.update(container)
|
|
@@ -128,8 +132,8 @@ module Harbr
|
|
|
128
132
|
link_directories(name, version, env)
|
|
129
133
|
sync_live_data_if_next(name) if env == "next"
|
|
130
134
|
|
|
131
|
-
containers = collate_containers("#{name}", "#{manifest.host}", port) if env == "current"
|
|
132
|
-
containers = collate_containers("#{env}.#{name}", "#{env}.#{manifest.host}", port) if env == "next"
|
|
135
|
+
containers = collate_containers("#{name}", "#{manifest.host}", port,manifest.host_header_alias) if env == "current"
|
|
136
|
+
containers = collate_containers("#{env}.#{name}", "#{env}.#{manifest.host}", port,manifest.host_header_alias.map{|host| "#{env}.#{host}" }) if env == "next"
|
|
133
137
|
|
|
134
138
|
create_traefik_config(containers)
|
|
135
139
|
|
data/lib/harbr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: harbr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.74
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Delaney Kuldvee Burke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-01-
|
|
11
|
+
date: 2024-01-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: listen
|