Skip to content

Commit

Permalink
Fix the new Docker create/run process so it pulls in the latest chang…
Browse files Browse the repository at this point in the history
…es every time the image is run.

Move the scripts into the VMs dir to centeralize the Docker stuff.
  • Loading branch information
davewichers committed Nov 4, 2018
1 parent c298394 commit 8b56437
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions VMs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ RUN echo bench:bench | chpasswd
RUN chown -R bench /owasp/
ENV PATH /owasp/benchmark/:$PATH

ENTRYPOINT ["/owasp/benchmark/runRemoteAccessibleBenchmark.sh"]

2 changes: 1 addition & 1 deletion scripts/buildDockerImage.sh → VMs/buildDockerImage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker image rm benchmark:latest
docker build -t benchmark VMs/
docker build -t benchmark .

2 changes: 2 additions & 0 deletions VMs/runDockerImage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker run -t -i -p 8443:8443 --rm benchmark /bin/bash -c "git pull && ./runRemoteAccessibleBenchmark.sh"

2 changes: 0 additions & 2 deletions scripts/runDockerImage.sh

This file was deleted.

0 comments on commit 8b56437

Please sign in to comment.