From 9c90de0daa99b9cc7ba960fb66d39bde765feec2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Ollivier?= Date: Wed, 13 Sep 2017 03:54:14 +0200 Subject: [PATCH] Add Docker automated build hooks for Parser MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ie42058fba915e3fbe9098ff14b31768723e8e24e Signed-off-by: Cédric Ollivier --- docker/parser/hooks/post_checkout | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docker/parser/hooks/post_checkout diff --git a/docker/parser/hooks/post_checkout b/docker/parser/hooks/post_checkout new file mode 100644 index 000000000..20a6d4b95 --- /dev/null +++ b/docker/parser/hooks/post_checkout @@ -0,0 +1,6 @@ +#!/bin/bash + +from="${DOCKER_REPO%/*}/functest-core" +sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile + +exit $? -- 2.16.6