Sha256: ca570a08d0d8c8c4f4e83c37897e67bb28926487125d8c9101c38249d6aad6bf
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
worked=1 s3_path="<%= data[:s3_url] %>" output_path="<%= data[:deb_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 ..." 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" dpkg -i "<%= data[:deb_path] %>"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dockly-2.0.1 | snippets/get_and_install_deb.erb |
dockly-2.0.0 | snippets/get_and_install_deb.erb |