Compare commits

...

22 Commits
2 ... 79

Author SHA1 Message Date
sparklyballs 25cd75cbb2 Merge pull request #24 from linuxserver/rebase_alpine_3.8
rebase to alpine 3.8
2018-08-16 14:30:17 +01:00
sparklyballs c2db793227 rebase to alpine 3.8 2018-08-16 13:00:45 +01:00
chbmb 2473f3ba34 Merge pull request #21 from linuxserver/vulnerability
Readme updated with note about vulnerability
2018-07-03 22:05:36 +01:00
sparklyballs 3a3064b3e2 tweak grep 2018-07-03 21:30:03 +01:00
chbmb 10286b3309 Readme updated with note about vulnerability
Push new build to remove this [vulnerability](https://github.com/janeczku/calibre-web/issues/534)
2018-07-03 21:11:05 +01:00
sparklyballs fec0a1c28f Merge pull request #11 from linuxserver/deprecate_cpu_core
deprecate cpu_core routine lack of scaling
2018-01-05 19:31:01 +00:00
sparklyballs eeb3e9bb22 deprecate cpu_core routine lack of scaling 2018-01-05 17:09:16 +00:00
sparklyballs 0d3d473a7e Merge pull request #10 from linuxserver/3.7
bump to alpine 3.7 and fix continuation lines
2017-12-17 00:15:35 +00:00
sparklyballs ef46a9a195 configure workaround no longer required 2017-12-09 00:50:11 +00:00
sparklyballs 6bc7f90c50 bump to alpine 3.7 and fix continuation lines 2017-12-06 19:12:27 +00:00
sparklyballs 879514949c Merge pull request #9 from linuxserver/cpu_cores
use cpu core routine
2017-11-29 13:46:24 +00:00
sparklyballs c33a1ce348 use cpu core routine 2017-11-27 18:10:22 +00:00
sparklyballs e6c8a325e5 Merge pull request #8 from linuxserver/curl_imagemagick-ver
Curl imagemagick ver
2017-07-29 00:00:53 +01:00
sparklyballs 995ef7f214 correct xz instead of gz in imagemgick curl 2017-07-24 08:38:59 +01:00
sparklyballs 05189f2125 curl version of imagemagick 2017-07-24 08:32:07 +01:00
Neil 6eb9f31fee Merge pull request #6 from linuxserver/release_ready
swap readmes for release
2017-07-19 13:02:30 +01:00
sparklyballs c3f5852004 swap readmes for release 2017-07-19 10:45:42 +01:00
sparklyballs 6bc024e1bd correct version info commands 2017-07-17 21:31:37 +01:00
sparklyballs 900c7ea2ac compile imagemagick 6 2017-07-17 19:52:33 +01:00
sparklyballs af3caaa1e6 tidy up symlinks 2017-07-17 18:49:38 +01:00
sparklyballs 33c84d3fc2 symlink log to /config 2017-07-17 18:40:54 +01:00
sparklyballs 29ae2d1f2a swap back to placeholder README 2017-07-17 18:10:10 +01:00
3 changed files with 89 additions and 19 deletions
+67 -11
View File
@@ -1,24 +1,81 @@
FROM lsiobase/alpine.python:3.6
MAINTAINER sparklyballs,chbmb
FROM lsiobase/alpine.python:3.8
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# install build packages
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
file \
fontconfig-dev \
freetype-dev \
g++ \
gcc \
ghostscript-dev \
lcms2-dev \
libjpeg-turbo-dev \
libpng-dev \
libtool \
libwebp-dev \
libxml2-dev \
libxslt-dev \
make \
python2-dev && \
# install runtime packages
perl-dev \
python2-dev \
tiff-dev \
xz \
zlib-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
imagemagick && \
# install calibre-web
fontconfig \
freetype \
ghostscript \
lcms2 \
libjpeg-turbo \
libltdl \
libpng \
libwebp \
libxml2 \
libxslt \
tiff \
zlib && \
echo "**** compile imagemagic ****" && \
IMAGEMAGICK_VER=$(curl --silent http://www.imagemagick.org/download/digest.rdf \
| grep ImageMagick-6.*tar.gz | sed 's/\(.*\).tar.*/\1/' \
| sed 's/^.*ImageMagick-/ImageMagick-/') && \
mkdir -p \
/tmp/imagemagick && \
curl -o \
/tmp/imagemagick-src.tar.xz -L \
"http://www.imagemagick.org/download/${IMAGEMAGICK_VER}.tar.xz" && \
tar xf \
/tmp/imagemagick-src.tar.xz -C \
/tmp/imagemagick --strip-components=1 && \
cd /tmp/imagemagick && \
sed -i -e \
's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \
configure && \
./configure \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc \
--with-gs-font-dir=/usr/share/fonts/Type1 \
--with-gslib \
--with-lcms2 \
--with-modules \
--without-threads \
--without-x \
--with-tiff \
--with-xml && \
make && \
make install && \
find / -name '.packlist' -o -name 'perllocal.pod' \
-o -name '*.bs' -delete && \
echo "**** install calibre-web ****" && \
mkdir -p \
/app/calibre-web && \
curl -o \
@@ -32,8 +89,7 @@ RUN \
requirements.txt && \
pip install --no-cache-dir -U -r \
optional-requirements.txt && \
# cleanup
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
+9 -3
View File
@@ -3,7 +3,7 @@
[ircurl]: https://www.linuxserver.io/irc/
[podcasturl]: https://www.linuxserver.io/podcast/
[appurl]: https://github.com/janeczku/calibre-web
[hub]: https://hub.docker.com/r/example/example/
[hub]: https://hub.docker.com/r/linuxserver/calibre-web/
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
@@ -94,8 +94,14 @@ To reverse proxy with our Letsencrypt docker container use the following locatio
* image version number
`docker inspect -f '{{ index .Config.Labels "build_version" }}' calibre-web`
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/calibre-web`
## Versions
+ **17.07.17:** Initial release
+ **16.08.18:** Rebase to alpine 3.8.
+ **03.07.18:** New build pushed, all versions below `67` have [vulnerability](https://github.com/janeczku/calibre-web/issues/534)
+ **05.01.18:** Deprecate cpu_core routine lack of scaling.
+ **06.12.17:** Rebase to alpine 3.7.
+ **27.11.17:** Use cpu core counting routine to speed up build time.
+ **24.07.17:** Curl version for imagemagick.
+ **17.07.17:** Initial release.
+13 -5
View File
@@ -1,13 +1,21 @@
#!/usr/bin/with-contenv bash
# copy database to /config if not exists
[[ ! -e /config/app.db ]] && \
cp /defaults/app.db /config/app.db \
# create symlink for database
# create symlinks for database and log
[[ ! -f /config/app.db ]] && \
cp /defaults/app.db /config/app.db
[[ -f /app/calibre-web/app.db ]] && \
rm /app/calibre-web/app.db
[[ ! -L /app/calibre-web/app.db ]] && \
ln -s /config/app.db /app/calibre-web/app.db
[[ ! -f /config/calibre-web.log ]] && \
touch /config/calibre-web.log
[[ -f /app/calibre-web/calibre-web.log ]] && \
rm /app/calibre-web/calibre-web.log
[[ ! -L /app/calibre-web/calibre-web.log ]] && \
ln -s /config/calibre-web.log /app/calibre-web/calibre-web.log
# permissions
chown -R abc:abc \
/config \