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
|
# Registry login
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
echo
|
REG_USER="krkn-registry"
|
||||||
read -rp "Registry username: " REG_USER
|
|
||||||
read -rsp "Registry password or token: " REG_PASS
|
read -rsp "Registry access token: " REG_PASS
|
||||||
echo
|
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
|
# Prompt config
|
||||||
|
|||||||
Reference in New Issue
Block a user