Sha256: 05ba452b0aed4833133f52512a4f8c90214f95a28e77cf1d6f94c16bfa93e691

Contents?: true

Size: 507 Bytes

Versions: 31

Compression:

Stored size: 507 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 ..."
  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"

dpkg -i "<%= data[:deb_path] %>"

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dockly-2.7.0 snippets/get_and_install_deb.erb
dockly-2.6.0 snippets/get_and_install_deb.erb
dockly-2.5.3 snippets/get_and_install_deb.erb
dockly-2.5.2 snippets/get_and_install_deb.erb
dockly-2.5.1 snippets/get_and_install_deb.erb
dockly-2.5.0 snippets/get_and_install_deb.erb
dockly-2.4.0 snippets/get_and_install_deb.erb
dockly-2.3.0 snippets/get_and_install_deb.erb
dockly-2.2.0 snippets/get_and_install_deb.erb
dockly-2.1.0 snippets/get_and_install_deb.erb
dockly-2.0.2 snippets/get_and_install_deb.erb