aboutsummaryrefslogtreecommitdiffstats
path: root/docker/parser/hooks
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-09-13 14:02:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-13 14:02:09 +0000
commit116068e0f781d14507de05268ae5e232bc558f24 (patch)
treee4a50457b6d0dc3f030f445bd9860531d9a2e616 /docker/parser/hooks
parent0e057acf0cce634f0ab4e472184d2af2d46689fd (diff)
parent9c90de0daa99b9cc7ba960fb66d39bde765feec2 (diff)
Merge "Add Docker automated build hooks for Parser"
Diffstat (limited to 'docker/parser/hooks')
-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 $?