diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-07-11 23:53:36 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-07-17 03:07:38 +0200 |
commit | 6ff8e6fd6be9f1fc57506db52432a1cb20f4db99 (patch) | |
tree | 7a7a6fdb4d82889352a5414775580d618c53ae6c /build.sh | |
parent | 40b8cd5a23a3635cb303144993769a7ab0fc2709 (diff) |
Add script to build all containers
It also sets opnfv as default repository as they will be pushed by
releng.
It adds hooks asked for automated build via Docker which allows
continuous integration before the update of jjobs.
Change-Id: I08b55b1ff334afe6c0f58af3100cfa04f76d8ef0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..dbc79e0d3 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +repo=${repo:-opnfv} + +(cd docker && docker build -t "${repo}/functest" .) +docker push "${repo}/functest" + +for dir in docker/core docker/healthcheck docker/smoke; do + (cd ${dir} && docker build -t "${repo}/functest-${dir##**/}" .) + docker push "${repo}/functest-${dir##**/}" +done + +exit $? |