Token Update
Updated to support token based auth for customers and UX
This commit is contained in:
11
install.sh
11
install.sh
@@ -119,12 +119,15 @@ IMAGE="${IMAGE_BASE}/${CUDA_VERSION}/tentacle:${IMAGE_TAG}"
|
||||
# -----------------------------
|
||||
# Registry login
|
||||
# -----------------------------
|
||||
echo
|
||||
read -rp "Registry username: " REG_USER
|
||||
read -rsp "Registry password or token: " REG_PASS
|
||||
REG_USER="krkn-registry"
|
||||
|
||||
read -rsp "Registry access token: " REG_PASS
|
||||
echo
|
||||
|
||||
echo "$REG_PASS" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin
|
||||
echo "$REG_PASS" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin || {
|
||||
err "Docker login failed. Invalid token or registry unreachable."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# -----------------------------
|
||||
# Prompt config
|
||||
|
||||
Reference in New Issue
Block a user