summaryrefslogtreecommitdiffstats
path: root/docker/parser/hooks/post_checkout
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-11-06 13:58:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-06 13:58:55 +0000
commit806d9c521f9f1de9df3b9ad62002bb31e2b2a821 (patch)
tree43f36948fd735c2084ae0f13b341fcd839d8e7b7 /docker/parser/hooks/post_checkout
parente491334942083a81dab0f3450a809e29b0687c31 (diff)
parent57970bac489b114ab0483580fef683ea99fe62f1 (diff)
Merge "Update Functest to OpenStack stable/pike"
Diffstat (limited to 'docker/parser/hooks/post_checkout')
-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..8d0e98124
--- /dev/null
+++ b/docker/parser/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?