summaryrefslogtreecommitdiffstats
path: root/build-dev-docker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-dev-docker.sh')
-rwxr-xr-xbuild-dev-docker.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/build-dev-docker.sh b/build-dev-docker.sh
index 131d8ef..3a565f3 100755
--- a/build-dev-docker.sh
+++ b/build-dev-docker.sh
@@ -8,12 +8,17 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
+cd `dirname $0`
+
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
+cp docker/Dockerfile Dockerfile.dev
+sed -i "s|COPY |COPY docker\/|" Dockerfile.dev
+sed -i "s|ADD |ADD docker\/|" Dockerfile.dev
+sed -i "s|RUN git clone.*https://gerrit.opnfv.org/gerrit/storperf.*$|COPY . \${repos_dir}/storperf|" Dockerfile.dev
+
+diff docker/Dockerfile Dockerfile.dev
-docker build -t opnfv/storperf:dev .
+docker build -t opnfv/storperf:dev -f Dockerfile.dev .
-rm -f Dockerfile
+rm -f Dockerfile.dev