kaiser 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kaiser/cli.rb +28 -16
- data/lib/kaiser/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: 0bcd84dd0ed4442ed01eb780b5d0a00ce5ae65117177f787e454cd4304b462cd
|
4
|
+
data.tar.gz: d9546e19dc9ee353c0755359e8946c213ebbbeb80c9b24f8cc86cd4d1c44356e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f2d2fdb0955599538acc55b61e079f87abb1c212f0fbdcdbfe57e6ba49def3ad56c2c60ae0b3edf984909952811c08004509dac4c8f96ad0cfd52ffb5a98bac
|
7
|
+
data.tar.gz: c2bef8823ee36a2636c0ed53a411806f1cd5c2ab190881fc8a8df8bbdbede9c00b43b505b5012373d6cb2402ecbecd2aed7b8df1cf8f1d9142a9dddd276cbeed
|
data/lib/kaiser/cli.rb
CHANGED
@@ -252,7 +252,7 @@ module Kaiser
|
|
252
252
|
attach_mounts = Config.kaiserfile.attach_mounts
|
253
253
|
volumes = attach_mounts.map { |from, to| "-v #{`pwd`.chomp}/#{from}:#{to}" }.join(' ')
|
254
254
|
|
255
|
-
|
255
|
+
cmd = "docker run -ti
|
256
256
|
--name #{app_container_name}
|
257
257
|
--network #{network_name}
|
258
258
|
--dns #{ip_of_container(Config.config[:shared_names][:dns])}
|
@@ -265,6 +265,9 @@ module Kaiser
|
|
265
265
|
#{app_params}
|
266
266
|
kaiser:#{envname}-#{current_branch} #{cmd}".tr("\n", ' ')
|
267
267
|
|
268
|
+
puts cmd
|
269
|
+
system cmd
|
270
|
+
|
268
271
|
stop_services
|
269
272
|
|
270
273
|
Config.out.puts 'Cleaning up...'
|
@@ -555,15 +558,6 @@ module Kaiser
|
|
555
558
|
--network #{Config.config[:networkname]}
|
556
559
|
redis:7-alpine"
|
557
560
|
)
|
558
|
-
run_if_dead(
|
559
|
-
Config.config[:shared_names][:chrome],
|
560
|
-
"docker run -d
|
561
|
-
-p 5900:5900
|
562
|
-
--shm-size='2g'
|
563
|
-
--name #{Config.config[:shared_names][:chrome]}
|
564
|
-
--network #{Config.config[:networkname]}
|
565
|
-
#{selenium_node_image}"
|
566
|
-
)
|
567
561
|
run_if_dead(
|
568
562
|
Config.config[:shared_names][:nginx],
|
569
563
|
"docker run -d
|
@@ -576,17 +570,35 @@ module Kaiser
|
|
576
570
|
--network #{Config.config[:networkname]}
|
577
571
|
jwilder/nginx-proxy"
|
578
572
|
)
|
573
|
+
|
574
|
+
dnsconffile = "#{ENV['HOME']}/.kaiser/dnsconf"
|
575
|
+
File.write(dnsconffile, <<~HOSTS)
|
576
|
+
log-queries
|
577
|
+
no-resolv
|
578
|
+
server=8.8.8.8
|
579
|
+
server=1.1.1.1
|
580
|
+
address=/.#{http_suffix}/#{ip_of_container(Config.config[:shared_names][:nginx])}
|
581
|
+
HOSTS
|
582
|
+
|
579
583
|
run_if_dead(
|
580
584
|
Config.config[:shared_names][:dns],
|
581
585
|
"docker run -d
|
582
586
|
--name #{Config.config[:shared_names][:dns]}
|
583
587
|
--network #{Config.config[:networkname]}
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
588
|
+
-v #{dnsconffile}:/etc/dnsmasq.conf:ro
|
589
|
+
degica/dnsmasq
|
590
|
+
"
|
591
|
+
)
|
592
|
+
|
593
|
+
run_if_dead(
|
594
|
+
Config.config[:shared_names][:chrome],
|
595
|
+
"docker run -d
|
596
|
+
-p 5900:5900
|
597
|
+
--shm-size='2g'
|
598
|
+
--name #{Config.config[:shared_names][:chrome]}
|
599
|
+
--network #{Config.config[:networkname]}
|
600
|
+
--dns #{ip_of_container(Config.config[:shared_names][:dns])}
|
601
|
+
#{selenium_node_image}"
|
590
602
|
)
|
591
603
|
end
|
592
604
|
|
data/lib/kaiser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaiser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|