Page MenuHomeSoftware Heritage

entrypoint.sh
No OneTemporary

entrypoint.sh

#!/bin/bash
set -e
# generate the config file from the 'template'
if [ -f /etc/softwareheritage/config.yml.tmpl ]; then
# I know... I know!
eval "echo \"`cat /etc/softwareheritage/config.yml.tmpl`\"" > \
/etc/softwareheritage/config.yml
fi
# For debugging purpose
echo "### CONFIG FILE ###"
cat /etc/softwareheritage/config.yml || true
echo "###################"
case "$1" in
"shell"|"sh"|"bash")
exec bash -i
;;
"graph-replayer")
wait-for-it storage:5002
echo "Starting the SWH mirror graph replayer"
exec swh --log-level ${LOG_LEVEL:-WARNING} storage replay
;;
"content-replayer")
wait-for-it objstorage:5003
echo "Starting the SWH mirror content replayer"
exec swh --log-level ${LOG_LEVEL:-WARNING} objstorage replay
;;
esac

File Metadata

Mime Type
text/x-shellscript
Expires
Thu, Jul 3, 11:04 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3241664

Event Timeline