fix: disable shm usage in container builds (#111787)

* fix: disable shm usage in container builds

* ci: use EGL

* ci: use swiftshader

* ci: disable shm for unittests
This commit is contained in:
Robo
2020-12-09 10:46:35 -08:00
committed by GitHub
parent b36ec60ac4
commit daca95ea06
2 changed files with 20 additions and 10 deletions

View File

@@ -6,6 +6,8 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
# Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
LINUX_EXTRA_ARGS="--no-sandbox --disable-dev-shm-usage --use-gl=swiftshader"
fi
cd $ROOT
@@ -34,5 +36,5 @@ else
cd $ROOT ; \
ELECTRON_ENABLE_LOGGING=1 \
"$CODE" \
test/unit/electron/index.js --no-sandbox "$@" # Electron 6 introduces a chrome-sandbox that requires root to run. This can fail. Disable sandbox via --no-sandbox.
test/unit/electron/index.js $LINUX_EXTRA_ARGS "$@"
fi