Set SKIP_LINT=true prior to building helm repository
[oom/offline-installer.git] / build / creating_data / docker-images-collector.sh
index 76ee901..a6b3c47 100755 (executable)
@@ -60,7 +60,7 @@ create_list() {
     else
         >&2 echo -e \n"    !!! ${1} sybsystem does not exist !!!"\n
     fi
-    helm template "${SUBSYS_DIR}" | grep 'image:\ \|tag_version:\ \|h._image' |
+    helm template --set global.masterPassword=TemplatePassword -f ${PROJECT_DIR}/values.yaml "${SUBSYS_DIR}" | grep 'image:\ \|tag_version:\ \|h._image' |
         sed -e 's/^.*\"h._image\"\ :\ //; s/^.*\"\(.*\)\".*$/\1/' \
             -e 's/\x27\|,//g; s/^.*\(image\|tag_version\):\ //' | tr -d '\r'
 }
@@ -82,6 +82,11 @@ if [ ! -f "${PROJECT_DIR}/../Makefile" ]; then
 elif [ -z "${LIST}" ]; then
     mkdir -p ${LISTS_DIR}
     LIST="${LISTS_DIR}/${PROJECT}_docker_images.list"
+else
+    # $2 is not empty - ensure LIST path exists
+    LIST_DIR="$(dirname ${LIST})"
+    mkdir -p "${LIST_DIR}"
+    MSG="${LIST_DIR} didn't exist, created\n"
 fi
 
 if [ -e "${LIST}" ]; then
@@ -95,6 +100,7 @@ if ps -eaf | grep -v "grep" | grep "helm" > /dev/null; then
 else
     helm init -c > /dev/null
     helm serve &
+    helm repo remove stable 2>/dev/null || true
 fi
 
 # Create helm repository
@@ -105,6 +111,7 @@ fi
 # Make all
 pushd "${PROJECT_DIR}/.."
 echo "Building project..."
+export SKIP_LINT=TRUE
 make all > /dev/null; make ${PROJECT} > /dev/null
 popd