+#!/bin/bash
+# Copyright 2020 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+unset REPO_USER
+unset REPO_PWD
+echo -n "REPO_USER:"
+read REPO_USER
+echo -n "REPO_PWD:"
+read REPO_PWD
+
+DOCKER_BUILD_DIR=`pwd`
+MECM_VERSION=latest
+IMAGE_NAME=applcm-broker
+REPO_NAME=ealtedge
+
+echo "DOCKER_BUILD_DIR=${DOCKER_BUILD_DIR}"
+echo "In Build and Push Broker"
+
+function build_image {
+ docker build --no-cache -t ${REPO_NAME}/${IMAGE_NAME}:${MECM_VERSION} -f build/Dockerfile .
+}
+
+function push_image {
+ docker login -u ${REPO_USER} -p ${REPO_PWD}
+ docker push ${REPO_NAME}/${IMAGE_NAME}:${MECM_VERSION}
+}
+
+build_image
+push_image
\ No newline at end of file