fixed cy:docker:

This commit is contained in:
Sebastian Frank 2022-02-26 11:39:25 +01:00
parent e3ba15dd6b
commit d119c39a72
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57
2 changed files with 9 additions and 1 deletions

5
cypress/tsconfig.json Normal file
View File

@ -0,0 +1,5 @@
{
"compilerOptions": {
"preserveValueImports": false
}
}

View File

@ -49,7 +49,8 @@ services:
CYPRESS_mongodbUri: mongodb://mongo CYPRESS_mongodbUri: mongodb://mongo
CYPRESS_tibiApiUrl: http://tibi-server:8080/api/v1 CYPRESS_tibiApiUrl: http://tibi-server:8080/api/v1
CYPRESS_projectApiConfig: /workdir/api/config.yml CYPRESS_projectApiConfig: /workdir/api/config.yml
DISPLAY: host.docker.internal:0.0 #DISPLAY: host.docker.internal:0.0
DISPLAY: $DISPLAY
LIBGL_ALWAYS_INDIRECT: 1 LIBGL_ALWAYS_INDIRECT: 1
command: sh ./scripts/cy-command.docker.sh $CY_COMMAND command: sh ./scripts/cy-command.docker.sh $CY_COMMAND
#command: yarn cy:$CY_COMMAND #command: yarn cy:$CY_COMMAND
@ -58,5 +59,7 @@ services:
volumes: volumes:
- ./:/workdir - ./:/workdir
- ~/.cache:/home/node/.cache - ~/.cache:/home/node/.cache
- $HOME/.Xauthority:$HOME/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
working_dir: /workdir working_dir: /workdir
user: $CURRENT_UID user: $CURRENT_UID