Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/minio-client/devcontainer-feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"arm",
"arm64"
]
},
"version": {
"type": "string",
"default": "",
"description": "The version to the minio client, e.g. RELEASE.2025-08-13T08-35-41Z. Find at https://github.com/minio/mc/releases"
}
}
}
14 changes: 13 additions & 1 deletion src/minio-client/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ fi
export MINIO_ARCH
echo "Arch is ${MINIO_ARCH}"

if [ -z "${VERSION+x}" ]
then
MINIO_DL_BINARY="mc"
echo "Version is latest"
else
echo $VERSION
MINIO_DL_BINARY="mc.RELEASE.${VERSION}"
echo "Version is ${VERSION}"
fi

echo "Binay name of mc client to download is ${MINIO_DL_BINARY}"

DOWNLOAD_PATH="https://dl.min.io/client/mc/release/${MINIO_VENDOR}-${MINIO_ARCH}/"

# Ensure apt is in non-interactive to avoid prompts
Expand All @@ -45,7 +57,7 @@ export DEBIAN_FRONTEND=noninteractive
echo "Activating feature 'minio-client'"
check_packages apt-transport-https curl ca-certificates

RELEASE_HASH=$(curl -sL "${DOWNLOAD_PATH}/mc.sha256sum")
RELEASE_HASH=$(curl -sL "${DOWNLOAD_PATH}/${MINIO_DL_BINARY}.sha256sum")
RELEASE_FILE=${RELEASE_HASH#* }

curl -sLO "${DOWNLOAD_PATH}/${RELEASE_FILE}"
Expand Down
Loading