summaryrefslogtreecommitdiffstats
path: root/build-dev-docker.sh
blob: 1e6a86189fa15559c986051505cf79bb8242197c (plain)
1
2
3
4
5
6
7
8
9
10
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