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 --- docker/smoke/Dockerfile | 2 +- docker/smoke/hooks/build | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 docker/smoke/hooks/build (limited to 'docker/smoke') diff --git a/docker/smoke/Dockerfile b/docker/smoke/Dockerfile index b6f84b64a..15ab702d0 100644 --- a/docker/smoke/Dockerfile +++ b/docker/smoke/Dockerfile @@ -1,4 +1,4 @@ -FROM ollivier/functest-core +FROM opnfv/functest-core ARG BRANCH=master ARG OPENSTACK_TAG=stable/ocata diff --git a/docker/smoke/hooks/build b/docker/smoke/hooks/build new file mode 100644 index 000000000..e5d15b526 --- /dev/null +++ b/docker/smoke/hooks/build @@ -0,0 +1,7 @@ +#!/bin/bash + +from="${DOCKER_REPO%/*}/functest-core" +sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile && + docker build -t "${IMAGE_NAME}" . + +exit $? -- cgit 1.2.3-korg