mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-15 08:41:02 +00:00
Merge pull request #288 from pilosa/docker-support
Added initial Dockerfile and docker target
This commit is contained in:
commit
e8d7d8a010
3 changed files with 18 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
.*
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
||||
3
Makefile
3
Makefile
|
|
@ -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 .
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue