Skip to content

Commit

Permalink
Merge pull request #7 from teamhephy/feature/upgrading-nsqd-version-1…
Browse files Browse the repository at this point in the history
….1.0

feat(nsq): update to version nsq-1.1.0
  • Loading branch information
Cryptophobia authored Nov 14, 2018
2 parents b579e20 + c4d3a87 commit 2464eb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
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

0 comments on commit 2464eb3

Please sign in to comment.