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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmY4YTk4ZmY0OTU5NzA2ZGM4MWQ4YWUwMjIwOTJkZWI4MDVlY2QyMQ==
4
+ MzY2ZTM4M2ZiY2QxNmI3MzI3ZTM3YzM1ODVhMTMxZjczMTliMzY2Yg==
5
5
  data.tar.gz: !binary |-
6
- MmNiMGU5MDQ2ZmU1NmNlZjQ2NGZmMTIwYWEwNzE4OGJiNDE0YzJkNQ==
6
+ ZmI5YWFiYTY5MjA5NGY5ZjQxMmM0NzQ4NDczOWI2YjZlZjkwYzBmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTI1Nzg2Njc1MDUzZTMyYmVjMmRmMDVlYmExNDUwMjQ5YWFmZTg4NTQxZDI3
10
- NTY2YWU2NjYwMDU1ZTVkZjlhNWUwYzc4NjNiZjM0MDhhMWRmMGRhMWJhYjcw
11
- NzZmMWQyYjY1MmMxZTY3ZTZmYjE4NThjOTVlMzVkNjAzZTQxNTM=
9
+ OWFmZjVjMDU2YzQ3Mzc3OGE5ZjE1NWY2ZGQ1YTVhYjQ5ODc4ODA2ZTc2OGVi
10
+ ZWU5ODJlMTVjOGM1ZDBjNTIzNTY5YmY1NWZlNmI3ZTJlYjcyYmQzMmM0MDdi
11
+ YTgzYTc1OThlMjUyMTE4MjAzYmJmOTY5ODdiYTAzNjVlZDg1YWY=
12
12
  data.tar.gz: !binary |-
13
- MWQ0ZGFmNDg1YjZmMTU2MGQzNmM5NmRiZGI0ODViMTJkN2YwNWIyMzg3MTlj
14
- ZGMxMTEwNTNjMWJiMTBmY2UzYmRkOWE1ZjBiY2E0ZDc3OWZmNzA4ZWFjNzYz
15
- NWZlYjI1YTY5OWFhZWFjMzY0ZTEwMjRlMjJlNWJhY2E4ODE0MDQ=
13
+ NTY5MWRjMTNjYWRhY2FiODkyZjNmMTM1ZWZlZGQ1NWVkNTc3ZGVmZWM3ZDNj
14
+ NmMxYzc0OGIzNmZjYjViOTJhMGZkNjYzNWIwMzhkZjZhODFlMWRiMWQ1ZmM3
15
+ MTZkOGRkMDgwZjQ0ZGU1NGZmZjU0NjNiOGUwMDdkZGQ0Mzg2ODA=
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '2.4.0'
2
+ VERSION = '2.5.0'
3
3
  end
@@ -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.0
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-04 00:00:00.000000000 Z
11
+ date: 2015-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp