Launch script will now tag instead of build images
Made this change to shift the building of the Dockerfile away from the
helper script. Instead the build will now be done by invoker scripts.
Then doing the helper script will tag that built image with a new name
that will be used to replace the old image name. This change updates the
build-setup.sh, the qemu-build.sh, and the kubernetes-launch.sh
Change-Id: I2d82e30b5e427bc46ac327541c58eebe9e6efd52
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>
diff --git a/qemu-build.sh b/qemu-build.sh
index 5454992..c62cefb 100755
--- a/qemu-build.sh
+++ b/qemu-build.sh
@@ -138,10 +138,10 @@
EOF
)
+docker build -t ${imgname} - <<< "${Dockerfile}"
# If Launch is left empty will create a docker container
if [[ "${launch}" == "" ]]; then
- docker build -t ${imgname} - <<< "${Dockerfile}"
if [[ "$?" -ne 0 ]]; then
echo "Failed to build docker container."
exit 1