Skip to content

Commit 899d936

Browse files
committed
Add WKHTMLTOPDF for use in .env file if desired
1 parent 61b6761 commit 899d936

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ RUN \
3030
php7-simplexml \
3131
php7-tidy \
3232
php7-tokenizer && \
33+
echo "**** install wkhtmltopdf ****" && \
34+
apk add --no-cache \
35+
ttf-freefont \
36+
fontconfig && \
37+
apk add --no-cache \
38+
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
39+
--allow-untrusted \
40+
qt5-qtbase-dev \
41+
wkhtmltopdf && \
3342
echo "**** configure php-fpm ****" && \
3443
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf && \
3544
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \

Dockerfile.aarch64

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ RUN \
3030
php7-simplexml \
3131
php7-tidy \
3232
php7-tokenizer && \
33+
echo "**** install wkhtmltopdf ****" && \
34+
apk add --no-cache \
35+
ttf-freefont \
36+
fontconfig && \
37+
apk add --no-cache \
38+
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
39+
--allow-untrusted \
40+
qt5-qtbase-dev \
41+
wkhtmltopdf && \
3342
echo "**** configure php-fpm ****" && \
3443
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf && \
3544
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \

Dockerfile.armhf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ RUN \
3030
php7-simplexml \
3131
php7-tidy \
3232
php7-tokenizer && \
33+
echo "**** install wkhtmltopdf ****" && \
34+
apk add --no-cache \
35+
ttf-freefont \
36+
fontconfig && \
37+
apk add --no-cache \
38+
--repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
39+
--allow-untrusted \
40+
qt5-qtbase-dev \
41+
wkhtmltopdf && \
3342
echo "**** configure php-fpm ****" && \
3443
sed -i 's/;clear_env = no/clear_env = no/g' /etc/php7/php-fpm.d/www.conf && \
3544
echo "env[PATH] = /usr/local/bin:/usr/bin:/bin" >> /etc/php7/php-fpm.conf && \

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,23 @@ In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as bel
144144
 
145145
## Application Setup
146146

147-
Default username is admin@admin.com with password of **password**, access the container at http://dockerhost:6875.
147+
The default username is admin@admin.com with the password of **password**, access the container at http://dockerhost:6875.
148148

149-
This application is dependent on an MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
149+
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
150150

151151
If you intend to use this application behind a subfolder reverse proxy, such as our LetsEncrypt container or Traefik you will need to make sure that the `APP_URL` environment variable is set, or it will not work
152152

153153
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/
154154

155155
### Advanced Users (full control over the .env file)
156-
If you wish to use the extra functionality of BookStack such as email, memcache, ldap and so on you will need to make your own .env file with guidance from the BookStack documentation.
156+
If you wish to use the extra functionality of BookStack such as email, Memcache, LDAP and so on you will need to make your own .env file with guidance from the BookStack documentation.
157157

158-
When you create the container, do not set any arguments for any SQL settings, or APP_URL. The container will copy an .env file to /config/www/.env on your host system for you to edit.
158+
When you create the container, do not set any arguments for any SQL settings, or APP_URL. The container will copy an exemplary .env file to /config/www/.env on your host system for you to edit.
159+
160+
#### PDF Rendering
161+
[wkhtmltopdf](https://wkhtmltopdf.org/) is available to use as an alternative PDF rendering generator as described at https://www.bookstackapp.com/docs/admin/pdf-rendering/.
162+
163+
The path to wkhtmltopdf in this image to include in your .env file is `/usr/bin/wkhtmltopdf`.
159164

160165

161166

0 commit comments

Comments
 (0)