Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add environment variables to configure monitoring in Docker image #118

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docker/datahub-actions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

SYS_CONFIGS_PATH="${DATAHUB_ACTIONS_SYSTEM_CONFIGS_PATH:-/etc/datahub/actions/system/conf}"
USER_CONFIGS_PATH="${DATAHUB_ACTIONS_USER_CONFIGS_PATH:-/etc/datahub/actions/conf}"
MONITORING_ENABLED="${DATAHUB_ACTIONS_MONITORING_ENABLED:-false}"
MONITORING_PORT="${DATAHUB_ACTIONS_MONITORING_PORT:-8000}"

touch /tmp/datahub/logs/actions/actions.out

Expand Down Expand Up @@ -60,4 +62,8 @@ else
echo "No user action configurations found. Not starting user actions."
fi

datahub-actions actions $config_files
if [ "$MONITORING_ENABLED" = true ]; then
datahub-actions --enable-monitoring --monitoring-port "$MONITORING_PORT" actions $config_files
else
datahub-actions actions $config_files
fi
Loading