Skip to content

Commit a2b51f5

Browse files
author
Bas Strooband
authored
Merge pull request #49 from OpenConext/feature/add-chrome-container-for-eb-browser-tests
Add chrome container for EB browser tests
2 parents 225ec8c + e917f6f commit a2b51f5

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
@@ -472,6 +472,21 @@ services:
472472
profiles:
473473
- "sbs"
474474

475+
chrome:
476+
image: alpeware/chrome-headless-trunk
477+
ports:
478+
- 9222:9222
479+
environment:
480+
- CHROME_OPTS=--ignore-certificate-errors --window-size=1920,1080 --ignore-ssl-errors
481+
volumes:
482+
- /tmp/chromedata/:/data
483+
networks:
484+
coreconextdev:
485+
aliases:
486+
- chrome.dev.openconext.local
487+
profiles:
488+
- "test"
489+
475490
networks:
476491
coreconextdev:
477492
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)