blob: fc6fadc90fcf260b0679eb4bf32de8a510f696f2 [file] [log] [blame]
FROM openjdk:8
ARG HBASE_VERSION
ARG HBASE_DIR
ARG PHOENIX_VERSION
ARG PHOENIX_NAME=apache-phoenix
ENV HBASE_URL https://archive.apache.org/dist/hbase/$HBASE_DIR/hbase-$HBASE_VERSION-bin.tar.gz
RUN wget --no-verbose -O hbase.tar.gz "$HBASE_URL" && \
mkdir /opt/hbase && \
tar xf hbase.tar.gz --strip-components=1 -C /opt/hbase && \
rm hbase.tar.gz
ENV PHOENIX_URL https://archive.apache.org/dist/phoenix/apache-phoenix-$PHOENIX_VERSION/bin/apache-phoenix-$PHOENIX_VERSION-bin.tar.gz
RUN wget --no-verbose -O phoenix.tar.gz "$PHOENIX_URL" && \
mkdir /opt/phoenix && \
tar xf phoenix.tar.gz --strip-components=1 -C /opt/phoenix && \
rm phoenix.tar.gz
RUN ln -sv /opt/phoenix/phoenix-*-server.jar /opt/hbase/lib/
ADD hbase-site.xml /opt/hbase/conf/hbase-site.xml
ENV HBASE_CONF_DIR /opt/hbase/conf
ENV HBASE_CP /opt/hbase/lib
ENV HBASE_HOME /opt/hbase
EXPOSE 8765
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]