Image build and push scripts
[ealt-edge.git] / mecm / mepm / applcm / broker / build_image.sh
similarity index 66%
rename from mecm/mepm/applcm/k8shelm/docker-build.sh
rename to mecm/mepm/applcm/broker/build_image.sh
index f0a70e5..838053d 100755 (executable)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-MEP_VERSION=latest
-docker build --no-cache -t ealtedge/helmplugin:${MEP_VERSION} -f build/Dockerfile .
+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 .
+}
+
+build_image