Adding a Docker image to have testcafe + docker-compose
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
testcafe:
|
testcafe:
|
||||||
image: testcafe/testcafe:1.17.1
|
build: tests/
|
||||||
working_dir: /tests
|
working_dir: /project/tests
|
||||||
|
# Run as root to have the right to access /var/run/docker.sock
|
||||||
|
user: root
|
||||||
environment:
|
environment:
|
||||||
BROWSER: "chromium --use-fake-device-for-media-stream"
|
BROWSER: "chromium --use-fake-device-for-media-stream"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tests:/tests
|
- ./:/project
|
||||||
- ./maps:/maps
|
- ./maps:/maps
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
# security_opt:
|
# security_opt:
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
FROM testcafe/testcafe:1.17.1
|
||||||
|
|
||||||
|
USER root
|
||||||
|
RUN apk add docker-compose
|
||||||
|
USER user
|
||||||
Reference in New Issue
Block a user