Forked from
Platform / Infrastructure / Software Heritage virtual environment packaging manifests
3882 commits behind the upstream repository.
-
Nicolas Dandrimont authored
This avoids keeping around a useless shell process, and allows killing the "init" process to always DTRT
Nicolas Dandrimont authoredThis avoids keeping around a useless shell process, and allows killing the "init" process to always DTRT
entrypoint.sh 625 B
#!/bin/bash
if [ -z "${SWH_CONFIG_FILENAME}" ]; then
echo "The SWH_CONFIG_FILENAME environment variable must be set"
exit 1
fi
if [ -z "${SWH_INDEXER_TYPE}" ]; then
echo "The SWH_INDEXER_TYPE environment variable must be set"
exit 1
fi
if [ ! -e "${SWH_CONFIG_FILENAME}" ]; then
echo "The config file ${SWH_CONFIG_FILENAME} does not exist"
exit 1
fi
# start the replayer
echo "Starting indexer journal client..."
exec swh \
--log-level $LOGLEVEL \
--log-level azure.core.pipeline.policies.http_logging_policy:WARNING \
indexer \
--config-file $SWH_CONFIG_FILENAME \
journal-client $SWH_INDEXER_TYPE