Skip to content

Commit

Permalink
Merge pull request #7 from marcomicera/docker
Browse files Browse the repository at this point in the history
Custom Docker image
  • Loading branch information
marcomicera authored Oct 25, 2019
2 parents 73ac79d + 769c929 commit 3e62ced
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,32 @@ Set difference between the [Kubernetes-compatible benchmark list](https://github
```bash
$ newgrp docker
```

1. To use a local Docker image:
1. Run a [local Docker registry](https://docs.docker.com/registry/deploying/):
```bash
$ docker run -d -p 5000:5000 --restart=always --name registry registry:2
```
2. Build the Docker image:
```bash
$ docker build -t sudobuntu docker/ && docker tag sudobuntu:latest marcomicera/sudobuntu
```

1. [Run it](#how-to-run-it)

When you're done:
1. Stop the local Docker registry:
```bash
$ docker container stop registry
```
1. Remove its container:
```bash
$ docker container rm -v registry
```
1. Stop [`minikube`](https://github.com/kubernetes/minikube);
```bash
$ minikube stop
```
</details>
#### References
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ [email protected]:marcomicera/PerfKitBenchmarker.git
CRONJOB=false # when true, creates a cronjob
DRY_RUN=false
THREADS=4
IMAGE=ubuntu
IMAGE=marcomicera/sudobuntu:latest
CURRENT_DATE=$(date '+%Y-%m-%d-%H-%M-%S')
RESULTS_DIR=./results/tmp/$CURRENT_DATE
CSV_RESULTS=$RESULTS_DIR/results.csv
Expand Down

0 comments on commit 3e62ced

Please sign in to comment.