nats-box icon indicating copy to clipboard operation
nats-box copied to clipboard

Add jq binary to nats-box

Open FalxDraco opened this issue 2 years ago • 1 comments

Hello,

Some of NATS.io docs make use of jq to showcase administration & usage examples, however nats-box docker image does not include a jq binary.

docker-desktop:~# nats str info test-stream -j
{
  "config": {
    "name": "test-stream",
    "subjects": [
      "stream-subject-a",
      "stream-subject-b"
    ],
    "retention": "limits",
    "max_consumers": -1,
    "max_msgs_per_subject": -1,
    "max_msgs": -1,
    "max_bytes": -1,
    "max_age": 0,
    "max_msg_size": -1,
    "storage": "memory",
    "discard": "old",
    "num_replicas": 1,
    "duplicate_window": 120000000000
  },
  "created": "2021-10-28T17:01:27.6609806Z",
  "state": {
    "messages": 0,
    "bytes": 0,
    "first_seq": 0,
    "first_ts": "0001-01-01T00:00:00Z",
    "last_seq": 0,
    "last_ts": "0001-01-01T00:00:00Z",
    "consumer_count": 0
  }
}
docker-desktop:~# nats str info test-stream -j | jq .config.subjects
/bin/sh: jq: not found

Could you guys please add jq to the official image?

FalxDraco avatar Oct 28 '21 19:10 FalxDraco

sounds good to me!

wallyqs avatar Oct 28 '21 19:10 wallyqs