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