From b4ba001617eb56858dfa1ca9fd2784ddc5e1ae8e Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Thu, 26 Nov 2015 10:15:21 +0100 Subject: [PATCH] Use multipart upload for s3 by reducing the chunk size This avoids file upload issues for larger files --- images/createBoxTarball | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/createBoxTarball b/images/createBoxTarball index f50aa5f89..e15237809 100755 --- a/images/createBoxTarball +++ b/images/createBoxTarball @@ -99,7 +99,7 @@ rm -rf "${bundle_dir}" if [[ "${upload}" == "yes" ]]; then echo "Uploading bundle to S3" # That special header is needed to allow access with singed urls created with different aws credentials than the ones the file got uploaded - s3cmd --ssl --add-header=x-amz-acl:authenticated-read --access_key="${AWS_DEV_ACCESS_KEY}" --secret_key="${AWS_DEV_SECRET_KEY}" --no-mime-magic put "${bundle_file}" "s3://dev-cloudron-releases/box-${version}.tar.gz" + s3cmd --multipart-chunk-size-mb=5 --ssl --add-header=x-amz-acl:authenticated-read --access_key="${AWS_DEV_ACCESS_KEY}" --secret_key="${AWS_DEV_SECRET_KEY}" --no-mime-magic put "${bundle_file}" "s3://dev-cloudron-releases/box-${version}.tar.gz" versions_file_url="https://dev-cloudron-releases.s3.amazonaws.com/box-${version}.tar.gz" echo "The URL for the versions file is: ${versions_file_url}"