summaryrefslogtreecommitdiffstats
path: root/docker/patrole/hooks
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-28 15:03:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-28 15:03:20 +0000
commit623b67e74799edb251c9434857be0c0565ef7a41 (patch)
tree751c7c394daff077022d64225ae61d290cd8215e /docker/patrole/hooks
parent5d6cce702590f6bcf340a99343edba8c251534e1 (diff)
parent4a47d63986e6d5192fb8367a0afa0952d2ca5a29 (diff)
Merge "Integrate Patrole as a new testcase"
Diffstat (limited to 'docker/patrole/hooks')
-rw-r--r--docker/patrole/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/patrole/hooks/post_checkout b/docker/patrole/hooks/post_checkout
new file mode 100644
index 000000000..8d0e98124
--- /dev/null
+++ b/docker/patrole/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?