dockerfile/examples/standardnotes/official-src/server-main/packages/analytics/docker/entrypoint.sh

23 lines
353 B
Bash
Executable File

#!/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 "$@"