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 +8 -8
- data/bin/docker-registry-sync +13 -6
- data/lib/docker/registry/sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzUzOWU0NTYzYjIxOTU0NmE1NTg2Zjg4M2U2MDdiY2Y4MTBkYmRhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2JiMmQ2OWExODdiMGIzZTBmMzQ2M2Q3ZGExNzAyOTdkZmJhMzY4NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2FlMjc2YWU5MWQwM2U2NDY2MWE2OWZkMzA4MjM2N2M3NDYzZWNkYTllNzMw
|
10
|
+
MDgyNDA3MjhmZjEzNTZkNjQyOWZjZDc2OWM3ZmUyOTgzZWMzZTliZjAzOTc0
|
11
|
+
NjU3YmU4NmQ5MzhlZWFjZDViYTczMzM5Yjc1ZTE4ODY3M2QxNWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjkzODFhMzkzMWVkOTBlMWM1NGY1NDc0NDA4OTUyNzExMWE3MzAwNzUwNDNk
|
14
|
+
MWQ1YmZiNjdhOTVmZGZkMzQyNzg2MTY2MDE2NzgwOWJhZmMyYTM5ZGRmMTJj
|
15
|
+
MDk3NGRhZjNkYTEwM2Y1ZGFlOTVlNDlhZTdmZTI4NjExODI0MGM=
|
data/bin/docker-registry-sync
CHANGED
@@ -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
|
-
|
79
|
-
Aws.config[: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)
|