Some checks failed
Build teams container / Build image (push) Has been cancelled
* Changed to Podman * added option to use podman or docker on host * Feature/podman fix (#1) * WIP * WIP * restored dockerfile * podman works rootless savepoint * added bin folder * changed teams-two to podman * changed to podman scheme * updated Makefile * updated README.md * host script refactor * renamed Dockerfile to Containerfile for podman scheme * added ci * changed ci script name * tried changing repo name * prepared merge with main. Added config to swap container runtime with ease * added podman explanation to readme * improved the runtime_switching experience * fixed path mistake in env loading
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
include .env
|
|
|
|
launch:
|
|
teams-wrapper teams
|
|
teams-wrapper-two teams
|
|
|
|
kill-containers:
|
|
${CONTAINER_ENGINE} kill teams || podman kill teams-two # if error try kill other instance before exit
|
|
${CONTAINER_ENGINE} kill teams-two
|
|
|
|
build:
|
|
${CONTAINER_ENGINE} build -t docker.io/stifstof/teams-desktop:latest -f Containerfile .
|
|
|
|
build-no-cache:
|
|
${CONTAINER_ENGINE} build --no-cache -t docker.io/stifstof/teams-desktop:latest -f Containerfile .
|
|
|
|
install:
|
|
${CONTAINER_ENGINE} run -it --rm --privileged \
|
|
--volume ${PWD}/bin:/target \
|
|
docker.io/stifstof/teams-desktop:latest install
|
|
|
|
uninstall:
|
|
${CONTAINER_ENGINE} run -it --rm --privileged \
|
|
--volume ${PWD}/bin:/target \
|
|
docker.io/stifstof/teams-desktop:latest uninstall
|
|
|
|
# convenience jobs
|
|
|
|
push:
|
|
echo ${DOCKERHUB_STIFSTOF_PW} | podman login docker.io -u stifstof --password-stdin
|
|
${CONTAINER_ENGINE} push docker.io/stifstof/teams-desktop:latest
|
|
|
|
reinstall:
|
|
make uninstall
|
|
make build
|
|
make install
|
|
|
|
create-empty-config-folders:
|
|
mkdir ~/.config/Microsoft
|
|
mkdir ~/.config/MicrosoftTwo
|
|
|
|
# system setup
|
|
|
|
add-to-path:
|
|
export PATH=$PATH:/home/cn/Documents/git/TeamsInDocker/bin
|
|
|
|
podman_runtime:
|
|
rm -f .env
|
|
echo "CONTAINER_ENGINE=podman" >> .env
|
|
|
|
docker_runtime:
|
|
rm -f .env
|
|
echo "CONTAINER_ENGINE=docker" >> .env
|
|
|
|
current_runtime:
|
|
cat .env
|