Skip to content

Commit

Permalink
Merge pull request #235 from optiopay/do-not-start-dockerd-when-skip_…
Browse files Browse the repository at this point in the history
…download-is-set-to-true

do not start dockerd in 'in' script if skip_download is set to true
  • Loading branch information
vito committed Aug 22, 2018
2 parents 3db50cb + 2d1bbe8 commit 9e07b92
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions assets/in
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ rootfs="$(jq -r '.params.rootfs // false' < $payload)"
skip_download="$(jq -r '.params.skip_download // false' < $payload)"
save="$(jq -r '.params.save // false' < $payload)"

certs_to_file "$ca_certs"
set_client_certs "$client_certs"
start_docker \
"${max_concurrent_downloads}" \
"${max_concurrent_uploads}" \
"$insecure_registries" \
"$registry_mirror"

mkdir -p $destination

image_name="${repository}@${digest}"

if [ "$skip_download" = "false" ]; then
certs_to_file "$ca_certs"
set_client_certs "$client_certs"
start_docker \
"${max_concurrent_downloads}" \
"${max_concurrent_uploads}" \
"$insecure_registries" \
"$registry_mirror"

log_in "$username" "$password" "$registry"

docker_pull "$image_name"
Expand Down

0 comments on commit 9e07b92

Please sign in to comment.