summaryrefslogtreecommitdiffstats
path: root/build/creating_data
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-11-04 15:35:19 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-11-12 11:05:09 +0100
commitbda9034903df342315e58d8dba5076e377f12fc9 (patch)
tree03f67bd4629b4adf52f89bb3e0954362d46581bb /build/creating_data
parent9b92bbd38b7f43b635bd4d23693822d5079edcca (diff)
Abort if helm process failed to spawn
Change-Id: I930d3ca4c3d9ab49286a38c0ea298abe807ac781 Issue-ID: OOM-2623 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'build/creating_data')
-rwxr-xr-xbuild/creating_data/docker-images-collector.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/creating_data/docker-images-collector.sh b/build/creating_data/docker-images-collector.sh
index db085618..73c19bc4 100755
--- a/build/creating_data/docker-images-collector.sh
+++ b/build/creating_data/docker-images-collector.sh
@@ -90,6 +90,15 @@ validate_port() {
fi
}
+check_helm() {
+ sleep 2 # let the helm process settle
+ if [ $(pgrep -f "helm serve --address ${HELM_REPO}" -c) -eq 0 ];
+ then
+ echo "Fatal: Helm chart repository server failed to start"
+ exit 1
+ fi
+}
+
# Proccess input options
if [ $# -lt 1 ]; then
usage
@@ -154,6 +163,7 @@ mkdir -p "${PROJECT_DIR}/../${HELM_REPO_PATH}"
helm init -c --local-repo-url "http://${HELM_REPO}"
helm serve --address ${HELM_REPO} --repo-path "${PROJECT_DIR}/../${HELM_REPO_PATH}" &
helm repo remove stable 2>/dev/null || true
+check_helm
# Make all
pushd "${PROJECT_DIR}/.."