summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-11-25 08:45:12 +0200
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-11-28 10:11:58 +0200
commit65e78e87d6cbf2485533d0e01d21f505f84f5f56 (patch)
tree626c2c499f17e08f66c3bacb8e6c7656824c5ac1
parent39568929b8b12334c94dc29cc0c90a29bc2fac2f (diff)
docker-images-collector.sh to use override values.yaml
Change docker-images-collector.sh script to use file oom/kubernetes/onap/resources/overrides/onap-all.yaml as input instead of oom/kubernetes/onap/values.yaml. Also small enable script running in Windows git bash. Issue-ID: OOM-2222 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Change-Id: Idf7143ed9880ac510c103f4d3a4d5a45f375d71a
-rwxr-xr-xbuild/creating_data/docker-images-collector.sh4
-rw-r--r--docs/BuildGuide.rst5
2 files changed, 4 insertions, 5 deletions
diff --git a/build/creating_data/docker-images-collector.sh b/build/creating_data/docker-images-collector.sh
index 9a5baea7..c07de107 100755
--- a/build/creating_data/docker-images-collector.sh
+++ b/build/creating_data/docker-images-collector.sh
@@ -92,7 +92,7 @@ if [ -e "${LIST}" ]; then
fi
# Setup helm
-if pgrep -x "helm" > /dev/null; then
+if ps -eaf | grep -v "grep" | grep "helm" > /dev/null; then
echo "helm is already running"
else
helm init -c > /dev/null
@@ -114,7 +114,7 @@ popd
echo "Creating the list..."
if [ "${PROJECT}" == "onap" ]; then
COMMENT="OOM commit $(git --git-dir="${PROJECT_DIR}/../../.git" rev-parse HEAD)"
- for subsystem in `parse_yaml "${PROJECT_DIR}/values.yaml"`; do
+ for subsystem in `parse_yaml "${PROJECT_DIR}/resources/overrides/onap-all.yaml"`; do
create_list ${subsystem}
done | sort -u > ${LIST}
else
diff --git a/docs/BuildGuide.rst b/docs/BuildGuide.rst
index 01f248ff..12426b7c 100644
--- a/docs/BuildGuide.rst
+++ b/docs/BuildGuide.rst
@@ -97,13 +97,12 @@ Part 2. Download artifacts for offline installer
# clone the OOM repository
git clone https://gerrit.onap.org/r/oom -b master --recurse-submodules /tmp/oom
- # enable subsystems in oom/kubernetes/onap/values.yaml as required
+ # docker-images-collector.sh script uses oom/kubernetes/onap/resources/overrides/onap-all.yaml file to find what subsystems
+ are enabled. By default all subsystems are enabled there. Modify the file if want to drop some subsystems.
#run the collector providing path the the project
./build/creating_data/docker-images-collector.sh /tmp/oom/kubernetes/onap
- If the list does not contain any image, no subsystem is enabled in the oom/kubernetes/onap/values.yaml
-
For the other options check the usage of the script.
.. note:: Skip this step if you have already all necessary resources and continue with Part 3. Populate local nexus