From 4d448751d3e3f1070a82afc669b71b069bb09928 Mon Sep 17 00:00:00 2001 From: Ibrahim Jarif Date: Tue, 13 Mar 2018 22:24:50 +0530 Subject: [PATCH] fix(CI/CD): Increase /dev/shm volume size of docker container Funtional tests always fail on ci.centos.org due to low size of /dev/shm volume of the container in which the tests run. This is a known issue with running selenium (protractor) inside docker container. More info - https://github.com/elgalu/docker-selenium/issues/20#issuecomment-133011186 --- cico_run_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cico_run_tests.sh b/cico_run_tests.sh index 3643f5cbb..1a3d5d6e8 100644 --- a/cico_run_tests.sh +++ b/cico_run_tests.sh @@ -38,7 +38,11 @@ mkdir -p fabric8-ui-dist docker build -t fabric8-planner-builder -f Dockerfile . # User root is required to run webdriver-manager update. # This shouldn't be a problem for CI containers -CID=$(docker run --detach=true -v $(pwd)/fabric8-ui-dist:/home/fabric8/fabric8-planner/fabric8-ui-dist:Z --cap-add=SYS_ADMIN -t fabric8-planner-builder) +CID=$(docker run --detach=true \ + --shm-size=256m \ # Chrome crashed on low size of /dev/shm. + -v $(pwd)/fabric8-ui-dist:/home/fabric8/fabric8-planner/fabric8-ui-dist:Z \ + --cap-add=SYS_ADMIN \ + -t fabric8-planner-builder) # Build fabric8-planner