docker-registry-sync 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmE2Y2JjZmM2M2QxZTJjMjYwZWQ5NmQwZDQxY2UyOWIxNTdiMjNiMA==
4
+ NzUzOWU0NTYzYjIxOTU0NmE1NTg2Zjg4M2U2MDdiY2Y4MTBkYmRhNw==
5
5
  data.tar.gz: !binary |-
6
- NzVkZGU0YTcyNDY5MzEyMWI3NTQxYjI5OTU5MTg3ZWIxZmUwMTgyOQ==
6
+ M2JiMmQ2OWExODdiMGIzZTBmMzQ2M2Q3ZGExNzAyOTdkZmJhMzY4NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2JlNTQ5Y2U1ZGI1OTg2OTJmMjkyM2RkYjJiZjMwNWQxYjljZDg3ZmM1YTJm
10
- ZjBlZjQ4ODQ3NDcwODBhZTBmNmI5NGNjMThmMjc5ZmM0ZGNhNTA1YzMwMDA1
11
- MWUyM2FhYjdmNTE1NGIwNzYyOTBmNzhjN2EwOTc4YjBhNTc2NjM=
9
+ Y2FlMjc2YWU5MWQwM2U2NDY2MWE2OWZkMzA4MjM2N2M3NDYzZWNkYTllNzMw
10
+ MDgyNDA3MjhmZjEzNTZkNjQyOWZjZDc2OWM3ZmUyOTgzZWMzZTliZjAzOTc0
11
+ NjU3YmU4NmQ5MzhlZWFjZDViYTczMzM5Yjc1ZTE4ODY3M2QxNWE=
12
12
  data.tar.gz: !binary |-
13
- NzRkNmM3NDZiYmU0OTA1MTNkNDQxNWViYzY1YzE3NzU4ODZhMmY4NmY2YmVk
14
- MzBlNGFhZTJiNWZhNjAxMDQ3NWUzMjYwNDlhNWNiYWEwZjgzMGI2MjllM2Fj
15
- MTc1NTY3ZTRmYWE1NGQ5MjYxYTVkNWRjNmZkYTEyNjk4NWU5NzI=
13
+ MjkzODFhMzkzMWVkOTBlMWM1NGY1NDc0NDA4OTUyNzExMWE3MzAwNzUwNDNk
14
+ MWQ1YmZiNjdhOTVmZGZkMzQyNzg2MTY2MDE2NzgwOWJhZmMyYTM5ZGRmMTJj
15
+ MDk3NGRhZjNkYTEwM2Y1ZGFlOTVlNDlhZTdmZTI4NjExODI0MGM=
@@ -29,6 +29,8 @@ docker-registry-sync [options] run-sync
29
29
 
30
30
  Available commands:
31
31
  sync -- Sync docker image from one source registry S3 bucket to one or more S3 buckets.
32
+ queue-sync -- Queue docker image sync job from one source registry S3 bucket to one or more S3 buckets.
33
+ run-sync -- Run queued sysnc jobs
32
34
 
33
35
  Options:
34
36
  EOC
@@ -47,6 +49,11 @@ EOC
47
49
  options[:sqs_queue] = b
48
50
  end
49
51
 
52
+ options[:proxy] = nil
53
+ opts.on('-p PROXY', '--proxy PROXY', "HTTP proxy URL") do |p|
54
+ options[:proxy] = p
55
+ end
56
+
50
57
  options[:unset_proxy] = false
51
58
  opts.on(nil, '--unset-proxy', "Use if 'http_proxy' is set in your environment, but you don't want to use it...") do |_u|
52
59
  options[:unset_proxy] = true
@@ -70,13 +77,13 @@ if image.nil? && 'run-sync' != cmd
70
77
  exit 1
71
78
  end
72
79
 
73
- ENV['http_proxy'] = nil if options[:unset_proxy]
74
- ENV['https_proxy'] = nil if options[:unset_proxy]
75
- ENV['HTTP_PROXY'] = nil if options[:unset_proxy]
76
- ENV['HTTPS_PROXY'] = nil if options[:unset_proxy]
77
80
 
78
- if !(ENV['http_proxy'].nil? || options[:unset_proxy])
79
- Aws.config[:http_proxy] = ENV['http_proxy']
81
+ unless options[:unset_proxy]
82
+ Aws.config[:http_proxy] = if options[:proxy].nil?
83
+ ENV['http_proxy']
84
+ else
85
+ options[:proxy]
86
+ end
80
87
  end
81
88
 
82
89
  unless verify_opts(options, cmd)
@@ -1,7 +1,7 @@
1
1
  module Docker
2
2
  module Registry
3
3
  module Sync
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-registry-sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Oldfield