#!/bin/sh # Pick the task source. With the corpus manifest in the image, serve the full # corpus: from the bucket mount if there is one, otherwise over HTTP. Without # it, serve the pack built into the image. if [ -f /app/design_canvas/corpus-manifest.json ]; then export DESIGN_CANVAS_CORPUS="${DESIGN_CANVAS_CORPUS:-/app/design_canvas/corpus-manifest.json}" [ -d "${DESIGN_CANVAS_SOURCE_ROOT:-/corpus}/data" ] || unset DESIGN_CANVAS_SOURCE_ROOT else export DESIGN_CANVAS_PACK="${DESIGN_CANVAS_PACK:-/data/pack}" unset DESIGN_CANVAS_SOURCE_ROOT fi exec "$@"