22 lines
315 B
Bash
Executable file
22 lines
315 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
COMMAND=$1 && shift 1
|
|
|
|
case "$COMMAND" in
|
|
'start-worker' )
|
|
echo "Starting Worker..."
|
|
node docker/entrypoint-worker.js
|
|
;;
|
|
|
|
'verify-jobs' )
|
|
echo "Starting jobs verification..."
|
|
node docker/entrypoint-verify.js
|
|
;;
|
|
|
|
* )
|
|
echo "Unknown command"
|
|
;;
|
|
esac
|
|
|
|
exec "$@"
|