annotate build/docker/entrypoint.sh @ 1707:e0a962f3a9e8

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