forked from dajobe/hbase-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (29 loc) · 808 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
33
34
35
36
37
38
39
40
41
# HBase in Docker
#
# Version 0.3
# http://docs.docker.io/en/latest/use/builder/
FROM ubuntu:xenial
MAINTAINER Dave Beckett <dave@dajobe.org>
COPY *.sh /build/
ENV HBASE_VERSION 1.2.4
RUN /build/prepare-hbase.sh && \
cd /opt/hbase && /build/build-hbase.sh \
cd / && /build/cleanup-hbase.sh && rm -rf /build
VOLUME /data
ADD ./hbase-site.xml /opt/hbase/conf/hbase-site.xml
ADD ./zoo.cfg /opt/hbase/conf/zoo.cfg
ADD ./replace-hostname /opt/replace-hostname
ADD ./hbase-server /opt/hbase-server
# REST API
EXPOSE 8080
# REST Web UI at :8085/rest.jsp
EXPOSE 8085
# Thrift API
EXPOSE 9090
# Thrift Web UI at :9095/thrift.jsp
EXPOSE 9095
# HBase's Embedded zookeeper cluster
EXPOSE 2181
# HBase Master web UI at :16010/master-status; ZK at :16010/zk.jsp
EXPOSE 16010
CMD ["/opt/hbase-server"]