Skip to content

Commit

Permalink
Allow CORS in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolidori committed Jan 2, 2025
1 parent ac59f1a commit 104dd5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ckan-backend-dev/docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ services:
ckan-dev:
container_name: ${CKAN_CONTAINER_NAME}
image: ${CKAN_IMAGE}
build:
context: .
args:
GITHUB_ACTIONS: "true"
environment:
- GITHUB_ACTIONS=true
env_file:
Expand Down
4 changes: 4 additions & 0 deletions deployment/ckan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ RUN ckan config-tool ${CKAN_INI} "ckan.plugins = ${CKAN__PLUGINS}"
RUN ckan config-tool ${CKAN_INI} "ckan.auth.create_user_via_web = false"
RUN ckan config-tool ${CKAN_INI} "ckan.root_path = /private-admin/{{LANG}}"

RUN if [ "$GITHUB_ACTIONS" = "true" ]; then \
ckan config-tool ${CKAN_INI} "ckan.cors.origin_allow_all = True"; \
fi

USER root

RUN chown -R ckan:ckan ${APP_DIR}/src/
Expand Down

0 comments on commit 104dd5e

Please sign in to comment.