Sha256: 1b6bbf9e03825f308f5127dca9d69979ccfcf23d02c074fcc34c8558e8e88acf

Contents?: true

Size: 476 Bytes

Versions: 31

Compression:

Stored size: 476 Bytes

Contents

worked=1
s3_path="<%= data[:s3_url] %>"
output_path="<%= data[:output_path] %>"
log "fetch: starting to fetch $s3_path"
for attempt in {1..200}; do
  [[ $worked != 0 ]] || break
  log "fetch: attempt ${attempt} to get $s3_path ..."
  timeout 600 aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30)
done
[[ $worked != 0 ]] && fatal "fetch: failed to pull deb from S3"
log "fetch: successfully fetched $s3_path"

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dockly-4.4.1 snippets/get_from_s3.erb
dockly-4.4.0 snippets/get_from_s3.erb
dockly-4.3.0 snippets/get_from_s3.erb
dockly-4.2.0 snippets/get_from_s3.erb
dockly-4.1.0 snippets/get_from_s3.erb
dockly-4.0.0 snippets/get_from_s3.erb
dockly-3.4.1 snippets/get_from_s3.erb
dockly-3.4.0 snippets/get_from_s3.erb
dockly-3.3.0 snippets/get_from_s3.erb
dockly-3.2.0.pre.1 snippets/get_from_s3.erb
dockly-3.1.1 snippets/get_from_s3.erb
dockly-3.1.0 snippets/get_from_s3.erb
dockly-3.0.5 snippets/get_from_s3.erb
dockly-3.0.4 snippets/get_from_s3.erb
dockly-3.0.3 snippets/get_from_s3.erb
dockly-3.0.2 snippets/get_from_s3.erb
dockly-3.0.1 snippets/get_from_s3.erb
dockly-3.0.0 snippets/get_from_s3.erb
dockly-2.7.2 snippets/get_from_s3.erb
dockly-2.7.1 snippets/get_from_s3.erb