forked from pygmalios/docker-hbase-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 1.21 KB
/
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
## -*- docker-image-name: "banno/hbase-standalone" -*-
FROM ubuntu:12.04
MAINTAINER Nic Grayson [email protected]
# install add-apt-repository
RUN \
apt-get update && \
apt-get install -y python-software-properties curl
# install java
RUN \
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java7-installer
# install hbase master
RUN mkdir /opt/hbase
RUN wget -q https://github.com/Banno/docker-hbase-standalone/raw/master/hbase-0.94.15-cdh4.7.0.tar.gz -O /opt/hbase/hbase-0.94.15-cdh4.7.0.tar.gz
RUN cd /opt/hbase && tar xfvz hbase-0.94.15-cdh4.7.0.tar.gz
ADD hbase-site.xml /opt/hbase/hbase-0.94.15-cdh4.7.0/conf/hbase-site.xml
# need this for hbase to run
ENV JAVA_HOME /usr
# zookeeper
EXPOSE 2181
# HBase Master API port
EXPOSE 60000
# HBase Master Web UI
EXPOSE 60010
# Regionserver API port
EXPOSE 60020
# HBase Regionserver web UI
EXPOSE 60030
# Add HBASE to path
ENV PATH /opt/hbase/hbase-0.94.15-cdh4.7.0/bin:$PATH
CMD /opt/hbase/hbase-0.94.15-cdh4.7.0/bin/hbase master start