73581076e768f87204fabeadeb57c33f769f71ec
[ci-management.git] / jjb / policy / include-raw-docker.sh
1 #!/bin/bash
2 #
3 echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
4
5
6 DOCKER_REPOSITORY=nexus3.openecomp.org:10003
7
8 for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
9     echo "Building $image"
10     mkdir -p target/$image
11     cp $image/* target/$image
12     docker build --quiet --tag ${DOCKER_REPOSITORY}/openecomp/policy:$image target/$image
13 done
14
15 for image in policy-nexus policy-db policy-drools policy-pe; do
16     echo "Pushing $image"
17     docker push ${DOCKER_REPOSITORY}/openecomp/policy:$image
18 done