summaryrefslogtreecommitdiffstats
path: root/bin/caservicecontainer/build_testcaservice_image.sh
diff options
context:
space:
mode:
authorKiran Kamineni <kiran.k.kamineni@intel.com>2018-09-19 13:40:14 -0700
committerKiran Kamineni <kiran.k.kamineni@intel.com>2018-09-19 16:52:56 -0700
commit8b2b7295fd3538ee2e46eed1c55bfb256b644dd0 (patch)
tree6d3458e415e355ad2fd6da4ea9edcb38083ff326 /bin/caservicecontainer/build_testcaservice_image.sh
parentcd713d4de6c3d08478d6f6ca27b0f9e1afd439fe (diff)
Fix bugs in startup script and move scripts to bin
Testing in kubernetes revealed some issues that needed to be fixed. This patch contains those changes. Issue-ID: AAF-510 Change-Id: Ib7956a2d49f4f7f663f18522e71758dffe35bcb0 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'bin/caservicecontainer/build_testcaservice_image.sh')
-rwxr-xr-xbin/caservicecontainer/build_testcaservice_image.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/caservicecontainer/build_testcaservice_image.sh b/bin/caservicecontainer/build_testcaservice_image.sh
index 0760950..f13993b 100755
--- a/bin/caservicecontainer/build_testcaservice_image.sh
+++ b/bin/caservicecontainer/build_testcaservice_image.sh
@@ -23,8 +23,16 @@ fi
echo $BUILD_ARGS
function build_image {
+ echo "Copying files for image"
+ cp ../../test/integration/samplecaservicecontainer/applicationfiles/CaSign.java .
+ cp ../../test/integration/samplecaservicecontainer/applicationfiles/ca.cert .
+ cp ../../test/integration/samplecaservicecontainer/applicationfiles/test.csr .
+
echo "Start build docker image: ${IMAGE_NAME}:latest"
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:latest -f dockerfile .
+
+ echo "Remove files after image is built"
+ rm CaSign.java ca.cert test.csr
}
function push_image {