mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
before:
Step 6/13 : RUN wget ${GLIDE} -O /go/glide.tar.gz -q && tar xf /go/glide.tar.gz && mv /go/linux-amd64/glide /go/bin && [ "$(sha256sum /go/bin/glide | cut -d' ' -f1)" = "$GLIDE_HASH" ] && cd /go/src/github.com/pilosa/pilosa && make vendor && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
---> Running in e2a6fcdf5930
The command '/bin/sh -c wget ${GLIDE} -O /go/glide.tar.gz -q && tar xf /go/glide.tar.gz && mv /go/linux-amd64/glide /go/bin && [ "$(sha256sum /go/bin/glide | cut -d' ' -f1)" = "$GLIDE_HASH" ] && cd /go/src/github.com/pilosa/pilosa && make vendor && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa' returned a non-zero code: 1
make: *** [docker] Error 1
after:
Step 6/13 : RUN wget ${GLIDE} -O /go/glide.tar.gz -q && tar xf /go/glide.tar.gz && mv /go/linux-amd64/glide /go/bin && echo "${GLIDE_HASH} /go/bin/glide" | shasum -a 256 -c - && cd /go/src/github.com/pilosa/pilosa && make vendor && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
---> Running in 5aaaab387641
shasum: WARNING: 1 computed checksum did NOT match
/go/bin/glide: FAILED
The command '/bin/sh -c wget ${GLIDE} -O /go/glide.tar.gz -q && tar xf /go/glide.tar.gz && mv /go/linux-amd64/glide /go/bin && echo "${GLIDE_HASH} /go/bin/glide" | shasum -a 256 -c - && cd /go/src/github.com/pilosa/pilosa && make vendor && CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa' returned a non-zero code: 1
make: *** [docker] Error 1
27 lines
800 B
Docker
27 lines
800 B
Docker
FROM golang:1.8.1 as builder
|
|
|
|
ARG ldflags=''
|
|
ARG GLIDE="https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz"
|
|
ARG GLIDE_HASH="d6d3816c70fba716466e7381a9c06cb31565a3b87acb5bad9dd3beb0a9f9b0f8"
|
|
|
|
COPY . /go/src/github.com/pilosa/pilosa
|
|
|
|
RUN wget ${GLIDE} -O /go/glide.tar.gz -q \
|
|
&& tar xf /go/glide.tar.gz \
|
|
&& mv /go/linux-amd64/glide /go/bin \
|
|
&& echo "${GLIDE_HASH} /go/bin/glide" | shasum -a 256 -c - \
|
|
&& cd /go/src/github.com/pilosa/pilosa \
|
|
&& make vendor \
|
|
&& CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
|
|
|
|
FROM scratch
|
|
|
|
LABEL maintainer "dev@pilosa.com"
|
|
|
|
COPY --from=builder /go/bin/pilosa /pilosa
|
|
|
|
EXPOSE 10101
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["/pilosa"]
|
|
CMD ["server", "--data-dir", "/data"]
|