-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
项目改名为calibre-webserver;合并oldiy的docker配置
- Loading branch information
Showing
37 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:16.04 | ||
MAINTAINER Rex <talebook@foxmail.com> | ||
|
||
LABEL Maintainer="Rex <talebook@foxmail.com>" | ||
LABEL Thanks="oldiy <oldiy2018@gmail.com>" | ||
|
||
RUN apt-get update && \ | ||
apt-get install bash calibre python-pip unzip supervisor sqlite3 git -y | ||
|
||
RUN pip install jinja2==2.10 social-auth-app-tornado==1.0.0 social-auth-storage-sqlalchemy==1.1.0 tornado==5.1.1 Baidubaike==2.0.1 && \ | ||
mkdir -p /data/log/ && \ | ||
mkdir -p /data/books/ && \ | ||
mkdir -p /data/release/www/calibre.talebook.org/ && \ | ||
mkdir -p /data/books/library && \ | ||
mkdir -p /data/books/extract && \ | ||
mkdir -p /data/books/upload && \ | ||
mkdir -p /data/books/convert && \ | ||
mkdir -p /data/books/progress && \ | ||
chmod a+w -R /data/log /data/books /data/release && \ | ||
cd /data/release/www/calibre.talebook.org/ && \ | ||
git clone https://github.com/talebook/calibre-webserver.git calibre-webserver && \ | ||
calibredb add --library-path=/data/books/library/ -r /data/release/www/calibre.talebook.org/calibre-webserver/docker/book/ && \ | ||
python /data/release/www/calibre.talebook.org/calibre-webserver/server.py --syncdb && \ | ||
cp /data/release/www/calibre.talebook.org/calibre-webserver/conf/supervisor/calibre-webserver.conf /etc/supervisor/conf.d/ && \ | ||
cp /data/release/www/calibre.talebook.org/calibre-webserver/docker/local_settings.py /data/release/www/calibre.talebook.org/calibre-webserver/webserver/ && \ | ||
rm -f /data/release/www/calibre.talebook.org/calibre-webserver/webserver/*.pyc && \ | ||
mkdir -p /prebuilt/ && \ | ||
mv /data/* /prebuilt/ && \ | ||
chmod +x /prebuilt/release/www/calibre.talebook.org/calibre-webserver/docker/start.sh | ||
|
||
EXPOSE 8000 | ||
|
||
VOLUME ["/data/books"] | ||
|
||
CMD ["/prebuilt/release/www/calibre.talebook.org/calibre-webserver/docker/start.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# docker-calibre-webserver | ||
Run Docker of calibre web |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
if [ ! -d "/data/release" ]; then | ||
cp -rf /prebuilt/* /data/ | ||
fi | ||
|
||
/usr/bin/supervisord --nodaemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters