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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ A NSQ image for running on a kubernetes cluster.
## Description
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.

[v2.18]: https://github.com/deisthree/workflow/releases/tag/v2.18.0
[v2.18]: https://github.com/teamhephy/workflow/releases/tag/v2.18.0
6 changes: 3 additions & 3 deletions charts/nsqd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: nsqd
home: https://github.com/deisthree/nsq
home: https://github.com/teamhephy/nsq
version: <Will be populated by the ci before publishing the chart>
description: A kubernetes based docker image for running nsq daemon.
maintainers:
- name: Deis Team
email: engineering@deis.com
- name: Team Hephy
email: team@teamhephy.com
7 changes: 4 additions & 3 deletions rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +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 -s https://s3.amazonaws.com/bitly-downloads/nsq/nsq-0.3.8.linux-amd64.go1.6.2.tar.gz | tar xz \
&& mv /nsq-0.3.8.linux-amd64.go1.6.2/bin/* /bin \
&& rm -r /nsq-0.3.8.linux-amd64.go1.6.2 \
&& 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 \
&& mkdir /opt/nsq/data

COPY . /
RUN chown -R nsq:nsq /opt/nsq
USER nsq
WORKDIR /opt/nsq/data
3 changes: 2 additions & 1 deletion rootfs/opt/nsq/bin/start-nsqd
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ set -eo pipefail

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

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

## maximum RDY count for a client
max_rdy_count = 10000