Skip to content

Commit c4d3a87

Browse files
committed
feat(nsq): update to version nsq-1.1.0
Upgrading the nsq version to 1.1.0 and setting log level to warn to save on the logs. Users can override this setting by editing the config and building their own image for now.
1 parent b579e20 commit c4d3a87

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

rootfs/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ RUN adduser --system \
88
nsq \
99
&& curl -Ls https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > /usr/bin/jq \
1010
&& chmod +x /usr/bin/jq \
11-
&& curl -sL https://github.com/nsqio/nsq/releases/download/v1.0.0-compat/nsq-1.0.0-compat.linux-amd64.go1.8.tar.gz | tar xz \
12-
&& mv /nsq-1.0.0-compat.linux-amd64.go1.8/bin/* /bin \
13-
&& rm -r /nsq-1.0.0-compat.linux-amd64.go1.8 \
11+
&& curl -sL https://github.com/nsqio/nsq/releases/download/v1.1.0/nsq-1.1.0.linux-amd64.go1.10.3.tar.gz | tar xz \
12+
&& mv /nsq-1.1.0.linux-amd64.go1.10.3/bin/* /bin \
13+
&& rm -r /nsq-1.1.0.linux-amd64.go1.10.3 \
1414
&& mkdir /opt/nsq/data
1515

1616
COPY . /
1717
RUN chown -R nsq:nsq /opt/nsq
1818
USER nsq
19-
WORKDIR /opt/nsq/data
19+
WORKDIR /

rootfs/opt/nsq/bin/start-nsqd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22
set -eo pipefail
33

4-
export MAX_READY_COUNT=${MAX_READY_COUNT:-10000}
5-
export DATA_PATH=${DATA_PATH:-/opt/nsq/data}
64
export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}
75
exec nsqd -config "${CONFIG_PATH}"

rootfs/opt/nsq/conf/nsqd.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
## log verbosity level: debug, info, warn, error, or fatal
2-
log-level = "warn"
2+
log_level = "warn"
33
verbose = false
44

55
## path to store disk-backed messages
6-
# data_path = "/opt/nsq/data"
6+
data_path = "/opt/nsq/data"
77

88
## maximum RDY count for a client
99
max_rdy_count = 10000

0 commit comments

Comments
 (0)