Skip to content

Commit 7bc5270

Browse files
committed
add video on main dockefiles too
1 parent 81bae3b commit 7bc5270

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

docker-compose.unit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,32 @@ services:
5252
chrome:
5353
image: selenium/standalone-chrome-debug
5454
container_name: chrome
55+
environment:
56+
SCREEN_WIDTH: 1280
57+
SCREEN_HEIGHT: 1024
5558
ports:
5659
- "5900:5900"
5760
healthcheck:
5861
test: ["CMD", "curl", "-v", "http://localhost:4444/wd/hub/status"]
5962
interval: 10s
6063
timeout: 5s
6164
retries: 3
65+
video:
66+
platform: linux/amd64
67+
image: davidsiaw/vrec
68+
container_name: chromevideo
69+
environment:
70+
HOST: 'chrome:5900'
71+
MP4LOC: '/var/output/out.mp4'
72+
GIVEUID: "1000"
73+
GIVEGID: "1000"
74+
ports:
75+
- "9494:9494"
76+
volumes:
77+
- type: bind
78+
source: ./vidoutput
79+
target: /var/output
80+
depends_on:
81+
- chrome
6282
volumes:
6383
db_data:

docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,33 @@ services:
111111
platform: linux/amd64
112112
image: selenium/standalone-chrome-debug
113113
container_name: chrome
114+
environment:
115+
SCREEN_WIDTH: 1280
116+
SCREEN_HEIGHT: 1024
114117
ports:
115118
- "5900:5900"
116119
healthcheck:
117120
test: ["CMD", "curl", "-vf", "http://localhost:4444/wd/hub/status"]
118121
interval: 10s
119122
timeout: 5s
120123
retries: 3
124+
video:
125+
platform: linux/amd64
126+
image: davidsiaw/vrec
127+
container_name: chromevideo
128+
environment:
129+
HOST: 'chrome:5900'
130+
MP4LOC: '/var/output/out.mp4'
131+
GIVEUID: "1000"
132+
GIVEGID: "1000"
133+
ports:
134+
- "9494:9494"
135+
volumes:
136+
- type: bind
137+
source: ./vidoutput
138+
target: /var/output
139+
depends_on:
140+
- chrome
121141
volumes:
122142
db_data:
123143
active_storage:

0 commit comments

Comments
 (0)