forked from dhardy92/thumbor_hbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1 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
FROM debian:squeeze
# Install basics
RUN \
apt-get -qq update && \
apt-get -y install wget python-software-properties && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install Java
RUN \
apt-get update && \
apt-get install -y openjdk-6-jre-headless && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install HBase 0.92.1 of CDH 4.1.2
RUN \
echo "deb http://archive.cloudera.com/cdh4/debian/squeeze/amd64/cdh squeeze-cdh4 contrib" > /etc/apt/sources.list.d/cloudera_repository.list && \
wget -qO - http://archive.cloudera.com/cdh4/debian/squeeze/amd64/cdh/archive.key | apt-key add - && \
apt-get update && \
apt-get install -y hbase-master hbase-thrift && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Supervisor
RUN \
apt-get -qq update && \
apt-get install -y supervisor && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD supervisor.conf /etc/supervisor.conf
# Thrift API
EXPOSE 9090
# Thrift Web UI
EXPOSE 9095
CMD ["supervisord", "-c", "/etc/supervisor.conf"]