Skip to content

Commit 8177433

Browse files
committed
Start chromium with devtools panel
1 parent 2fca6f6 commit 8177433

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Dockerfile.local

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ COPY kernel-images/images/chromium-headful/wrapper.sh /wrapper.sh
262262
COPY kernel-images/images/chromium-headful/supervisord.conf /etc/supervisor/supervisord.conf
263263
COPY kernel-images/images/chromium-headful/supervisor/services/ /etc/supervisor/conf.d/services/
264264

265+
# Override chromium.conf with local version that includes auto-open-devtools
266+
COPY supervisor/services/chromium.conf /etc/supervisor/conf.d/services/chromium.conf
267+
265268
# copy the kernel-images API binary built in the builder stage
266269
COPY --from=server-builder /out/kernel-images-api /usr/local/bin/kernel-images-api
267270

supervisor/services/chromium.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[program:chromium]
2+
command=/bin/bash -lc '/images/chromium-headful/start-chromium.sh'
3+
autostart=false
4+
autorestart=true
5+
startsecs=5
6+
stdout_logfile=/var/log/supervisord/chromium
7+
redirect_stderr=true
8+
environment=HOME="/home/kernel",USER="kernel",CHROMIUM_FLAGS="--auto-open-devtools-for-tabs"

0 commit comments

Comments
 (0)