Commit c2d5fa60 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Add optional Docker Hub credentials to scripts to prevent pull rate limits

parent 95d67736
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -88,6 +88,11 @@ export TFS_GRAFANA_PASSWORD=${TFS_GRAFANA_PASSWORD:-"admin123+"}
# If TFS_SKIP_BUILD is "YES", the containers are not rebuilt-retagged-repushed and existing ones are used.
export TFS_SKIP_BUILD=${TFS_SKIP_BUILD:-""}

# Optionally set Docker Hub credentials to avoid anonymous pull rate limits while building/pulling public images.
# If either variable is empty, Docker Hub is used anonymously.
export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""}
export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""}


# ----- CockroachDB ------------------------------------------------------------

+5 −0
Original line number Diff line number Diff line
@@ -32,6 +32,11 @@ export TFS_COMPONENTS=${TFS_COMPONENTS:-"context device pathcomp service slice n
# If not already set, set the tag you want to use for your images.
export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"}

# Optionally set Docker Hub credentials to avoid anonymous pull rate limits while building/pulling public images.
# If either variable is empty, Docker Hub is used anonymously.
export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""}
export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""}


########################################################################################################################
# Automated steps start here
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ export TFS_EXTRA_MANIFESTS=${TFS_EXTRA_MANIFESTS:-""}
# If not already set, set the neew Grafana admin password
export TFS_GRAFANA_PASSWORD=${TFS_GRAFANA_PASSWORD:-"admin123+"}

# Optionally set Docker Hub credentials to avoid anonymous pull rate limits while building/pulling public images.
# If either variable is empty, Docker Hub is used anonymously.
export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""}
export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""}

########################################################################################################################
# Automated steps start here
########################################################################################################################
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ IMAGE_TAG="dev"
# Set the name of the Kubernetes namespace to deploy to.
K8S_NAMESPACE="tfs-bchain"

# Optionally set Docker Hub credentials to avoid anonymous pull rate limits while building/pulling public images.
# If either variable is empty, Docker Hub is used anonymously.
export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""}
export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""}

COMPONENT="mock_blockchain"

########################################################################################################################
+5 −0
Original line number Diff line number Diff line
@@ -45,6 +45,11 @@ export TFS_GRAFANA_PASSWORD=${TFS_GRAFANA_PASSWORD:-"admin123+"}
# If TFS_SKIP_BUILD is "YES", the containers are not rebuilt-retagged-repushed and existing ones are used.
export TFS_SKIP_BUILD=${TFS_SKIP_BUILD:-""}

# Optionally set Docker Hub credentials to avoid anonymous pull rate limits while building/pulling public images.
# If either variable is empty, Docker Hub is used anonymously.
export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""}
export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""}


# ----- CockroachDB ------------------------------------------------------------

Loading