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