23 lines
353 B
Bash
23 lines
353 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
COMMAND=$1 && shift 1
|
||
|
|
||
|
case "$COMMAND" in
|
||
|
'start-worker' )
|
||
|
echo "[Docker] Starting Worker..."
|
||
|
exec node docker/entrypoint-worker.js
|
||
|
;;
|
||
|
|
||
|
'report' )
|
||
|
echo "[Docker] Starting Usage Report Generation..."
|
||
|
exec node docker/entrypoint-report.js
|
||
|
;;
|
||
|
|
||
|
* )
|
||
|
echo "[Docker] Unknown command"
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exec "$@"
|