From 48eb0b7ef8b2c6cd26c113b7a957322299760fec Mon Sep 17 00:00:00 2001 From: Donald Gray Date: Thu, 27 Oct 2022 16:28:01 +0100 Subject: [PATCH] Add HTTP_TIMEOUT envvar, which can be used to alter uwsgi http-timeout Defaults to 60 if not set (60s is the uwsgi default value) --- Dockerfile | 2 ++ run_appetiser.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6149478..ecb6696 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ ENV KAKADU_APPS_LOCATION s3://dlcs-dlcservices-bootstrap-objects/kdu77-apps.tar. ENV APPETISER_DIR /opt/appetiser ENV TMPDIR $APPETISER_DIR/tmp ENV OUTPUT_DIR $APPETISER_DIR/out/ +ENV HTTP_TIMEOUT 60 RUN apt-get update -y && apt-get install -y cmake \ netpbm \ @@ -22,6 +23,7 @@ RUN apt-get update -y && apt-get install -y cmake \ libharfbuzz-dev \ libfribidi-dev + COPY . $APPETISER_DIR RUN chmod +x $APPETISER_DIR/run_tests.sh RUN chmod +x $APPETISER_DIR/run_appetiser.sh diff --git a/run_appetiser.sh b/run_appetiser.sh index 024c424..db684eb 100644 --- a/run_appetiser.sh +++ b/run_appetiser.sh @@ -9,4 +9,4 @@ export KDU_EXPAND=/usr/local/bin/kdu_expand export KDU_LIB=/usr/local/bin cd $APPETISER_DIR -uwsgi --http 0.0.0.0:80 --master --need-app --module appetiser:appetiser --processes 5 +uwsgi --http 0.0.0.0:80 --master --need-app --module appetiser:appetiser --processes 5 --http-timeout $HTTP_TIMEOUT