dockly 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Dockly
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  file_diff_docker_import_fn() {
2
2
  s3_path="<%= data[:base_image] %>"
3
3
  log "fetch: starting to fetch $s3_path"
4
- aws s3 cp --quiet $s3_path - 2> >(log)
4
+ timeout 600 aws s3 cp --quiet $s3_path - 2> >(log)
5
5
  log "fetch: successfully fetched $s3_path"
6
6
  }
7
7
 
@@ -5,7 +5,7 @@ log "fetch: starting to fetch $s3_path"
5
5
  for attempt in {1..200}; do
6
6
  [[ $worked != 0 ]] || break
7
7
  log "fetch: attempt ${attempt} to get $s3_path ..."
8
- aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30)
8
+ timeout 600 aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30)
9
9
  done
10
10
  [[ $worked != 0 ]] && fatal "fetch: failed to pull deb from S3"
11
11
  log "fetch: successfully fetched $s3_path"
@@ -5,7 +5,7 @@ log "fetch: starting to fetch $s3_path"
5
5
  for attempt in {1..200}; do
6
6
  [[ $worked != 0 ]] || break
7
7
  log "fetch: attempt ${attempt} to get $s3_path ..."
8
- aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30)
8
+ timeout 600 aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30)
9
9
  done
10
10
  [[ $worked != 0 ]] && fatal "fetch: failed to pull deb from S3"
11
11
  log "fetch: successfully fetched $s3_path"
@@ -5,14 +5,15 @@ base_image = "/opt/dockly/base_image.tar"
5
5
  s3_diff_docker_import_base_fn() {
6
6
  s3_path="<%= data[:base_image] %>"
7
7
  log "fetch: starting to fetch $s3_path"
8
- aws s3 cp --quiet $s3_path - 2> >(log)
8
+ # TODO: Remove timeout once https://github.com/aws/aws-cli/issues/1178 closes
9
+ timeout 600 aws s3 cp --quiet $s3_path - 2> >(log)
9
10
  log "fetch: successfully fetched $s3_path"
10
11
  }
11
12
 
12
13
  s3_diff_docker_import_diff_fn() {
13
14
  s3_path="<%= data[:diff_image] %>"
14
15
  log "fetch: starting to fetch $s3_path"
15
- aws s3 cp --quiet $s3_path - 2> >(log)
16
+ timeout 600 aws s3 cp --quiet $s3_path - 2> >(log)
16
17
  log "fetch: successfully fetched $s3_path"
17
18
  }
18
19
 
@@ -1,7 +1,7 @@
1
1
  s3_docker_import_fn() {
2
2
  s3_path="<%= data[:s3_url] %>"
3
3
  log "fetch: starting to fetch $s3_path"
4
- aws s3 cp --quiet $s3_path - 2> >(log)
4
+ timeout 600 aws s3 cp --quiet $s3_path - 2> >(log)
5
5
  log "fetch: successfully fetched $s3_path"
6
6
  }
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-09 00:00:00.000000000 Z
12
+ date: 2015-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp