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 #22 from nats-io/include_nats_server
Browse files Browse the repository at this point in the history
include nats-server in the image
  • Loading branch information
ripienaar authored Dec 31, 2019
2 parents c00b7a6 + 917e0db commit 0cf7300
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM synadia/nats-server:2.2.0-JS-preview AS JS

FROM synadia/nats-box:latest

COPY --from=JS /nats-server /nats-server

# goreleaser does the build
COPY jsm /usr/local/bin/

Expand Down
2 changes: 1 addition & 1 deletion jsm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {

jsm.HelpFlag.Short('h')

jsm.Flag("server", "NATS servers").Short('s').Default("localhost:4222").StringVar(&servers)
jsm.Flag("server", "NATS servers").Short('s').Default("localhost:4222").Envar("SERVERS").StringVar(&servers)
jsm.Flag("creds", "User credentials").StringVar(&creds)
jsm.Flag("tlscert", "TLS public certificate").ExistingFileVar(&tlsCert)
jsm.Flag("tlskey", "TLS private key").ExistingFileVar(&tlsCert)
Expand Down
2 changes: 2 additions & 0 deletions jsm/obs_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ func (c *obsCmd) createAction(pc *kingpin.ParseContext) (err error) {
c.cfg.AckPolicy = api.AckExplicit
}

c.cfg.AckWait = c.ackWait

if c.cfg.Delivery != "" {
if c.replyPolicy == "" {
mode := ""
Expand Down

0 comments on commit 0cf7300

Please sign in to comment.