dockly 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/dockly/version.rb
CHANGED
@@ -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"
|
data/snippets/get_from_s3.erb
CHANGED
@@ -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
|
-
|
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
|
|
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.
|
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-
|
12
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clamp
|