blob: 6e424c9110ce83b6e1f0d83dbc716d0e3a6a1a8a [file] [log] [blame]
Pamela Dragoshb1743392017-02-21 12:04:28 -05001#!/bin/bash
2#
3echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
4
5
6DOCKER_REPOSITORY=nexus3.openecomp.org:10003
7DOCKER_VERSION=latest
8
9cp policy-pe/* target/policy-pe/
10cp policy-drools/* target/policy-drools/
11
12for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do
13 echo "Building $image"
14 mkdir -p target/$image
15 cp $image/* target/$image
16 docker build --quiet --tag openecomp/policy/$image:${DOCKER_VERSION} --tag ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION} target/$image
17 docker images
18done