mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Installs glide in the docker container
This commit is contained in:
parent
21e7d7e209
commit
c7a0aa371d
2 changed files with 14 additions and 2 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -7,8 +7,20 @@ VOLUME /data
|
|||
|
||||
RUN echo 'data-dir = "/data"' > /config
|
||||
|
||||
RUN git clone --depth 1 https://github.com/Masterminds/glide.git /go/src/github.com/Masterminds/glide \
|
||||
&& cd /go/src/github.com/Masterminds/glide \
|
||||
&& git fetch --tags --depth 1 \
|
||||
&& git checkout tags/v0.12.3 -b build \
|
||||
&& make build \
|
||||
&& mv ./glide /go/bin \
|
||||
&& cd / \
|
||||
&& rm -r /go/src/github.com/Masterminds/glide
|
||||
|
||||
COPY . /go/src/github.com/pilosa/pilosa
|
||||
RUN CGO_ENABLED=0 go install -a github.com/pilosa/pilosa/cmd/pilosa
|
||||
|
||||
RUN cd /go/src/github.com/pilosa/pilosa \
|
||||
&& make vendor \
|
||||
&& CGO_ENABLED=0 go install -a github.com/pilosa/pilosa/cmd/pilosa
|
||||
|
||||
ENTRYPOINT ["/go/bin/pilosa"]
|
||||
CMD ["-config", "/config"]
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -43,5 +43,5 @@ install: vendor
|
|||
go install $(LDFLAGS) $(FLAGS) $(CLONE_URL)/cmd/pilosa
|
||||
go install $(LDFLAGS) $(FLAGS) $(CLONE_URL)/cmd/pilosactl
|
||||
|
||||
docker: vendor
|
||||
docker:
|
||||
docker build -t pilosa:latest .
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue