Skip to content

Commit

Permalink
feat(): add environment variables to configure monitoring in Docker i…
Browse files Browse the repository at this point in the history
…mage (#118)
  • Loading branch information
Masterchen09 authored Jul 1, 2024
1 parent a4ca012 commit a515546
Showing 1 changed file with 7 additions and 1 deletion.
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

0 comments on commit a515546

Please sign in to comment.