forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 876 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM cockroachdb/cockroach-devbase:latest
MAINTAINER Tobias Schottdorf <[email protected]>
ENV ROACHPATH /go/src/github.com/cockroachdb
# Copy the contents of the cockroach source directory to the image.
# Any changes which have been made to the source directory will cause
# the docker image to be rebuilt starting at this cached step.
ADD . ${ROACHPATH}/cockroach/
RUN ln -s ${ROACHPATH}/cockroach/build/devbase/cockroach.sh ${ROACHPATH}/cockroach/cockroach.sh
# Build the cockroach executable.
RUN cd -P ${ROACHPATH}/cockroach && make build
# Expose the http status port.
EXPOSE 8080
# This is the command to run when this image is launched as a container.
# Environment variable expansion doesn't seem to work here.
ENTRYPOINT ["/go/src/github.com/cockroachdb/cockroach/cockroach.sh"]
# These are default arguments to the cockroach binary.
CMD ["--help"]