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 |
| 9 | mkdir -p target/$image |
| 10 | cp $image/* target/$image |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 11 | docker build --quiet --tag ${DOCKER_REPOSITORY}/policy:$image target/$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 12 | done |
| 13 | |
| 14 | for image in policy-nexus policy-db policy-drools policy-pe; do |
Pamela Dragosh | 743078b | 2017-02-19 20:52:22 -0500 | [diff] [blame] | 15 | docker push ${DOCKER_REPOSITORY}/policy:$image |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 16 | done |