mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-13 22:18:36 +08:00
* infra: [TRTLLM-325] Prepare for NGC release - prepare multiplatform build Signed-off-by: Martin Marciniszyn Mehringer <11665257+MartinMarciniszyn@users.noreply.github.com>
32 lines
755 B
Bash
32 lines
755 B
Bash
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
ETCD_VER=v3.5.21
|
|
|
|
# choose either URL
|
|
DOWNLOAD_URL=https://storage.googleapis.com/etcd
|
|
|
|
# Detect CPU architecture
|
|
ARCH=$(uname -m)
|
|
|
|
# Map common architecture names to their standard forms
|
|
if [ "$ARCH" = "aarch64" ]; then
|
|
ARCH="arm64"
|
|
elif [ "$ARCH" = "x86_64" ]; then
|
|
ARCH="amd64"
|
|
fi
|
|
|
|
# Use a temporary location for downloading files
|
|
TMP_DIR=$(mktemp -d)
|
|
ETCD_TAR=${TMP_DIR}/etcd-${ETCD_VER}-linux-${ARCH}.tar.gz
|
|
|
|
# Download etcd binaries
|
|
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-${ARCH}.tar.gz -o ${ETCD_TAR}
|
|
|
|
# Extract binaries to /usr/local/bin directly to avoid unnecessary copying
|
|
tar xzvf ${ETCD_TAR} -C /usr/local/bin --strip-components=1
|
|
|
|
# Cleanup temporary files and directories
|
|
rm -rf ${TMP_DIR}
|