blob: 73581076e768f87204fabeadeb57c33f769f71ec [file] [log] [blame]
Pamela Dragoshaccf6452017-02-17 08:09:31 -05001#!/bin/bash
2#
3echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
4
Pamela Dragosh743078b2017-02-19 20:52:22 -05005
Pamela Dragosh3eee76a2017-02-20 10:10:56 -05006DOCKER_REPOSITORY=nexus3.openecomp.org:10003
Pamela Dragosh743078b2017-02-19 20:52:22 -05007
Pamela Dragoshaccf6452017-02-17 08:09:31 -05008for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
Pamela Dragosh5c2e06c2017-02-20 11:40:22 -05009 echo "Building $image"
Pamela Dragoshaccf6452017-02-17 08:09:31 -050010 mkdir -p target/$image
11 cp $image/* target/$image
Pamela Dragosh5c2e06c2017-02-20 11:40:22 -050012 docker build --quiet --tag ${DOCKER_REPOSITORY}/openecomp/policy:$image target/$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050013done
14
15for image in policy-nexus policy-db policy-drools policy-pe; do
Pamela Dragosh5c2e06c2017-02-20 11:40:22 -050016 echo "Pushing $image"
17 docker push ${DOCKER_REPOSITORY}/openecomp/policy:$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050018done