aboutsummaryrefslogtreecommitdiffstats
path: root/docker/patrole/hooks/post_checkout
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-21 07:56:26 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-28 11:32:06 +0100
commit4a47d63986e6d5192fb8367a0afa0952d2ca5a29 (patch)
tree2bd7790a4a208417d393a62911bb7593ffd7e97a /docker/patrole/hooks/post_checkout
parentff4817eb5e7e11780353c73a9c7d0f40948863be (diff)
Integrate Patrole as a new testcase
It's published in a new container because the current results don't allow gating. 0.2 is selected to meet OpenStack Pike's requirements. Co-Authored-By: Rémi Le Trocquer <remi.letrocquer@orange.com> Change-Id: Iafcf8f66ee3531fc43136886095774885bfc3150 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/patrole/hooks/post_checkout')
-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 $?