Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #102 from nats-io/unified_nats
Browse files Browse the repository at this point in the history
unified nats command
  • Loading branch information
ripienaar authored Feb 24, 2020
2 parents d350411 + e21997c commit 76dec17
Show file tree
Hide file tree
Showing 32 changed files with 3,794 additions and 199 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ pkg
# bin
jsm/jsm
dist
nats/nats
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,30 @@ changelog:
skip: true

builds:
- main: ./nats
id: nats
binary: nats
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
ignore:
- goos: darwin
goarch: 386

- main: ./jsm
id: jsm
binary: jsm
env:
- GO111MODULE=on
Expand Down Expand Up @@ -46,6 +69,7 @@ dockers:
skip_push: true
binaries:
- jsm
- nats
image_templates:
- "synadia/jsm:latest"
- "synadia/jsm:{{.Version}}"
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ install:
before_script:
- GO_LIST=$(go list ./...)
- cd jsm;go build;cd -
- cd nats;go build ;cd -
- $(exit $(go fmt $GO_LIST | wc -l))
- go vet $GO_LIST
- find . -type f -name "*.go" | grep -v "/vendor/" | xargs misspell -error -locale US
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY --from=JQ /usr/local/bin/jq /usr/local/bin/jq

# goreleaser does the build
COPY jsm /usr/local/bin/
COPY nats /usr/local/bin/
COPY README.md /
COPY ngs-server.conf /
COPY entrypoint.sh /
Expand All @@ -18,4 +19,5 @@ ENV NATS_URL=jetstream:4222

RUN apk add --update ca-certificates man bash && \
mkdir -p /usr/share/man/man1 && \
jsm --help-man > /usr/share/man/man1/jsm.1
jsm --help-man > /usr/share/man/man1/jsm.1 && \
nats --help-man > /usr/share/man/man1/nats.1
Loading

0 comments on commit 76dec17

Please sign in to comment.