mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Download static cURL into release Docker image for all supported architectures (#20424)
Download static cURL into release Docker image for all supported architectures. Currently, the static cURL executable is only downloaded for the `amd64` architecture. However, `arm64` and `ppc64le` variants are also [available](https://github.com/moparisthebest/static-curl/releases/tag/v8.7.1).
This commit is contained in:
20
dockerscripts/download-static-curl.sh
Normal file
20
dockerscripts/download-static-curl.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
function download_arch_specific_executable {
|
||||
curl -f -L -s -q \
|
||||
https://github.com/moparisthebest/static-curl/releases/latest/download/curl-$1 \
|
||||
-o /go/bin/curl || exit 1
|
||||
chmod +x /go/bin/curl
|
||||
}
|
||||
|
||||
case $TARGETARCH in
|
||||
"arm64")
|
||||
download_arch_specific_executable aarch64
|
||||
;;
|
||||
"s390x")
|
||||
echo "Not downloading static cURL because it does not exist for the $TARGETARCH architecture."
|
||||
;;
|
||||
*)
|
||||
download_arch_specific_executable "$TARGETARCH"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user