Image build and push scripts
[ealt-edge.git] / mecm / mepm / applcm / resources / deployment / build_push_image.sh
old mode 100755 (executable)
new mode 100644 (file)
similarity index 68%
rename from mecm/mepm/applcm/broker/docker-build.sh
rename to mecm/mepm/applcm/resources/deployment/build_push_image.sh
index 6f6bf8b..24ffcb3
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Copyright 2020 Huawei Technologies Co., Ltd.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-MEP_VERSION=latest
-docker build --no-cache -t ealtedge/applcm-broker:${MEP_VERSION} -f build/Dockerfile .
+CURRENT_DIR=`pwd`
+
+echo "DOCKER_BUILD_DIR=${CURRENT_DIR}"
+echo "Build and Push APP LCM"
+
+# Build and push broker
+cd ${CURRENT_DIR}
+cd ../../broker/
+. build_push_image.sh
+
+# Build and push k8s helm plugin
+cd ${CURRENT_DIR}
+cd ../../k8shelm/
+. build_push_image.sh
+