https://github.com/google/cayley
Revision 7ba88e748e9a9e1077ce189960bf93c087e6e3ef authored by Denys Smirnov on 13 March 2016, 16:59:48 UTC, committed by Denys Smirnov on 15 July 2016, 00:52:05 UTC
1 parent ce2c62e
Raw File
Tip revision: 7ba88e748e9a9e1077ce189960bf93c087e6e3ef authored by Denys Smirnov on 13 March 2016, 16:59:48 UTC
Update value comparison iterator. Stop graph.Value madness.
Tip revision: 7ba88e7
Dockerfile
FROM golang:latest
MAINTAINER Barak Michener <me@barakmich.com>

# Set up workdir
WORKDIR /go/src/github.com/cayleygraph/cayley

# Restore vendored dependencies
RUN go get github.com/tools/godep
ADD Godeps /go/src/github.com/cayleygraph/cayley/Godeps
RUN godep restore

# Add and install cayley
ADD . .
RUN go install -v github.com/cayleygraph/cayley/cmd/cayley

# Expose the port and volume for configuration and data persistence. If you're
# using a backend like bolt, make sure the file is saved to this directory.
RUN mkdir /data #VOLUME ["/data"]
EXPOSE 64210

RUN echo '{"database":"bolt","db_path":"/data/cayley","read_only":false}' > /data/cayley.cfg
RUN cayley init -db bolt -dbpath /data/cayley -quads ./data/30kmoviedata.nq.gz

ENTRYPOINT ["cayley", "http", "-config", "/data/cayley.cfg", "-host", "0.0.0.0", "-port", "64210"]
back to top