Skip to content

Commit b579e20

Browse files
authored
Merge pull request #4 from teamhephy/feature/lower-log-level-or-make-configurable
Update nsq version, add config, lower log-level, fix URLs and emails
2 parents 2f31401 + e285a57 commit b579e20

5 files changed

Lines changed: 19 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ A NSQ image for running on a kubernetes cluster.
1111
## Description
1212
NSQ is a high performance realtime distributed messaging platform. This image is for running `nsqd` on a kubernetes cluster. It provides no data persistence or the `nsqlookupd` service. Access to the queue is provided through a service ip.
1313

14-
[v2.18]: https://github.com/deisthree/workflow/releases/tag/v2.18.0
14+
[v2.18]: https://github.com/teamhephy/workflow/releases/tag/v2.18.0

charts/nsqd/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: nsqd
2-
home: https://github.com/deisthree/nsq
2+
home: https://github.com/teamhephy/nsq
33
version: <Will be populated by the ci before publishing the chart>
44
description: A kubernetes based docker image for running nsq daemon.
55
maintainers:
6-
- name: Deis Team
7-
email: engineering@deis.com
6+
- name: Team Hephy
7+
email: team@teamhephy.com

rootfs/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +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 -s https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.3.8.linux-amd64.go1.6.2.tar.gz | tar xz \
12-
&& mv /nsq-0.3.8.linux-amd64.go1.6.2/bin/* /bin \
13-
&& rm -r /nsq-0.3.8.linux-amd64.go1.6.2 \
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 \
1414
&& mkdir /opt/nsq/data
1515

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

rootfs/opt/nsq/bin/start-nsqd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ set -eo pipefail
33

44
export MAX_READY_COUNT=${MAX_READY_COUNT:-10000}
55
export DATA_PATH=${DATA_PATH:-/opt/nsq/data}
6-
exec nsqd -max-rdy-count "${MAX_READY_COUNT}" --data-path "${DATA_PATH}"
6+
export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}
7+
exec nsqd -config "${CONFIG_PATH}"

rootfs/opt/nsq/conf/nsqd.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## log verbosity level: debug, info, warn, error, or fatal
2+
log-level = "warn"
3+
verbose = false
4+
5+
## path to store disk-backed messages
6+
# data_path = "/opt/nsq/data"
7+
8+
## maximum RDY count for a client
9+
max_rdy_count = 10000

0 commit comments

Comments
 (0)