feat: add README.md
This commit is contained in:
parent
030289be09
commit
8201470a08
8
Makefile
8
Makefile
@ -1,6 +1,6 @@
|
|||||||
VERSION=1.2
|
VERSION=1.2
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
PROFILE=diva-e
|
PROFILE=default
|
||||||
OPT=
|
OPT=
|
||||||
|
|
||||||
.PHONY: info
|
.PHONY: info
|
||||||
@ -12,10 +12,14 @@ info:
|
|||||||
build:
|
build:
|
||||||
podman build -t teams-pwa:$(VERSION) .
|
podman build -t teams-pwa:$(VERSION) .
|
||||||
|
|
||||||
|
setup:
|
||||||
|
mkdir -p "/var/spool/teams-pwa/$(PROFILE)"
|
||||||
|
|
||||||
run-bg:
|
run-bg:
|
||||||
$(MAKE) run OPT="-d"
|
$(MAKE) run OPT="-d"
|
||||||
|
|
||||||
run:
|
run:
|
||||||
|
[ -d "/var/spool/teams-pwa/$(PROFILE)" ] || $(MAKE) setup
|
||||||
podman run $(OPT) -it \
|
podman run $(OPT) -it \
|
||||||
--rm \
|
--rm \
|
||||||
--net host \
|
--net host \
|
||||||
@ -32,7 +36,7 @@ run:
|
|||||||
--device /dev/dri \
|
--device /dev/dri \
|
||||||
-v /dev/shm:/dev/shm \
|
-v /dev/shm:/dev/shm \
|
||||||
--name teams-pwa-$(PROFILE) \
|
--name teams-pwa-$(PROFILE) \
|
||||||
teams-pwa:$(VERSION)
|
teams-pwa:$(VERSION) $(ARGS)
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
podman stop teams-pwa-$(PROFILE)
|
podman stop teams-pwa-$(PROFILE)
|
||||||
|
27
README.md
Normal file
27
README.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# run Teams in a podman container
|
||||||
|
|
||||||
|
## requirements
|
||||||
|
|
||||||
|
* podman
|
||||||
|
* make
|
||||||
|
|
||||||
|
|
||||||
|
## usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# run in background
|
||||||
|
make run-bg PROFILE=my-profile
|
||||||
|
|
||||||
|
# stop container
|
||||||
|
make stop PROFILE=my-profile
|
||||||
|
```
|
||||||
|
|
||||||
|
## why?
|
||||||
|
|
||||||
|
Whenever you try to run multiple instances of Chromium (and Chrome), the second
|
||||||
|
instance detects it's already running and instead of creating a new, independent
|
||||||
|
process, it attaches to the already running instance.
|
||||||
|
|
||||||
|
While this mechanism saves a bunch of memory, for some use cases this is
|
||||||
|
counter-productive, eg. if you need to change global browser settings for
|
||||||
|
testing/developing purpose while you're running Teams.
|
Loading…
x
Reference in New Issue
Block a user