Merge pull request #288 from pilosa/docker-support

Added initial Dockerfile and docker target
This commit is contained in:
Yuce Tekol 2017-02-13 00:27:43 +02:00 committed by GitHub
commit e8d7d8a010
3 changed files with 18 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
.*

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM golang:1.7.5
MAINTAINER Pilosa Corp. <dev@pilosa.com>
EXPOSE 15000
VOLUME /data
RUN echo 'data-dir = "/data"' > /config
COPY . /go/src/github.com/pilosa/pilosa
RUN CGO_ENABLED=0 go install -a github.com/pilosa/pilosa/cmd/pilosa
ENTRYPOINT ["/go/bin/pilosa"]
CMD ["-config", "/config"]

View file

@ -5,3 +5,6 @@ default:
vendor:
godep save ./...
cp -r $(GOPATH)/src/github.com/gogo/protobuf/proto/testdata vendor/github.com/gogo/protobuf/proto/testdata
docker:
docker build -t pilosa:latest .