run.sh 499 B

12345678910111213
  1. #!/bin/bash
  2. set -eo pipefail
  3. # not using '--entrypoint', since regular entrypoint sets up config
  4. docker run -i --rm \
  5. -e CORS_ALLOW_ORIGIN="http://example.com:4300,http://example.com:5300" \
  6. -e CORS_ALLOW_METHODS="DELETE,PUT" \
  7. -e CORS_ALLOW_CREDENTIALS=false \
  8. -e CORS_EXPOSE_HEADERS="X-Example-Header" \
  9. -e CORS_ALLOW_HEADERS="X-Example-Header,X-Z-Header" \
  10. -e CORS_MAX_AGE=600 \
  11. -v /plone/instance/bin/develop \
  12. "$1" cat parts/instance/etc/package-includes/999-additional-overrides.zcml