-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (30 loc) · 955 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
42
43
44
45
46
47
FROM openjdk:8-jre-slim
RUN apt-get update
RUN apt-get install -y curl
RUN groupadd --system --gid 7447 hbase
RUN adduser --system --gid 7447 --uid 7447 --shell /bin/bash --home /opt/hbase hbase
WORKDIR /opt/hbase
RUN mkdir schema
COPY target/libs /opt/hbase/libs
COPY target/docker-phoenix-mini.jar /opt/hbase/
RUN chown -R hbase:hbase .
USER hbase
ENV HOME=/opt/hbase
# health check (http://localhost:18080/health)
EXPOSE 18080
# hbase.zookeeper.property.clientPort
EXPOSE 2181
# hbase.master.port
EXPOSE 16000
# hbase.master.info.port (http://localhost:16010/master-status)
EXPOSE 16010
# hbase.regionserver.port
EXPOSE 16020
# hbase.regionserver.info.port (http://localhost:16030/rs-status)
EXPOSE 16030
# hbase.rest.port
EXPOSE 8080
# hbase.rest.info.port
EXPOSE 8085
HEALTHCHECK --interval=5s --timeout=1m CMD curl --fail -s http://localhost:18080/health || exit 1
CMD ${JAVA_HOME}/bin/java ${JVM_ARGS} -jar docker-phoenix-mini.jar