orthanc-server / orthanc-builder

Repo used to build osimis/orthanc docker images, windows installers and OSX packages
GNU Affero General Public License v3.0
29 stars 12 forks source link

upload failed: ./libOrthancAuthorization.so Unable to locate credentials #11

Closed urosch closed 1 year ago

urosch commented 1 year ago

Error building with: ./local-build.sh build version=stable platform=linux/arm64 image=normal

it tries to upload after build for some reason, even though the default argument is enableupload=0. I will comment out this from the build-or-download.sh to try to bypass it.

5 28.72 uploading libOrthancAuthorization.so

5 28.72 + upload libOrthancAuthorization.so

5 28.72 + echo 'uploading libOrthancAuthorization.so'

5 28.72 + aws s3 --region eu-west-1 cp /build/libOrthancAuthorization.so s3://orthanc.osimis.io/docker-builds/linux/arm64/bullseye-20230522-slim-stable/0.5.3-libOrthancAuthorization.so --cache-control=max-age=1

5 33.98 upload failed: ./libOrthancAuthorization.so to s3://orthanc.osimis.io/docker-builds/linux/arm64/bullseye-20230522-slim-stable/0.5.3-libOrthancAuthorization.so Unable to locate credentials

5 ERROR: executor failed running [/bin/sh -c /scripts/build-or-download.sh version=$STABLE_OR_UNSTABLE target=orthanc-authorization commitId=$ORTHANC_AUTH_COMMIT_ID baseImage=$PLATFORM/$BASE_IMAGE_TAG preferDownloads=$PREFER_DOWNLOADS enableUploads=$ENABLE_UPLOAD]: exit code: 1


[build-plugin-auth 1/1] RUN /scripts/build-or-download.sh version=stable target=orthanc-authorization commitId=0.5.3 baseImage=linux/arm64/bullseye-20230522-slim-stable preferDownloads=1 enableUploads=0:

executor failed running [/bin/sh -c /scripts/build-or-download.sh version=$STABLE_OR_UNSTABLE target=orthanc-authorization commitId=$ORTHANC_AUTH_COMMIT_ID baseImage=$PLATFORM/$BASE_IMAGE_TAG preferDownloads=$PREFER_DOWNLOADS enableUploads=$ENABLE_UPLOAD]: exit code: 1

urosch commented 1 year ago
upload() { # $1 file
    echo "uploading $1";
    echo "skipping upload of $1"
    # aws s3 --region eu-west-1 cp $buildRootPath/$1 s3://orthanc.osimis.io/docker-builds/$baseImage/$commitId-$1 --cache-control=max-age=1
}
amazy commented 1 year ago

Shame on me :-) ! https://github.com/orthanc-server/orthanc-builder/commit/57610cf8e51dd6dbea760596d6da0e3ed5e0a10c