Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-objstorage/entrypoint.sh
#!/bin/bash | #!/bin/bash | ||||
set -e | set -e | ||||
echo Step 1 | echo Step 1 | ||||
if [[ -d /src ]] ; then | if [[ -d /src ]] ; then | ||||
echo Yes | echo Yes | ||||
for srcrepo in /src/swh-* ; do | for srcrepo in /src/swh-* ; do | ||||
echo installing $srcrepo | echo installing $srcrepo | ||||
pushd $srcrepo | pushd $srcrepo | ||||
pip install -e . | pip install -e . | ||||
popd | popd | ||||
done | done | ||||
fi | fi | ||||
echo Installed Python packages: | |||||
pip list | |||||
if [ "$1" = 'shell' ] ; then | if [ "$1" = 'shell' ] ; then | ||||
exec bash -i | exec bash -i | ||||
else | else | ||||
echo Starting the swh-objstorage API server | echo Starting the swh-objstorage API server | ||||
exec python -m swh.objstorage.api.server /objstorage.yml | exec python -m swh.objstorage.api.server /objstorage.yml | ||||
fi | fi |