add teams-pwa launch script

This commit is contained in:
Settel 2025-04-11 16:57:04 +02:00
parent e73183c879
commit 1570e88d34
3 changed files with 11 additions and 7 deletions

View File

@ -28,5 +28,4 @@ COPY files/ /
USER chromium
ENTRYPOINT [ "chromium" ]
CMD [ "--user-data-dir=/data" ]
ENTRYPOINT [ "/usr/local/bin/teams-pwa" ]

View File

@ -14,22 +14,20 @@ run:
podman run -it \
--rm \
--net host \
--memory 1024mb \
--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:U \
-v $$HOME/.Xauthority:/home/chromium/.Xauthority \
-v /var/spool/teams-pwa/diva-e:/home/chromium/ \
-v $$HOME/various/downloads:/home/chromium/Downloads \
--device /dev/snd \
--device /dev/dri \
-v /dev/shm:/dev/shm \
--name teams-pwa \
--entrypoint=/bin/bash \
teams-pwa:$(VERSION)
# -v $HOME/.config/google-chrome/:/data \ # if you want to save state
clean:
@echo "nothing to do (yet)"

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

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