Mercurial > hg > digilib
comparison build/docker/entrypoint.sh @ 1705:439aefc7a6c9
README for Docker hub and configuration options for container.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 18 Feb 2019 18:32:15 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1703:367ae3da4f20 | 1705:439aefc7a6c9 |
---|---|
1 #!/bin/sh | |
2 | |
3 DL_CONFIG=webapps/digilib/WEB-INF/digilib-config.xml | |
4 | |
5 if [ ! -f $DL_CONFIG ] ; then | |
6 # generate digilib config using ENV | |
7 cat <<EOF > $DL_CONFIG | |
8 <?xml version="1.0" encoding="UTF-8"?> | |
9 <digilib-config> | |
10 <!-- A list of directories where images are searched --> | |
11 <parameter name="basedir-list" value="${BASEDIR_LIST:-/usr/local/tomcat/webapps/digilib/sample-images}" /> | |
12 | |
13 <!-- The default interpolation quality (0-2). --> | |
14 <parameter name="default-quality" value="${DEFAULT_QUALITY:-2}" /> | |
15 | |
16 <!-- The maximum size of delivered images as pixel area, 40000 means up to 200x200 or 100x400, 0 means no limit. --> | |
17 <parameter name="max-image-size" value="${MAX_IMAGE_SIZE:-0}" /> | |
18 | |
19 <!-- is sending whole image files with mo=file allowed? --> | |
20 <parameter name="sendfile-allowed" value="${SENDFILE_ALLOWED:-true}" /> | |
21 | |
22 <!-- number of working threads --> | |
23 <parameter name="worker-threads" value="${WORKER_THREADS:-2}" /> | |
24 | |
25 <!-- number of waiting requests in queue --> | |
26 <parameter name="max-waiting-threads" value="${MAX_WAITING_THREADS:-20}" /> | |
27 | |
28 <!-- The prefix (after Scaler) that leads to the IIIF API.--> | |
29 <parameter name="iiif-prefix" value="${IIIF_PREFIX:-IIIF}" /> | |
30 </digilib-config> | |
31 EOF | |
32 fi | |
33 | |
34 # run the command given in the origin Dockerfile at CMD | |
35 exec catalina.sh run |