summaryrefslogtreecommitdiffstats
path: root/docker/components/hooks/build
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-08-10 08:57:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-10 08:57:52 +0000
commitfece597672ffa6d823e3cb1c23d344171912604d (patch)
tree892b45fa5fa799f78adce38bb0e3b62ade8a005f /docker/components/hooks/build
parent574da71290f97d7c75cfbcb86d7134903086d91f (diff)
parent59a1b6b60a998bee70bd7c5df62ff54bd62f2b8b (diff)
Merge "Add functest-components based on Alpine"
Diffstat (limited to 'docker/components/hooks/build')
-rw-r--r--docker/components/hooks/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/components/hooks/build b/docker/components/hooks/build
new file mode 100644
index 000000000..e5d15b526
--- /dev/null
+++ b/docker/components/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 $?