diff --git a/Makefile b/Makefile index 13481d3..4a5cbed 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,11 @@ start: ## Start development environment echo "Running: ${DOCKER_COMPOSE} up" ${DOCKER_COMPOSE} up +.PHONY: shell +shell: ## Start a shell in the frontend container + echo "Running: ${DOCKER_COMPOSE} run frontend bash" + ${DOCKER_COMPOSE} run --entrypoint=bash frontend + .PHONY: cypress-open cypress-open: ## Open cypress integration tests NODE_ENV=development $(NODE_MODULES)/cypress/bin/cypress open diff --git a/docker-compose.yml b/docker-compose.yml index c6f4862..5d79f5c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,12 @@ version: "3" services: backend: - image: plone/plone-backend:${PLONE_VERSION:-6} + image: eeacms/plone-backend ports: - "8080:8080" environment: SITE: "Plone" + PROFILES: "eea.kitkat:testing" frontend: build: @@ -23,6 +24,9 @@ services: volumes: - ./:/app/src/addons/${ADDON_PATH} environment: + CI: "true" + NODE_ENV: "development" + RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js" RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone" RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone" HOST: "0.0.0.0"