Skip to content

Commit 666342e

Browse files
author
valentinab25
committed
test: Update Makefile and docker-compose to align it with Jenkinsfile
1 parent 13bc2ff commit 666342e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ start: ## Start development environment
7070
echo "Running: ${DOCKER_COMPOSE} up"
7171
${DOCKER_COMPOSE} up
7272

73+
.PHONY: shell
74+
shell: ## Start a shell in the frontend container
75+
echo "Running: ${DOCKER_COMPOSE} run frontend bash"
76+
${DOCKER_COMPOSE} run --entrypoint=bash frontend
77+
7378
.PHONY: cypress-open
7479
cypress-open: ## Open cypress integration tests
7580
NODE_ENV=development $(NODE_MODULES)/cypress/bin/cypress open

docker-compose.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: "3"
22
services:
33
backend:
4-
image: plone/plone-backend:${PLONE_VERSION:-6}
4+
image: eeacms/plone-backend
55
ports:
66
- "8080:8080"
77
environment:
88
SITE: "Plone"
9+
PROFILES: "eea.kitkat:testing"
910

1011
frontend:
1112
build:
@@ -23,6 +24,9 @@ services:
2324
volumes:
2425
- ./:/app/src/addons/${ADDON_PATH}
2526
environment:
27+
CI: "true"
28+
NODE_ENV: "development"
29+
RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js"
2630
RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
2731
RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
2832
HOST: "0.0.0.0"

0 commit comments

Comments
 (0)