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 | |
| 6 | DOCKER_REPOSITORIES="nexus3.openecomp.org:10001 \ |
| 7 | nexus3.openecomp.org:10002 \ |
| 8 | nexus3.openecomp.org:10003" |
| 9 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 10 | for image in policy-os policy-nexus policy-db policy-base policy-drools policy-pe ; do |
| 11 | mkdir -p target/$image |
| 12 | cp $image/* target/$image |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 13 | docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 14 | done |
| 15 | |
| 16 | for image in policy-nexus policy-db policy-drools policy-pe; do |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 17 | docker push ${DOCKER_REPOSITORY}/policy:$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 18 | done |