ceph: disable dashboard
[infra/stack/kubernetes.git] / setup-stack.sh
index 35d5789ce73dbc60513109b2e3857cf44da9ccbb..732c0706551a5371b71bbaa5cfe037868b3705c4 100755 (executable)
@@ -33,4 +33,21 @@ export STACK_ROOT_DIR
 export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=k8-calico-nofeature}"
 echo "Info  : Deploy scenario is $DEPLOY_SCENARIO"
 
 export DEPLOY_SCENARIO="${DEPLOY_SCENARIO:=k8-calico-nofeature}"
 echo "Info  : Deploy scenario is $DEPLOY_SCENARIO"
 
+# NOTE (fdegir): we need to install stack specific operating system requirements
+# and python packages before proceeding further
+echo "Info  : Install stack operating system requirements listed in stack bindep.txt using $PKG_MGR"
+cd "$STACK_ROOT_DIR"
+# bindep -b exits with non-zero if it identifies a missing package so we disable pipefail
+set +o pipefail
+# shellcheck disable=SC2046 disable=SC2086
+bindep -b &> /dev/null || redirect_cmd ${INSTALLER_CMD} $(bindep -b)
+set -o pipefail
+
+# TODO (fdegir): installation of pip packages fail due to not being able to find setuptools
+# as build dependency so we do --no-use-pep517 as workaround.
+# This needs to be revisited later on.
+echo "Info  : Install stack python packages listed in stack requirements.txt using pip"
+echo "        Please note that this may take some time"
+redirect_cmd pip install --no-use-pep517 --force-reinstall -r requirements.txt
+
 # vim: set ts=2 sw=2 expandtab:
 # vim: set ts=2 sw=2 expandtab: