summaryrefslogtreecommitdiffstats
path: root/docker/healthcheck/hooks/build
diff options
context:
space:
mode:
Diffstat (limited to 'docker/healthcheck/hooks/build')
-rw-r--r--docker/healthcheck/hooks/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/healthcheck/hooks/build b/docker/healthcheck/hooks/build
new file mode 100644
index 000000000..e5d15b526
--- /dev/null
+++ b/docker/healthcheck/hooks/build
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+from="${DOCKER_REPO%/*}/functest-core"
+sed -i "s|^FROM.*$|FROM ${from}|" Dockerfile &&
+ docker build -t "${IMAGE_NAME}" .
+
+exit $?