Sha256: 42f6ccbe648560d14634282aceb6cba46146f63f5df27b69b9f76fb9fd051e19

Contents?: true

Size: 657 Bytes

Versions: 30

Compression:

Stored size: 657 Bytes

Contents

file_diff_docker_import_fn() {
  s3_path="<%= data[:base_image] %>"
  log "fetch: starting to fetch $s3_path"
  timeout 600 aws s3 cp --quiet $s3_path - 2> >(log)
  log "fetch: successfully fetched $s3_path"
}

docker_import() {
  repo=<%= data[:repo] %>
  tag=<%= data[:tag] %>
  (cat "<%= data[:diff_image] %>"; file_diff_docker_import_fn) | gunzip -c | docker import - $repo:$tag
}

worked=1
for attempt in {1..200}; do
  [[ $worked != 0 ]] || break
  docker_import && worked=0 || (log "fetch: attempt $attempt failed, sleeping 30"; sleep 30)
done
[[ $worked != 0 ]] && fatal "fetch: failed to import diff image"
log "fetch: successfully imported image"

Version data entries

30 entries across 30 versions & 1 rubygems

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