Skip to content

Commit

Permalink
fix(CI/CD): Increase /dev/shm volume size of docker container
Browse files Browse the repository at this point in the history
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 - elgalu/docker-selenium#20 (comment)
  • Loading branch information
jarifibrahim committed Mar 13, 2018
1 parent d26afe7 commit 4d44875
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cico_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d44875

Please sign in to comment.