Fix firefox running in Docker by setting /dev/shm size to 2gb

This commit is contained in:
Michael Mayer 2019-05-20 20:36:31 +02:00
parent 6670bb30de
commit 7490ee5b51
4 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,4 @@
version: '3.3'
version: '3.5'
services:
photoprism:
@ -8,6 +8,7 @@ services:
volumes:
- "~/.cache/yarn:/root/.cache/yarn"
- "~/.cache/go-mod:/go/pkg/mod"
shm_size: "2gb"
environment:
PHOTOPRISM_HTTP_HOST: "0.0.0.0"
PHOTOPRISM_HTTP_PORT: 2342

View file

@ -1,4 +1,4 @@
version: '3.3'
version: '3.5'
services:
photoprism:
@ -11,6 +11,7 @@ services:
- "4000:4000" # Database (MySQL compatible)
volumes:
- ".:/go/src/github.com/photoprism/photoprism"
shm_size: "2gb"
environment:
PHOTOPRISM_DEBUG: "true"
PHOTOPRISM_SERVER_MODE: "debug"

View file

@ -12,7 +12,7 @@ module.exports = (config) => {
customLaunchers: {
LocalChrome: {
base: "ChromeHeadless",
flags: ["--disable-translate", "--disable-extensions", "--no-sandbox", "--disable-web-security"],
flags: ["--disable-translate", "--disable-extensions", "--no-sandbox", "--disable-web-security", "--disable-dev-shm-usage"],
},
},

View file

@ -10,7 +10,7 @@
"lint": "eslint --cache src/ *.js",
"fmt": "eslint --cache --fix src/ *.js",
"test": "karma start",
"test-chromium": "testcafe chromium:headless -S -s tests/screenshots tests/acceptance",
"test-chromium": "testcafe \"chromium:headless --disable-dev-shm-usage\" -S -s tests/screenshots tests/acceptance",
"test-firefox": "testcafe firefox:headless -S -s tests/screenshots tests/acceptance"
},
"babel": {