dockly 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dockly/version.rb +1 -1
- data/snippets/s3_diff_docker_import.erb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzY2ZTM4M2ZiY2QxNmI3MzI3ZTM3YzM1ODVhMTMxZjczMTliMzY2Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmI5YWFiYTY5MjA5NGY5ZjQxMmM0NzQ4NDczOWI2YjZlZjkwYzBmNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWFmZjVjMDU2YzQ3Mzc3OGE5ZjE1NWY2ZGQ1YTVhYjQ5ODc4ODA2ZTc2OGVi
|
10
|
+
ZWU5ODJlMTVjOGM1ZDBjNTIzNTY5YmY1NWZlNmI3ZTJlYjcyYmQzMmM0MDdi
|
11
|
+
YTgzYTc1OThlMjUyMTE4MjAzYmJmOTY5ODdiYTAzNjVlZDg1YWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTY5MWRjMTNjYWRhY2FiODkyZjNmMTM1ZWZlZGQ1NWVkNTc3ZGVmZWM3ZDNj
|
14
|
+
NmMxYzc0OGIzNmZjYjViOTJhMGZkNjYzNWIwMzhkZjZhODFlMWRiMWQ1ZmM3
|
15
|
+
MTZkOGRkMDgwZjQ0ZGU1NGZmZjU0NjNiOGUwMDdkZGQ0Mzg2ODA=
|
data/lib/dockly/version.rb
CHANGED
@@ -34,6 +34,12 @@ docker_import() {
|
|
34
34
|
docker import - $repo:$tag > >(log) 2>&1 || fatal "docker failed to import"
|
35
35
|
}
|
36
36
|
|
37
|
+
remove_bad_imports() {
|
38
|
+
log "removing bad imports"
|
39
|
+
docker images | grep \<none | awk '{ print $3 }' | xargs docker rmi
|
40
|
+
log "bad import removed"
|
41
|
+
}
|
42
|
+
|
37
43
|
worked=1
|
38
44
|
for attempt in {1..200}; do
|
39
45
|
[[ $worked != 0 ]] || break
|
@@ -46,6 +52,7 @@ worked=1
|
|
46
52
|
for attempt in {1..200}; do
|
47
53
|
[[ $worked != 0 ]] || break
|
48
54
|
stream_image | docker_import && worked=0 || (log "fetch: attempt $attempt failed, sleeping 30"; sleep 30)
|
55
|
+
[[ $worked != 0 ]] && remove_bad_imports
|
49
56
|
done
|
50
57
|
[[ $worked != 0 ]] && fatal "fetch: failed to import diff image"
|
51
58
|
log "fetch: successfully imported diff image"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swipely, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|