Add Docker automated build hooks for Parser 15/41815/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 13 Sep 2017 01:54:14 +0000 (03:54 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 13 Sep 2017 01:54:14 +0000 (03:54 +0200)
Change-Id: Ie42058fba915e3fbe9098ff14b31768723e8e24e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
docker/parser/hooks/post_checkout [new file with mode: 0644]

diff --git a/docker/parser/hooks/post_checkout b/docker/parser/hooks/post_checkout
new file mode 100644 (file)
index 0000000..20a6d4b
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?