summaryrefslogtreecommitdiffstats
path: root/docker/tempest/hooks/post_checkout
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-06-17 09:18:13 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-06-17 09:52:38 +0200
commit1004a0475154b9198a02fa246417ed1fbb947ded (patch)
tree54bf5bb63cc0c3888746ba47f036431bd790b368 /docker/tempest/hooks/post_checkout
parent1734755754867dc81938c8d6ca878e12ada36990 (diff)
Add functest-tempest container
It avoids duplicating operations between functest-smoke, functest-components, functest-vnf... It eases building new containers for new tempest-based testcases. Change-Id: I73b973588f4eb70d1e5874d06d030c5a5d729e95 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/tempest/hooks/post_checkout')
-rw-r--r--docker/tempest/hooks/post_checkout6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/tempest/hooks/post_checkout b/docker/tempest/hooks/post_checkout
new file mode 100644
index 000000000..8d0e98124
--- /dev/null
+++ b/docker/tempest/hooks/post_checkout
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core:${DOCKER_TAG}"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile
+
+exit $?