-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathentrypoint.sh
executable file
·75 lines (72 loc) · 1.96 KB
/
entrypoint.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
set -e
# https://kapeli.com/cheat_sheets/Chromium_Command_Line_Switches.docset/Contents/Resources/Documents/index
CHROME_ARGS="--disable-background-networking \
--disable-background-timer-throttling \
--disable-breakpad \
--disable-canvas-aa \
--disable-client-side-phishing-detection \
--disable-cloud-import \
--disable-composited-antialiasing \
--disable-default-apps \
--disable-demo-mode \
--disable-dev-shm-usage \
--disable-extensions \
--disable-hang-monitor \
--disable-gesture-typing \
--disable-gpu \
--disable-gpu-sandbox \
--disable-infobars \
--disable-kill-after-bad-ipc \
--disable-notifications \
--disable-offer-store-unmasked-wallet-cards \
--disable-offer-upload-credit-cards \
--disable-office-editing-component-extension \
--disable-password-generation \
--disable-print-preview \
--disable-prompt-on-repost \
--disable-renderer-backgrounding \
--disable-seccomp-filter-sandbox \
--disable-setuid-sandbox \
--disable-smooth-scrolling \
--disable-speech-api \
--disable-sync \
--disable-tab-for-desktop-share \
--disable-translate \
--disable-voice-input \
--disable-wake-on-wifi \
--disable-web-security \
--disk-cache-dir=/tmp/cache-dir \
--disk-cache-size=10000000 \
--enable-async-dns \
--enable-simple-cache-backend \
--enable-tcp-fast-open \
--enable-webgl \
--font-render-hinting=none \
--headless \
--hide-scrollbars \
--ignore-certificate-errors \
--ignore-certificate-errors-spki-list \
--ignore-gpu-blocklist \
--ignore-ssl-errors \
--log-level=0 \
--media-cache-size=10000000 \
--metrics-recording-only \
--mute-audio \
--no-default-browser-check \
--no-experiments \
--no-first-run \
--no-pings \
--no-sandbox \
--no-zygote \
--prerender-from-omnibox=disabled \
--remote-debugging-address=$DEBUG_ADDRESS \
--remote-debugging-port=$DEBUG_PORT \
--safebrowsing-disable-auto-update \
--use-gl=swiftshader \
--user-data-dir=$HOME"
if [ -n "$CHROME_OPTS" ]; then
CHROME_ARGS="${CHROME_ARGS} ${CHROME_OPTS}"
fi
# Start Chrome
exec sh -c "chrome $CHROME_ARGS"