Add ansible runner image/chroot into package 28/76028/2
authorSamuli Silvius <s.silvius@partner.samsung.com>
Sat, 19 Jan 2019 12:27:58 +0000 (14:27 +0200)
committerSamuli Silvius <s.silvius@partner.samsung.com>
Mon, 21 Jan 2019 08:28:02 +0000 (10:28 +0200)
Ansible runner docker image and chroot environment exported from that
is needed runtime to run ansible playbooks.
Currently package.sh script is not building that when packaging is run.

This change will add generating of ansible runner package during packaging
and including that into final package.

Issue-ID: OOM-1594

Change-Id: I160c0e5366577ddf35b359b956bb4cdbdeb59787
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
package.sh

index 3a4d12b..cb0782d 100755 (executable)
@@ -79,6 +79,15 @@ function add_additions {
     fi
 }
 
+function build_sw_artifacts {
+    cd ansible/docker
+    ./build_ansible_image.sh
+    if [ $? -ne 0 ]; then
+        crash 5 "Building of ansible runner image failed."
+    fi
+    cd -
+}
+
 function create_sw_package {
     local pkg_root="${PACKAGING_TARGET_DIR}/onap"
 
@@ -204,6 +213,7 @@ whotest[0]='test' || (crash 3 "Arrays not supported in this version of bash.")
 # Prepare output directory for our packaging and create all tars
 
 rm -rf ${PACKAGING_TARGET_DIR}
+build_sw_artifacts
 create_sw_package
 create_resource_package