Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN adduser --system \
nsq \
&& curl -Ls https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > /usr/bin/jq \
&& chmod +x /usr/bin/jq \
&& 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 \
&& mv /nsq-1.0.0-compat.linux-amd64.go1.8/bin/* /bin \
&& rm -r /nsq-1.0.0-compat.linux-amd64.go1.8 \
&& 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 \
&& mv /nsq-1.1.0.linux-amd64.go1.10.3/bin/* /bin \
&& rm -r /nsq-1.1.0.linux-amd64.go1.10.3 \
&& mkdir /opt/nsq/data

COPY . /
RUN chown -R nsq:nsq /opt/nsq
USER nsq
WORKDIR /opt/nsq/data
WORKDIR /
2 changes: 0 additions & 2 deletions rootfs/opt/nsq/bin/start-nsqd
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash
set -eo pipefail

export MAX_READY_COUNT=${MAX_READY_COUNT:-10000}
export DATA_PATH=${DATA_PATH:-/opt/nsq/data}
export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}
exec nsqd -config "${CONFIG_PATH}"
4 changes: 2 additions & 2 deletions rootfs/opt/nsq/conf/nsqd.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
## log verbosity level: debug, info, warn, error, or fatal
log-level = "warn"
log_level = "warn"
verbose = false

## path to store disk-backed messages
# data_path = "/opt/nsq/data"
data_path = "/opt/nsq/data"

## maximum RDY count for a client
max_rdy_count = 10000