File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM quay.io/deis/base:v0.3.6
1+ FROM nsqio/nsq:v1.1.0
22
3- RUN adduser --system \
4- --shell /bin/bash \
5- --disabled-password \
6- --home /opt/nsq \
7- --group \
8- nsq \
9- && curl -Ls https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > /usr/bin/jq \
10- && chmod +x /usr/bin/jq \
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 \
14- && mkdir /opt/nsq/data
3+ RUN mkdir -p /opt/nsq/data \
4+ && adduser \
5+ -s /bin/sh \
6+ -D \
7+ -h /opt/nsq \
8+ nsq \
9+ nsq
10+
11+ ADD https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 /usr/bin/jq
1512
1613COPY . /
1714RUN chown -R nsq:nsq /opt/nsq
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22set -eo pipefail
33
44export CONFIG_PATH=${CONFIG_PATH:-/ opt/ nsq/ conf/ nsqd.cfg}
You can’t perform that action at this time.
0 commit comments