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 | |
Pamela Dragosh | b174339 | 2017-02-21 12:04:28 -0500 | [diff] [blame] | 5 | DOCKER_REPOSITORY=nexus3.openecomp.org:10003 |
| 6 | DOCKER_VERSION=latest |
| 7 | |
Pamela Dragosh | 6f91e0b | 2017-02-23 10:37:49 -0500 | [diff] [blame^] | 8 | export DOCKER_REPOSITORY |
| 9 | export DOCKER_VERSION |
| 10 | |
| 11 | cp policy-pe/* target/policy-pe/ |
| 12 | cp policy-drools/* target/policy-drools/ |
| 13 | |
| 14 | for 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 |
| 20 | done |