"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Dockerfile" between
nsq-1.2.0.tar.gz and nsq-1.2.1.tar.gz

About: nsq is a realtime distributed and and decentralized messaging platform.

Dockerfile  (nsq-1.2.0):Dockerfile  (nsq-1.2.1)
FROM golang:latest AS build FROM golang:alpine AS build
RUN mkdir -p /go/src/github.com/nsqio/nsq RUN apk update && apk add make gcc musl-dev
COPY . /go/src/github.com/nsqio/nsq
WORKDIR /go/src/github.com/nsqio/nsq RUN mkdir -p /go/src/github.com/nsqio/nsq
COPY . /go/src/github.com/nsqio/nsq
WORKDIR /go/src/github.com/nsqio/nsq
RUN export GO111MODULE=on \ RUN ./test.sh
&& ./test.sh \ RUN CGO_ENABLED=0 make PREFIX=/opt/nsq BLDFLAGS='-ldflags="-s -w"' install
&& CGO_ENABLED=0 make DESTDIR=/opt PREFIX=/nsq BLDFLAGS='-ldflags="-s -w"' inst
all
FROM alpine:3.7 FROM alpine:latest
EXPOSE 4150 4151 4160 4161 4170 4171 EXPOSE 4150 4151 4160 4161 4170 4171
# Optional volumes RUN mkdir -p /data
# /data - used for persistent storage across reboots WORKDIR /data
# VOLUME /data
# /etc/ssl/certs - directory for SSL certificates # set up nsswitch.conf for Go's "netgo" implementation
# VOLUME /etc/ssl/certs # https://github.com/golang/go/issues/35305
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
# Optional volumes (explicitly configure with "docker run -v ...")
# /data - used by nsqd for persistent storage across restarts
# /etc/ssl/certs - for SSL Root CA certificates from host
COPY --from=build /opt/nsq/bin/ /usr/local/bin/ COPY --from=build /opt/nsq/bin/ /usr/local/bin/
RUN ln -s /usr/local/bin/*nsq* / \ RUN ln -s /usr/local/bin/*nsq* / \
&& ln -s /usr/local/bin/*nsq* /bin/ && ln -s /usr/local/bin/*nsq* /bin/
 End of changes. 6 change blocks. 
14 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)