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