Skip to content
Permalink
Browse files

feat(nsq): using official maintenance of the base image

  • Loading branch information...
duanhongyi duanhongyi
duanhongyi authored and duanhongyi committed Nov 12, 2018
1 parent c4d3a87 commit be64d9324268b92221b0aa8663109eb98be7217d
Showing with 11 additions and 14 deletions.
  1. +10 −13 rootfs/Dockerfile
  2. +1 −1 rootfs/opt/nsq/bin/start-nsqd
@@ -1,17 +1,14 @@
FROM quay.io/deis/base:v0.3.6
FROM nsqio/nsq:v1.1.0

RUN adduser --system \
--shell /bin/bash \
--disabled-password \
--home /opt/nsq \
--group \
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.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
RUN mkdir -p /opt/nsq/data \
&& adduser \
-s /bin/sh \
-D \
-h /opt/nsq \
nsq \
nsq

ADD https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 /usr/bin/jq

COPY . /
RUN chown -R nsq:nsq /opt/nsq
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -eo pipefail

export CONFIG_PATH=${CONFIG_PATH:-/opt/nsq/conf/nsqd.cfg}

0 comments on commit be64d93

Please sign in to comment.
You can’t perform that action at this time.