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,18 @@
FROM openjdk:8-jre
ARG basedir=/usr/local/spark
RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends -y procps \
&& mkdir $basedir \
&& wget -qO- https://archive.apache.org/dist/spark/spark-2.3.1/spark-2.3.1-bin-hadoop2.7.tgz | tar zx -C $basedir --strip-components=1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR $basedir
EXPOSE 8080 7077 6066
COPY docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "master" ]

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -ex
if [ $# -lt 1 ]; then
echo "Usage: $0 master|slave params..."
exit
fi
if [ $1 == "master" ]; then
sbin/start-master.sh
elif [ $1 == "slave" ]; then
sbin/start-slave.sh ${@:2}
else
exec "$@"
fi
exec tail -f logs/*.out