X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=bin%2Fprepare-common-templates;h=8743260609d16441c4ce1dfa97c3ac696737afea;hb=3d9fb8c2081df310960d7c90d5854c5b7862a9bf;hp=bfdd3d2728d2afa735e6597dcc8b686c4335389f;hpb=bf6e70d18914f4d6ac798c90a6918d3c47593b51;p=it%2Fdep.git diff --git a/bin/prepare-common-templates b/bin/prepare-common-templates index bfdd3d27..87432606 100755 --- a/bin/prepare-common-templates +++ b/bin/prepare-common-templates @@ -35,6 +35,18 @@ then fi fi +# Check if servecm plugin is ready to serve request +command='curl --silent --output /dev/null http://127.0.0.1:8879/charts' +for i in $(seq 1 5) +do $command && s=0 && break || s=$? && echo "Error connecting chartmuseum server. Retrying after 5s" && sleep 5; +done + +if [ $s -gt 0 ] +then + echo "Cmd to test chartmuseum failed with ($s): $command" + exit $s +fi + # Package common templates and serve it using Helm local repo if [ $IS_HELM3 ] then