Skip to content

Commit

Permalink
Rewrap docker commands in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ionthegeek committed Apr 22, 2023
1 parent a06f947 commit d9331b7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ concurrent API requests:
## Compile

```
docker run --rm -v "$PWD/promdump":/promdump -w /promdump golang:1.19 go build -ldflags=" -X 'main.CommitHash=$(git rev-parse HEAD)' -X 'main.BuildTime=$(date -Iseconds)'"
docker run --rm -v "$PWD/promremotewrite":/promremotewrite -w /promremotewrite golang:1.19 go build -ldflags=" -X 'main.CommitHash=$(git rev-parse HEAD)' -X 'main.BuildTime=$(date -Iseconds)'"
docker run --rm \
-v "$PWD/promdump":/promdump \
-w /promdump golang:1.19 \
go build \
-ldflags=" -X 'main.CommitHash=$(git rev-parse HEAD)' -X 'main.BuildTime=$(date -Iseconds)'"
docker run --rm \
-v "$PWD/promremotewrite":/promremotewrite \
-w /promremotewrite golang:1.19 \
go build \
-ldflags=" -X 'main.CommitHash=$(git rev-parse HEAD)' -X 'main.BuildTime=$(date -Iseconds)'"
```

## License
Expand Down

0 comments on commit d9331b7

Please sign in to comment.