Skip to content

Commit

Permalink
Dockerfile and instruction to vegeta load testing api
Browse files Browse the repository at this point in the history
  • Loading branch information
António Martins committed Mar 4, 2020
1 parent 1431a6d commit 2cf51ec
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.bin
*.html
*.json
14 changes: 14 additions & 0 deletions Dockerfile
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"]
20 changes: 10 additions & 10 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
BSD 3-Clause License

Copyright (c) 2020, NOS Inovação
Copyright (c) 2017, NOS Inovação
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Expand All @@ -26,4 +26,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12 changes: 12 additions & 0 deletions README.md
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)

0 comments on commit 2cf51ec

Please sign in to comment.