Compare commits

...

10 Commits

Author SHA1 Message Date
Settel
030289be09 feat: run in background 2025-04-29 07:31:44 +02:00
Settel
f111777556 feat: install font Noto 2025-04-28 18:06:00 +02:00
Settel
a3a1825421 version: bump to 1.2 2025-04-28 14:36:58 +02:00
Settel
f23be9a5f3 version: bump to 1.2 2025-04-28 13:48:50 +02:00
Settel
2d5f1f2014 feat: install monospace font 2025-04-28 13:48:44 +02:00
Settel
21e44dc3b7 feat: run different profiles 2025-04-28 10:07:39 +02:00
Settel
4924bd4d5d feat: add missing fonts 2025-04-11 17:41:56 +02:00
Settel
1570e88d34 add teams-pwa launch script 2025-04-11 16:57:04 +02:00
Settel
e73183c879 feat: fix UID/GID issues 2025-04-11 15:10:56 +02:00
Settel
f1b1890425 forward .Xauthority 2025-04-11 13:50:30 +02:00
4 changed files with 38 additions and 14 deletions

View File

@ -8,19 +8,30 @@ RUN apt-get update && apt-get install -y \
--no-install-recommends \
fonts-liberation \
fonts-roboto \
hicolor-icon-theme \
fonts-symbola \
fonts-arkpandora \
fonts-noto-core \
fonts-noto-mono \
fonts-noto-ui-core \
fonts-noto-ui-extra \
fonts-noto-color-emoji \
hicolor-icon-theme \
libv4l-0 \
libcanberra-gtk-module \
libexif-dev \
libgl1-mesa-dri \
libgl1-mesa-glx \
dbus-x11 \
chromium-l10n \
chromium
RUN rm -rf /var/lib/apt/lists/* /config/.cache /var/tmp/* /tmp/*
RUN groupadd -r chromium && useradd -r -g chromium -G audio,video chromium \
RUN groupadd -g 1000 chromium && useradd -u 1000 -g chromium -G audio,video chromium \
&& mkdir -p /home/chromium/Downloads && chown -R chromium:chromium /home/chromium
COPY files/ /
USER chromium
ENTRYPOINT [ "chromium" ]
CMD [ "--user-data-dir=/data" ]
ENTRYPOINT [ "/usr/local/bin/teams-pwa" ]

View File

@ -1,5 +1,7 @@
VERSION=0.1
VERSION=1.2
SHELL=/bin/bash
PROFILE=diva-e
OPT=
.PHONY: info
@ -10,23 +12,30 @@ info:
build:
podman build -t teams-pwa:$(VERSION) .
run-bg:
$(MAKE) run OPT="-d"
run:
podman run -it \
podman run $(OPT) -it \
--rm \
--net host \
--memory 512mb \
--memory 2048mb \
--userns=keep-id:uid=1000,gid=1000 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket \
-e DISPLAY=unix$$DISPLAY \
-e XAUTHORITY=/home/chromium/.Xauthority \
-v $$HOME/.Xauthority:/home/chromium/.Xauthority \
-v /var/spool/teams-pwa/$(PROFILE):/home/chromium/ \
-v $$HOME/various/downloads:/home/chromium/Downloads \
--device /dev/snd \
--device /dev/dri \
-v /dev/shm:/dev/shm \
--name teams-pwa \
--user=root \
--entrypoint=/bin/bash \
--name teams-pwa-$(PROFILE) \
teams-pwa:$(VERSION)
# -v $HOME/.config/google-chrome/:/data \ # if you want to save state
stop:
podman stop teams-pwa-$(PROFILE)
clean:
@echo "nothing to do (yet)"

View File

@ -1,3 +0,0 @@
export GOOGLE_API_KEY="AIzaSyCkfPOPZXDKNn8hhgu3JrA62wIgC93d44k"
export GOOGLE_DEFAULT_CLIENT_ID="811574891467.apps.googleusercontent.com"
export GOOGLE_DEFAULT_CLIENT_SECRET="kdloedMFGdGla2P1zacGjAQh"

7
files/usr/local/bin/teams-pwa Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
exec chromium \
--password-store=basic \
--window-size=1200,760 \
--app-id=cifhbcnohmdccbgoicgdjpfamggdegmo \
"$@"