docker_rails_proxy 0.2.3 → 0.2.5

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: a5819c64cc069f6c72b3bc21c5aaeab20d328ff6d52fd55d4563f7ecb10ede4d
4
- data.tar.gz: 5ca639cd06e1b88e618b2a877db695609e91aecfaecdb8dbc91e2ca2c735ed2e
3
+ metadata.gz: 5fc34e31db0b0337ee37b71bcc6d19f08c1b5856e1b7946643ef7b1636c4fa8c
4
+ data.tar.gz: b7c1da4db5d4d8ab094b482f800fc7c4c54967076c910d07c57ae470486b3856
5
5
  SHA512:
6
- metadata.gz: 4dd69e7851a48e3b577a13f6514f41f750396370908118fe02f4e1fac613b6992d51c696e5dc32e7444f94cd5dc5188925b1618f078c408da7eb5611a1491f8d
7
- data.tar.gz: 02da3a720928ffccb54bfc7331c27a72bed11c9e5c07c627ec701f08929e02c487871a2b91c0b5a7672261705271fb74d391788e766a6fae054fc160b855aa8d
6
+ metadata.gz: 51607018697f916b603225a1cb03182ecd5b51f7b87f868e750b4c7438f0ca1eef64bbc24b768c0f820f9ae846bf0c440dc2e603699e101434977d811741cca8
7
+ data.tar.gz: 7e9b12ca108603ed2ba2f6dea8101675c58d14525f64da2a3066dd00987d8d21149ba0eee4d8558fd2bd2bd96f7b86af1294ed31e380729b42c518cf0b7fd33c
@@ -34,7 +34,7 @@ module DockerRailsProxy
34
34
 
35
35
  before_process do
36
36
  self.from_scratch = if docker_compose?
37
- %x(docker-compose ps | grep -c #{APP_NAME}).to_i.zero?
37
+ %x(docker-compose ps -a | grep -c #{APP_NAME}).to_i.zero?
38
38
  elsif kubernetes?
39
39
  %x(kubectl get deployment #{APP_NAME} -o name).empty?
40
40
  end
@@ -36,7 +36,7 @@ module DockerRailsProxy
36
36
  def _rsync_host
37
37
  @_rsync_host ||= begin
38
38
  ip = ENV.fetch('DOCKER_HOST') { '127.0.0.1' }.to_s.sub('tcp://', '').sub(/:\d+$/, '')
39
- port = '10873'
39
+ port = ENV.fetch('RSYNC_PORT') { '10873' }
40
40
 
41
41
  loop do
42
42
  break if (port = %x(kubectl get svc "#{APP_NAME}" -o jsonpath='{.spec.ports[?(@.name=="rsync")].nodePort}' 2> /dev/null).strip).present?
@@ -1,3 +1,3 @@
1
1
  module DockerRailsProxy
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_rails_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jairo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-06 00:00:00.000000000 Z
12
+ date: 2023-01-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Configures docker-compose and provides rails command helpers
15
15
  email:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.2.17
79
+ rubygems_version: 3.3.26
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: docker, docker-compose and rails wrapper