Rebase to debian as Alpine chromium is currently not working inside docker
This commit is contained in:
26
root/usr/bin/wrapped-chromium
Executable file
26
root/usr/bin/wrapped-chromium
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
BIN=/usr/bin/chromium
|
||||
|
||||
# Run normally on privved containers or modified un non priv
|
||||
if grep -q 'Seccomp:\t0' /proc/1/status; then
|
||||
${BIN} \
|
||||
--ignore-gpu-blocklist \
|
||||
--no-first-run \
|
||||
--password-store=basic \
|
||||
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
|
||||
--start-maximized \
|
||||
--user-data-dir \
|
||||
"$@" > /dev/null 2>&1
|
||||
else
|
||||
${BIN} \
|
||||
--ignore-gpu-blocklist \
|
||||
--no-first-run \
|
||||
--no-sandbox \
|
||||
--password-store=basic \
|
||||
--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' \
|
||||
--start-maximized \
|
||||
--test-type \
|
||||
--user-data-dir \
|
||||
"$@" > /dev/null 2>&1
|
||||
fi
|
||||
Reference in New Issue
Block a user