summaryrefslogtreecommitdiffstats
path: root/build-dev-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-dev-docker.sh')
-rwxr-xr-xbuild-dev-docker.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build-dev-docker.sh b/build-dev-docker.sh
new file mode 100755
index 0000000..1e6a861
--- /dev/null
+++ b/build-dev-docker.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+echo "Creating a docker image from the current working directory..."
+
+sed "s|RUN git clone https://gerrit.opnfv.org/gerrit/storperf.*$|COPY . \${repos_dir}/storperf|" docker/Dockerfile > Dockerfile
+sed -i "s|COPY storperf.pp|COPY docker/storperf.pp|" Dockerfile
+sed -i "s|COPY supervisord.conf|COPY docker/supervisord.conf|" Dockerfile
+
+docker build -t opnfv/storperf:dev .
+
+rm Dockerfile