Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-web/entrypoint.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/bin/bash | |||||
set -e | |||||
if [[ -d /src ]] ; then | |||||
for srcrepo in /src/swh-* ; do | |||||
echo installing $srcrepo | |||||
pip install -e . | |||||
vlorentz: `python3 -m swh.web.manage migrate` should run here too. | |||||
ardumontAuthorUnsubmitted Done Inline ActionsAh yes, it should be tested in the loop, something like: ardumont: Ah yes, it should be tested in the loop, something like:
`[ $srcrepo = 'swh-web' ] && ...` | |||||
popd | |||||
done | |||||
fi | |||||
if [ "$1" = 'shell' ] ; then | |||||
exec bash -i | |||||
else | |||||
echo "starting the swh-web server" | |||||
exec python3 -m swh.web.manage runserver --nostatic 0.0.0.0:5004 | |||||
Done Inline ActionsI initially commented but that broke the command so here it is:
ardumont: I initially commented but that broke the command so here it is:
- `--verbosity` to have… | |||||
#exec gunicorn3 -b 0.0.0.0:5004 swh.web.wsgi | |||||
fi |
python3 -m swh.web.manage migrate should run here too.