diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..53c00e0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.bin +*.html +*.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4653eab --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/LICENSE b/LICENSE index 6612c2e..5f66013 100644 --- a/LICENSE +++ b/LICENSE @@ -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 @@ -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. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..881e342 --- /dev/null +++ b/README.md @@ -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)