From d4cefacb3d570343e22b48dc8e1bc9e69504d097 Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Thu, 23 Jan 2020 16:02:29 -0800 Subject: [PATCH 1/2] Mention nats-box in the docs for nsc --- nats-tools/nsc/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nats-tools/nsc/README.md b/nats-tools/nsc/README.md index c88b76d..782807d 100644 --- a/nats-tools/nsc/README.md +++ b/nats-tools/nsc/README.md @@ -21,6 +21,25 @@ curl -L https://raw.githubusercontent.com/nats-io/nsc/master/install.py | python The script will download the latest version of `nsc` and install it into your system. +Alternatively, you can use `nsc` with using the [nats-box](https://hub.docker.com/r/synadia/nats-box) Docker image: + +```sh +$ docker run --rm -it -v $(pwd)/nsc:/nsc synadia/nats-box:latest + +# In case NSC not initialized already: +nats-box:~# nsc init +nats-box:~# chmod -R 1000:1000 /nsc +$ tree -L 2 nsc/ +nsc/ +├── accounts +│ ├── nats +│ └── nsc.json +└── nkeys + ├── creds + └── keys +5 directories, 1 file +``` + ## Tutorials You can find various task-oriented tutorials to working with the tool here: From 365fdd7e25b7dfadbaa791cd56354f91992d6037 Mon Sep 17 00:00:00 2001 From: Ginger Collison Date: Fri, 24 Jan 2020 09:29:20 -0600 Subject: [PATCH 2/2] Update README.md --- nats-tools/nsc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nats-tools/nsc/README.md b/nats-tools/nsc/README.md index 782807d..a1ed31e 100644 --- a/nats-tools/nsc/README.md +++ b/nats-tools/nsc/README.md @@ -21,7 +21,7 @@ curl -L https://raw.githubusercontent.com/nats-io/nsc/master/install.py | python The script will download the latest version of `nsc` and install it into your system. -Alternatively, you can use `nsc` with using the [nats-box](https://hub.docker.com/r/synadia/nats-box) Docker image: +Alternatively, you can use `nsc` with the [nats-box](https://hub.docker.com/r/synadia/nats-box) Docker image: ```sh $ docker run --rm -it -v $(pwd)/nsc:/nsc synadia/nats-box:latest