From: Cédric Ollivier Date: Wed, 13 Sep 2017 01:54:14 +0000 (+0200) Subject: Add Docker automated build hooks for Parser X-Git-Tag: opnfv-5.0.RC1~82^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F41815%2F1;p=functest.git Add Docker automated build hooks for Parser Change-Id: Ie42058fba915e3fbe9098ff14b31768723e8e24e Signed-off-by: Cédric Ollivier --- 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 $?