Pamela Dragosh | b174339 | 2017-02-21 12:04:28 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES =================' |
| 4 | |
| 5 | |
| 6 | DOCKER_REPOSITORY=nexus3.openecomp.org:10003 |
| 7 | DOCKER_VERSION=latest |
| 8 | |
| 9 | cp policy-pe/* target/policy-pe/ |
| 10 | cp policy-drools/* target/policy-drools/ |
| 11 | |
| 12 | for 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 |
| 18 | done |