From 6ff8e6fd6be9f1fc57506db52432a1cb20f4db99 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 11 Jul 2017 23:53:36 +0200 Subject: Add script to build all containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 build.sh (limited to 'build.sh') 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 $? -- cgit 1.2.3-korg