File size: 567 Bytes
df84e45 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/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 "$@"
|