mirror of
https://github.com/linuxserver/docker-webcord.git
synced 2026-02-19 15:25:32 +08:00
Merge pull request #3 from linuxserver/chromium
This commit is contained in:
commit
21f3e8a6d2
@ -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 ****" && \
|
||||
@ -20,7 +21,8 @@ RUN \
|
||||
/tmp/webcord.deb -L \
|
||||
"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-get install -y /tmp/webcord.deb && \
|
||||
apt-get 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 ****" && \
|
||||
|
||||
@ -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 ****" && \
|
||||
@ -20,7 +21,8 @@ RUN \
|
||||
/tmp/webcord.deb -L \
|
||||
"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-get install -y /tmp/webcord.deb && \
|
||||
apt-get 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 ****" && \
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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." }
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<openbox_menu xmlns="http://openbox.org/3.4/menu">
|
||||
<menu id="root-menu" label="MENU">
|
||||
<item label="WebCord" icon="/usr/share/pixmaps/webcord.png"><action name="Execute"><command>/usr/bin/webcord</command></action></item>
|
||||
<item label="Chromium" icon="/usr/share/icons/hicolor/48x48/apps/chromium.png"><action name="Execute"><command>/usr/bin/chromium</command></action></item>
|
||||
<item label="xterm" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/xterm</command></action></item>
|
||||
</menu>
|
||||
</openbox_menu>
|
||||
|
||||
24
root/usr/bin/chromium
Executable file
24
root/usr/bin/chromium
Executable 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
|
||||
Loading…
x
Reference in New Issue
Block a user