Skip to content

Commit

Permalink
Merge pull request #11 from dlcs/feature/timeout
Browse files Browse the repository at this point in the history
Add HTTP_TIMEOUT envvar, which can be used to alter uwsgi http-timeout
  • Loading branch information
donaldgray authored Oct 27, 2022
2 parents b9efdfc + 48eb0b7 commit 6569411
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion run_appetiser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6569411

Please sign in to comment.