blob: 735b59d985cc42b195ecdbfa050aa22142ac173a [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
9 mkdir -p target/$image
10 cp $image/* target/$image
Pamela Dragosh743078b2017-02-19 20:52:22 -050011 docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050012done
13
14for image in policy-nexus policy-db policy-drools policy-pe; do
Pamela Dragosh743078b2017-02-19 20:52:22 -050015 docker push ${DOCKER_REPOSITORY}/policy:$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050016done