Rebase to debian as Alpine chromium is currently not working inside docker

This commit is contained in:
thelamer
2023-12-29 13:44:35 -08:00
parent 4d75cd1f75
commit d283bec006
6 changed files with 18 additions and 6 deletions

26
root/usr/bin/wrapped-chromium Executable file
View 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