Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES =================' |
| 4 | |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 5 | |
Pamela Dragosh | 3eee76a | 2017-02-20 10:10:56 -0500 | [diff] [blame] | 6 | DOCKER_REPOSITORY=nexus3.openecomp.org:10003 |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 7 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 8 | for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do |
Pamela Dragosh | 5c2e06c | 2017-02-20 11:40:22 -0500 | [diff] [blame^] | 9 | echo "Building $image" |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 10 | mkdir -p target/$image |
| 11 | cp $image/* target/$image |
Pamela Dragosh | 5c2e06c | 2017-02-20 11:40:22 -0500 | [diff] [blame^] | 12 | docker build --quiet --tag ${DOCKER_REPOSITORY}/openecomp/policy:$image target/$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 13 | done |
| 14 | |
| 15 | for image in policy-nexus policy-db policy-drools policy-pe; do |
Pamela Dragosh | 5c2e06c | 2017-02-20 11:40:22 -0500 | [diff] [blame^] | 16 | echo "Pushing $image" |
| 17 | docker push ${DOCKER_REPOSITORY}/openecomp/policy:$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 18 | done |