-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 916 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
25
26
27
28
29
30
31
32
FROM alpine:3.4
MAINTAINER Jeff Hemminger <[email protected]>
ENV TITAN_VERSION 1.0.0
ENV TITAN_FILE titan-$TITAN_VERSION-hadoop1.zip
ENV TITAN_URL "http://s3.thinkaurelius.com/downloads/titan/$TITAN_FILE"
ENV PATH $PATH:/titan/bin
LABEL Description="TitanDB", "Version: "="$TITAN_VERSION"
WORKDIR /
RUN \
apk update && \
apk add bash openjdk8-jre-base wget zip && \
wget -t 100 --retry-connrefused -O "titan-$TITAN_VERSION.zip" "$TITAN_URL" && \
unzip titan-$TITAN_VERSION.zip && \
mv titan-$TITAN_VERSION-hadoop1 titan-$TITAN_VERSION && \
ln -sv titan-$TITAN_VERSION titan && \
rm -fv titan-$TITAN_VERSION.zip && \
apk del zip wget
ADD ./conf/titan-hbase-es.properties /titan/conf
#ADD ./conf/gremlin-server.yaml /titan/conf/gremlin-server
ADD ./conf/remote.yaml /titan/conf
EXPOSE 8182
EXPOSE 8183
EXPOSE 8184
CMD ["/bin/bash", "-e", "/titan/bin/gremlin-server.sh"]