aboutsummaryrefslogtreecommitdiffstats
path: root/docker/parser
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-09-13 03:54:14 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2017-09-13 03:54:14 +0200
commit9c90de0daa99b9cc7ba960fb66d39bde765feec2 (patch)
tree01beec8914f2813b38088c2baff3ff517f7111f0 /docker/parser
parent1fa0053d08b4525858c28f2ba8449e2f070dc7c5 (diff)
Add Docker automated build hooks for Parser
Change-Id: Ie42058fba915e3fbe9098ff14b31768723e8e24e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/parser')
-rw-r--r--docker/parser/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
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 $?