Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312696
entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
842 B
Subscribers
None
entrypoint.sh
View Options
#!/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
Details
Attached
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
Attached To
rCDFP Deployment tools for hosting a mirror
Event Timeline
Log In to Comment