first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
FROM openjdk:8-jdk
LABEL maintainer="jackytsuuuy"
# install hbase
RUN set -ex \
&& mkdir /opt/hbase \
&& wget -qO- https://archive.apache.org/dist/hbase/2.4.5/hbase-2.4.5-bin.tar.gz | tar xz --strip-components 1 -C /opt/hbase
# install opentsdb
RUN set -ex \
&& cd /tmp \
&& wget https://github.com/OpenTSDB/opentsdb/releases/download/v2.4.1/opentsdb-2.4.1_all.deb \
&& dpkg -i opentsdb-2.4.1_all.deb \
&& echo "tsd.core.auto_create_metrics = true" >> /etc/opentsdb/opentsdb.conf \
&& mkdir /usr/share/opentsdb/cache \
&& rm -rf /tmp/opentsdb-2.4.1_all.deb
# install
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends gnuplot-nox \
&& rm -rf /var/lib/apt/lists/*
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN set -ex \
&& chmod +x /docker-entrypoint.sh
WORKDIR /usr/share/opentsdb
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -e
if [[ "$1" == "" ]]; then
/opt/hbase/bin/start-hbase.sh
cd /usr/share/opentsdb
COMPRESSION=NONE HBASE_HOME=/opt/hbase ./tools/create_table.sh
./bin/tsdb tsd --config /etc/opentsdb/opentsdb.conf
fi
exec "$@"