Skip to content

Commit

Permalink
Merge pull request #4237 from cdrini/fix/booklending-prod
Browse files Browse the repository at this point in the history
Pip install booklending_utils on prod/staging
  • Loading branch information
mekarpeles committed Dec 10, 2020
2 parents f1a4c9b + f634e5b commit 14f7d3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
- GUNICORN_OPTS= --workers 50 --timeout 300 --max-requests 500
- OL_CONFIG=/olsystem/etc/openlibrary.yml
- PYENV_VERSION=3.8.6
- BEFORE_START=pip install -e /booklending_utils
volumes:
- ../booklending_utils:/booklending_utils
- ../olsystem:/olsystem
Expand Down
1 change: 1 addition & 0 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
- GUNICORN_OPTS= --workers 4 --timeout 180
- OL_CONFIG=/olsystem/etc/openlibrary.yml
- PYENV_VERSION=3.8.6
- BEFORE_START=pip install -e /booklending_utils
volumes:
- ../olsystem:/olsystem
- ../booklending_utils:/booklending_utils
Expand Down
6 changes: 6 additions & 0 deletions docker/ol-web-start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

python --version

# Provide a hook for us to specify pre-start tasks
if [ -n "$BEFORE_START" ] ; then
$BEFORE_START
fi

authbind --deep \
scripts/openlibrary-server "$OL_CONFIG" \
--gunicorn \
Expand Down

0 comments on commit 14f7d3b

Please sign in to comment.