15 lines
425 B
Bash
Executable File

#!/usr/bin/bash
if [ -n "$ACTIONS_EXTRA_PACKAGES" ]; then
uv pip install $ACTIONS_EXTRA_PACKAGES
fi
if [[ -n "$ACTIONS_CONFIG" && -n "$ACTIONS_EXTRA_PACKAGES" ]]; then
mkdir -p /tmp/datahub/logs
curl -q "$ACTIONS_CONFIG" -o config.yaml
exec dockerize -wait ${DATAHUB_GMS_PROTOCOL:-http}://$DATAHUB_GMS_HOST:$DATAHUB_GMS_PORT/health -timeout 240s \
datahub actions --config config.yaml
else
exec datahub $@
fi