summaryrefslogtreecommitdiffstats
path: root/jjb/policy/include-raw-docker.sh
blob: a2e55bef8ed6e16b5b5594e9b3ca45ab6f8a51e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#
echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='


DOCKER_REPOSITORIES="nexus3.openecomp.org:10001 \
                   nexus3.openecomp.org:10002 \
                   nexus3.openecomp.org:10003"

for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
    mkdir -p target/$image
    cp $image/* target/$image
    docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image
done

for image in policy-nexus policy-db policy-drools policy-pe; do
    docker push ${DOCKER_REPOSITORY}/policy:$image
done