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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dbf71eb7bad9c114db9ccc5d967d2cfa3e16ed6c7b4966ff435ad3d5bf4f150
4
- data.tar.gz: 0a259055ac34524ca7628924bd27f30c2f88dbfbdcae4000331770e072b25333
3
+ metadata.gz: 0bcd84dd0ed4442ed01eb780b5d0a00ce5ae65117177f787e454cd4304b462cd
4
+ data.tar.gz: d9546e19dc9ee353c0755359e8946c213ebbbeb80c9b24f8cc86cd4d1c44356e
5
5
  SHA512:
6
- metadata.gz: 662ab6713b4eb2fd0b13c6a30959bef98a26eb704bee59efb9586fbe96f0dffa62c7b4c1ba64085eb127d2c24aac52f06438efef27838021951251191ed44d3d
7
- data.tar.gz: f2e908d931510eb378fdf4a1749f8bb2b7c400ed765b1b9ef5f472222d5ba402a291dcc5672aae308b982341cc2059a9be1b720793d84cc407bce8d4dcef91b9
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
- system "docker run -ti
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
- --privileged
585
- -e DOCKER_HOST='unix:///var/run/docker.sock'
586
- -v /var/run/docker.sock:/var/run/docker.sock:ro
587
- davidsiaw/dockerdns
588
- --domain #{http_suffix}
589
- --record :#{ip_of_container(Config.config[:shared_names][:nginx])}"
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kaiser
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.3'
5
5
  end
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.2
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-07 00:00:00.000000000 Z
11
+ date: 2024-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport