Add chromium

This commit is contained in:
TheSpad 2023-05-09 23:09:23 +01:00
parent a934f0ff50
commit 2b032f0da5
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
5 changed files with 32 additions and 2 deletions

View File

@ -8,7 +8,8 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"
# title
ENV TITLE=WebCord
ENV TITLE=WebCord \
DEBIAN_FRONTEND=noninteractive
RUN \
echo "**** install webcord ****" && \
@ -21,6 +22,7 @@ RUN \
"https://github.com/SpacingBat3/WebCord/releases/download/${WEBCORD_VERSION}/webcord_$(echo ${WEBCORD_VERSION}| cut -c2-)_amd64.deb" && \
apt-get update && \
apt install -y /tmp/webcord.deb && \
apt install -y --no-install-recommends chromium && \
echo "**** openbox tweaks ****" && \
sed -i 's|</applications>| <application title="*WebCord*" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
echo "**** application tweaks ****" && \

View File

@ -8,7 +8,8 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
LABEL maintainer="thelamer"
# title
ENV TITLE=WebCord
ENV TITLE=WebCord \
DEBIAN_FRONTEND=noninteractive
RUN \
echo "**** install webcord ****" && \
@ -21,6 +22,7 @@ RUN \
"https://github.com/SpacingBat3/WebCord/releases/download/${WEBCORD_VERSION}/webcord_$(echo ${WEBCORD_VERSION}| cut -c2-)_arm64.deb" && \
apt-get update && \
apt install -y /tmp/webcord.deb && \
apt install -y --no-install-recommends chromium && \
echo "**** openbox tweaks ****" && \
sed -i 's|</applications>| <application title="*WebCord*" type="normal">\n <maximized>yes</maximized>\n </application>\n</applications>|' /etc/xdg/openbox/rc.xml && \
echo "**** application tweaks ****" && \

View File

@ -265,4 +265,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **09.05.23:** - Bundle Chromium to provide browser for opening links, etc.
* **21.04.23:** - Initial release.

View File

@ -75,4 +75,5 @@ app_setup_block: |
# changelog
changelogs:
- { date: "09.05.23:", desc: "Bundle Chromium to provide browser for opening links, etc." }
- { date: "21.04.23:", desc: "Initial release." }

24
root/usr/bin/chromium Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
BIN=/usr/lib/chromium/chromium
# Run normally on privved containers or modified un non priv
if grep -q 'Seccomp: 0' /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' \
--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' \
--test-type \
--user-data-dir \
"$@" > /dev/null 2>&1
fi