2022-07-28 09:24:05 +00:00
|
|
|
FROM openjdk:8u342-slim
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2023-03-03 08:31:13 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
ENV HBASE_REPOSITORY=http://apache.mirrors.pair.com/hbase
|
|
|
|
ENV HBASE_SUB_REPOSITORY=http://archive.apache.org/dist/hbase
|
|
|
|
|
|
|
|
ENV HBASE_VERSION=1.2.6
|
|
|
|
ENV BASE_DIR=/opt/hbase
|
|
|
|
ENV HBASE_HOME=${BASE_DIR}/hbase-${HBASE_VERSION}
|
|
|
|
|
|
|
|
COPY hbase-site.xml hbase-site.xml
|
2020-09-10 10:49:30 +00:00
|
|
|
COPY hbase-env.sh hbase-env.sh
|
|
|
|
COPY /build/scripts/initialize-hbase.sh /usr/local/bin/
|
|
|
|
COPY /build/scripts/check-table.sh /usr/local/bin/
|
2022-08-10 07:33:11 +00:00
|
|
|
COPY /build/scripts/configure-hbase.sh /usr/local/bin
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2022-07-28 09:24:05 +00:00
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
|
|
|
&& chmod a+x /usr/local/bin/initialize-hbase.sh \
|
2020-09-10 10:49:30 +00:00
|
|
|
&& chmod a+x /usr/local/bin/check-table.sh \
|
2022-08-10 07:33:11 +00:00
|
|
|
&& chmod a+x /usr/local/bin/configure-hbase.sh \
|
2020-09-10 10:49:30 +00:00
|
|
|
&& mkdir -p ${BASE_DIR} \
|
2018-05-11 09:30:45 +00:00
|
|
|
&& cd ${BASE_DIR} \
|
|
|
|
&& curl -fSL "${HBASE_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz || curl -fSL "${HBASE_SUB_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz \
|
|
|
|
&& tar xfvz hbase.tar.gz \
|
|
|
|
&& mv ../../hbase-site.xml ../../${HBASE_HOME}/conf/hbase-site.xml \
|
2020-09-10 10:49:30 +00:00
|
|
|
&& mv ../../hbase-env.sh ../../${HBASE_HOME}/conf/hbase-env.sh \
|
2022-04-20 07:31:50 +00:00
|
|
|
&& curl -SL "https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/hbase/scripts/hbase-create.hbase" -o ${BASE_DIR}/hbase-create.hbase
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
VOLUME ["/home/pinpoint/hbase", "/home/pinpoint/zookeeper"]
|
|
|
|
|
2020-10-12 15:21:45 +00:00
|
|
|
CMD /usr/local/bin/initialize-hbase.sh && tail -f /dev/null
|
|
|
|
|