python3 main.py \
--GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
--library=${CONTENT_BASE_DIR}
For example:
python3 main.py \
--GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
--CONTENT_BASE_DIR=${CONTENT_BASE_DIR}
docker build . -t readops
docker run -p 5000:5000 \
-e GOOGLE_BOOKS_API_KEY=${GOOGLE_BOOKS_API_KEY} \
-v /path/to/content:/library \
readops
For example:
docker run -p 5000:5000 -v /Users/admin/Documents/07_books:/library readops
Navigate to http://localhost:5000/catalog
to view OPDS the catalog.