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
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:
18
base/spark/2.3.1/docker-entrypoint.sh
Normal file
18
base/spark/2.3.1/docker-entrypoint.sh
Normal 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
|
Reference in New Issue
Block a user