From 3fb890c848199f4455dc5aeb9aa2989dbf9504ca Mon Sep 17 00:00:00 2001 From: Samuli Silvius Date: Sat, 19 Jan 2019 14:27:58 +0200 Subject: Add ansible runner image/chroot into package 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 --- package.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package.sh') diff --git a/package.sh b/package.sh index 3a4d12bc..cb0782d2 100755 --- a/package.sh +++ b/package.sh @@ -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 -- cgit 1.2.3-korg