Loading deploy/all.sh +7 −0 Original line number Diff line number Diff line Loading @@ -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 ------------------------------------------------------------ Loading Loading @@ -243,6 +248,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # Automated steps start here ######################################################################################################################## bash scripts/dockerhub_login.sh # Deploy CockroachDB ./deploy/crdb.sh Loading deploy/build-only.sh +7 −0 Original line number Diff line number Diff line Loading @@ -32,11 +32,18 @@ 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 ######################################################################################################################## bash scripts/dockerhub_login.sh # Create a tmp folder for files modified during the deployment TMP_LOGS_FOLDER="./tmp/build" mkdir -p $TMP_LOGS_FOLDER Loading deploy/component.sh +9 −0 Original line number Diff line number Diff line Loading @@ -36,10 +36,17 @@ 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 ######################################################################################################################## bash scripts/dockerhub_login.sh DOCKER_BUILD="docker build" DOCKER_MAJOR_VERSION=$(docker --version | grep -o -E "Docker version [0-9]+\." | grep -o -E "[0-9]+" | cut -c 1-3) if [[ $DOCKER_MAJOR_VERSION -ge 23 ]]; then Loading @@ -63,6 +70,8 @@ TMP_FOLDER="./tmp" TMP_MANIFESTS_FOLDER="$TMP_FOLDER/manifests" TMP_LOGS_FOLDER="$TMP_FOLDER/logs" bash scripts/dockerhub_k8s_secret.sh "$TFS_K8S_NAMESPACE" echo "Deploying component and collecting environment variables..." ENV_VARS_SCRIPT=tfs_runtime_env_vars.sh Loading deploy/crdb.sh +8 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,11 @@ export CRDB_DROP_DATABASE_IF_EXISTS=${CRDB_DROP_DATABASE_IF_EXISTS:-""} # If CRDB_REDEPLOY is "YES", the database will be dropped while checking/deploying CockroachDB. export CRDB_REDEPLOY=${CRDB_REDEPLOY:-""} # Optionally set Docker Hub credentials to avoid anonymous Kubernetes image pull rate limits. # If either variable is empty, Kubernetes uses anonymous Docker Hub image pulls. export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""} export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""} ######################################################################################################################## # Automated steps start here Loading @@ -72,6 +77,7 @@ function crdb_deploy_single() { echo "CockroachDB Namespace" echo ">>> Create CockroachDB Namespace (if missing)" kubectl create namespace ${CRDB_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${CRDB_NAMESPACE}" echo echo "CockroachDB (single-mode)" Loading Loading @@ -185,6 +191,7 @@ function crdb_deploy_cluster() { echo "CockroachDB Operator Namespace" echo ">>> Create CockroachDB Operator Namespace (if missing)" kubectl apply -f "${CRDB_MANIFESTS_PATH}/pre_operator.yaml" bash scripts/dockerhub_k8s_secret.sh "cockroach-operator-system" echo echo "Cockroach Operator CRDs" Loading Loading @@ -226,6 +233,7 @@ function crdb_deploy_cluster() { echo "CockroachDB Namespace" echo ">>> Create CockroachDB Namespace (if missing)" kubectl create namespace ${CRDB_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${CRDB_NAMESPACE}" echo echo "CockroachDB (cluster-mode)" Loading deploy/kafka.sh +6 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,11 @@ export KFK_DEPLOY_MODE=${KFK_DEPLOY_MODE:-"single"} # If KFK_REDEPLOY is "YES", the message broker will be dropped while checking/deploying Kafka. export KFK_REDEPLOY=${KFK_REDEPLOY:-""} # Optionally set Docker Hub credentials to avoid anonymous Kubernetes image pull rate limits. # If either variable is empty, Kubernetes uses anonymous Docker Hub image pulls. export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""} export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""} ######################################################################################################################## # Automated steps start here Loading @@ -52,6 +57,7 @@ function kfk_deploy_single() { echo "Kafka Namespace" echo ">>> Create Kafka Namespace (if missing)" kubectl create namespace ${KFK_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${KFK_NAMESPACE}" echo echo "Kafka (single-mode)" Loading Loading
deploy/all.sh +7 −0 Original line number Diff line number Diff line Loading @@ -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 ------------------------------------------------------------ Loading Loading @@ -243,6 +248,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} # Automated steps start here ######################################################################################################################## bash scripts/dockerhub_login.sh # Deploy CockroachDB ./deploy/crdb.sh Loading
deploy/build-only.sh +7 −0 Original line number Diff line number Diff line Loading @@ -32,11 +32,18 @@ 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 ######################################################################################################################## bash scripts/dockerhub_login.sh # Create a tmp folder for files modified during the deployment TMP_LOGS_FOLDER="./tmp/build" mkdir -p $TMP_LOGS_FOLDER Loading
deploy/component.sh +9 −0 Original line number Diff line number Diff line Loading @@ -36,10 +36,17 @@ 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 ######################################################################################################################## bash scripts/dockerhub_login.sh DOCKER_BUILD="docker build" DOCKER_MAJOR_VERSION=$(docker --version | grep -o -E "Docker version [0-9]+\." | grep -o -E "[0-9]+" | cut -c 1-3) if [[ $DOCKER_MAJOR_VERSION -ge 23 ]]; then Loading @@ -63,6 +70,8 @@ TMP_FOLDER="./tmp" TMP_MANIFESTS_FOLDER="$TMP_FOLDER/manifests" TMP_LOGS_FOLDER="$TMP_FOLDER/logs" bash scripts/dockerhub_k8s_secret.sh "$TFS_K8S_NAMESPACE" echo "Deploying component and collecting environment variables..." ENV_VARS_SCRIPT=tfs_runtime_env_vars.sh Loading
deploy/crdb.sh +8 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,11 @@ export CRDB_DROP_DATABASE_IF_EXISTS=${CRDB_DROP_DATABASE_IF_EXISTS:-""} # If CRDB_REDEPLOY is "YES", the database will be dropped while checking/deploying CockroachDB. export CRDB_REDEPLOY=${CRDB_REDEPLOY:-""} # Optionally set Docker Hub credentials to avoid anonymous Kubernetes image pull rate limits. # If either variable is empty, Kubernetes uses anonymous Docker Hub image pulls. export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""} export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""} ######################################################################################################################## # Automated steps start here Loading @@ -72,6 +77,7 @@ function crdb_deploy_single() { echo "CockroachDB Namespace" echo ">>> Create CockroachDB Namespace (if missing)" kubectl create namespace ${CRDB_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${CRDB_NAMESPACE}" echo echo "CockroachDB (single-mode)" Loading Loading @@ -185,6 +191,7 @@ function crdb_deploy_cluster() { echo "CockroachDB Operator Namespace" echo ">>> Create CockroachDB Operator Namespace (if missing)" kubectl apply -f "${CRDB_MANIFESTS_PATH}/pre_operator.yaml" bash scripts/dockerhub_k8s_secret.sh "cockroach-operator-system" echo echo "Cockroach Operator CRDs" Loading Loading @@ -226,6 +233,7 @@ function crdb_deploy_cluster() { echo "CockroachDB Namespace" echo ">>> Create CockroachDB Namespace (if missing)" kubectl create namespace ${CRDB_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${CRDB_NAMESPACE}" echo echo "CockroachDB (cluster-mode)" Loading
deploy/kafka.sh +6 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,11 @@ export KFK_DEPLOY_MODE=${KFK_DEPLOY_MODE:-"single"} # If KFK_REDEPLOY is "YES", the message broker will be dropped while checking/deploying Kafka. export KFK_REDEPLOY=${KFK_REDEPLOY:-""} # Optionally set Docker Hub credentials to avoid anonymous Kubernetes image pull rate limits. # If either variable is empty, Kubernetes uses anonymous Docker Hub image pulls. export DOCKERHUB_USER_NAME=${DOCKERHUB_USER_NAME:-""} export DOCKERHUB_ACCESS_TOKEN=${DOCKERHUB_ACCESS_TOKEN:-""} ######################################################################################################################## # Automated steps start here Loading @@ -52,6 +57,7 @@ function kfk_deploy_single() { echo "Kafka Namespace" echo ">>> Create Kafka Namespace (if missing)" kubectl create namespace ${KFK_NAMESPACE} bash scripts/dockerhub_k8s_secret.sh "${KFK_NAMESPACE}" echo echo "Kafka (single-mode)" Loading