Skip to content

Commit e917f6f

Browse files
author
Bas
committed
Add chrome container for EB browser tests
1 parent eba452a commit e917f6f

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

core/docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,21 @@ services:
467467
profiles:
468468
- "sbs"
469469

470+
chrome:
471+
image: alpeware/chrome-headless-trunk
472+
ports:
473+
- 9222:9222
474+
environment:
475+
- CHROME_OPTS=--ignore-certificate-errors --window-size=1920,1080 --ignore-ssl-errors
476+
volumes:
477+
- /tmp/chromedata/:/data
478+
networks:
479+
coreconextdev:
480+
aliases:
481+
- chrome.dev.openconext.local
482+
profiles:
483+
- "test"
484+
470485
networks:
471486
coreconextdev:
472487
driver: bridge

core/start-dev-env.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ while true; do
5555
# Use docker compose to start the environment but with the modified override file(s)
5656
echo -e "\nStarting the ${MODE} environment with the following command:\n"
5757

58-
echo -e "docker compose --profile oidc -f docker-compose.yml "${docker_compose_args[@]}" "${extra_compose_args}" up -d "${@:$number_of_dev_envs}"\n"
59-
docker compose --profile oidc -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up -d "${@:$number_of_dev_envs}"
58+
echo -e "docker compose --profile oidc --profile test -f docker-compose.yml "${docker_compose_args[@]}" "${extra_compose_args}" up -d "${@:$number_of_dev_envs}"\n"
59+
docker compose --profile oidc --profile test -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up -d "${@:$number_of_dev_envs}"
6060
break
6161
;;
6262
*)
6363
# Use docker compose to start the environment but with the modified override file(s)
6464
echo -e "Starting the ${MODE} environment with the following command:\n"
6565

66-
echo -e "docker compose --profile oidc -f docker-compose.yml "${docker_compose_args[@]}" "${extra_compose_args}" up "${@:$number_of_dev_envs}"\n"
67-
docker compose --profile oidc -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up "${@:$number_of_dev_envs}"
66+
echo -e "docker compose --profile oidc --profile test -f docker-compose.yml "${docker_compose_args[@]}" "${extra_compose_args}" up "${@:$number_of_dev_envs}"\n"
67+
docker compose --profile oidc --profile test -f docker-compose.yml ${docker_compose_args[@]} ${extra_compose_args} up "${@:$number_of_dev_envs}"
6868
break
6969
;;
7070
esac

0 commit comments

Comments
 (0)