Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added containers for testing #8707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/twenty-e2e-testing/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Before running mock-saml, read instructions on how to create public/private pair key and insert it here
# https://github.com/boxyhq/mock-saml/blob/main/.env.example
mock-saml:
docker run \
--name mock_saml \
-p 4000:4000 \
-e APP_URL="http://localhost:4000" \
-e ENTITY_ID="https://saml.example.com/entityid" \
-e PUBLIC_KEY= \
-e PRIVATE_KEY= \
BOHEUS marked this conversation as resolved.
Show resolved Hide resolved
-d boxyhq/mock-saml
Comment on lines +4 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: No restart policy specified - container will not automatically restart if it crashes


smtp4dev:
docker run \
--name smtp4dev \
-p 8090:80 \
-p 2525:25 \
-p 143:143 \
-d rnwood/smtp4dev

webhook:
docker compose -f ./containers/webhook.yml up --remove-orphans
51 changes: 51 additions & 0 deletions packages/twenty-e2e-testing/containers/webhook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
services:
webhook:
container_name: "webhook-site"
image: "webhooksite/webhook.site"
command: php artisan queue:work --daemon --tries=3 --timeout=10
ports:
- "8084:80"
BOHEUS marked this conversation as resolved.
Show resolved Hide resolved
environment:
- APP_ENV=dev
- APP_DEBUG=true
- APP_URL=http://localhost:8084
- APP_LOG=errorlog
- DB_CONNECTION=sqlite
- REDIS_HOST=redis
- BROADCAST_DRIVER=redis
- CACHE_DRIVER=redis
- QUEUE_DRIVER=redis
- ECHO_HOST_MODE=path
depends_on:
- redis
networks:
- webhook

redis:
container_name: "webhook-redis"
image: "redis:alpine"
networks:
- webhook

laravel-echo-server:
container_name: "laravel-echo-server"
image: "webhooksite/laravel-echo-server"
environment:
- LARAVEL_ECHO_SERVER_AUTH_HOST=http://webhook
BOHEUS marked this conversation as resolved.
Show resolved Hide resolved
- LARAVEL_ECHO_SERVER_HOST=0.0.0.0
- LARAVEL_ECHO_SERVER_PORT=6001
- ECHO_REDIS_PORT=6379
- ECHO_REDIS_HOSTNAME=redis
- ECHO_PROTOCOL=http
- ECHO_ALLOW_CORS=true
- ECHO_ALLOW_ORIGIN=*
- ECHO_ALLOW_METHODS=*
- ECHO_ALLOW_HEADERS=*
depends_on:
- redis
networks:
- webhook

networks:
webhook:
driver: bridge
Loading