-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile and instruction to vegeta load testing api
- Loading branch information
António Martins
committed
Mar 4, 2020
1 parent
1431a6d
commit 2cf51ec
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.bin | ||
*.html | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Build stage | ||
FROM golang:1.12 as build-env | ||
|
||
ENV ROOT=vegeta-server | ||
RUN git clone https://github.com/nitishm/vegeta-server.git | ||
|
||
WORKDIR $ROOT | ||
RUN make build | ||
|
||
# Final stage | ||
FROM gcr.io/distroless/static | ||
COPY --from=build-env /go/vegeta-server/bin/vegeta-server . | ||
EXPOSE 80 | ||
CMD ["./vegeta-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Vegeta Docker | ||
|
||
Docker image for the [Vegeta](https://github.com/tsenart/vegeta) HTTP load testing tool. | ||
|
||
## Usage | ||
|
||
To build image: | ||
```bash | ||
docker build -t docker-vegeta . | ||
``` | ||
|
||
Documentation - [Vegeta](https://github.com/tsenart/vegeta) [RestApi](https://github.com/nitishm/vegeta-server/blob/master/docs/usage.md) |