Skip to content

Commit

Permalink
Updates:
Browse files Browse the repository at this point in the history
	- uplift rpm version to latest 0.14.0
	- add instruction of building docker image locally
	- set entrypoint in dockerfile to only supply argument
  • Loading branch information
zdtsw committed Jun 13, 2022
1 parent c29cc39 commit d7e839a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,21 @@ $ brew update && brew install cassowary
```

### Docker
You can run **cassowary** directly by using it's Docker image:
You can run **cassowary** directly by using its official Docker image:

```bash
$ docker run rogerw/cassowary:v0.14.0 cassowary run -u http://www.example.com -c 1 -n 10
```

For local development:

```bash
$ env GOOS=linux go build -o dist/docker
$ docker build -f dist/docker/Dockerfile -t test_cassowary dist/docker
$ docker run test_cassowary -u http://www.example.com -c 1 -n 10
```
Without argument when doing "docker run" it prints help usage

### Nix/NixOS

Cassowary can be installed via the [Nix](https://nixos.org) package manager.
Expand Down
1 change: 1 addition & 0 deletions dist/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM alpine:3.12.4
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY cassowary /usr/bin/cassowary
ENTRYPOINT ["cassowary", "run"]
4 changes: 3 additions & 1 deletion dist/rpm/cassowary.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global bindir /usr/local/sbin

Name: cassowary
Version: 0.10.0
Version: 0.14.0
Release: 1
Summary: Modern cross-platform HTTP load-testing tool written in Go
License: MIT
Expand Down Expand Up @@ -30,3 +30,5 @@ Modern cross-platform HTTP load-testing tool written in Go
%changelog
* Fri Jan 24 2020 <[email protected]>
- Cassowary spec file
* Mon Jun 13 2022 <[email protected]>
- Uplift release version

0 comments on commit d7e839a

Please sign in to comment.