blob: a2e55bef8ed6e16b5b5594e9b3ca45ab6f8a51e3 [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
6DOCKER_REPOSITORIES="nexus3.openecomp.org:10001 \
7 nexus3.openecomp.org:10002 \
8 nexus3.openecomp.org:10003"
9
Pamela Dragoshaccf6452017-02-17 08:09:31 -050010for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
11 mkdir -p target/$image
12 cp $image/* target/$image
Pamela Dragosh743078b2017-02-19 20:52:22 -050013 docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050014done
15
16for image in policy-nexus policy-db policy-drools policy-pe; do
Pamela Dragosh743078b2017-02-19 20:52:22 -050017 docker push ${DOCKER_REPOSITORY}/policy:$image
Pamela Dragoshaccf6452017-02-17 08:09:31 -050018done