-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 880 Bytes
/
Copy pathMakefile
File metadata and controls
17 lines (15 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.PHONY: start clean
start: ## Start tinyFaaS
@docker build -t tinyfaas-mgmt ./src/
@docker build ./src/reverse-proxy
@docker pull node:18-alpine
@docker run -v /var/run/docker.sock:/var/run/docker.sock -p 60008:8080 -e HTTP_PORT=60010 --name tinyfaas-mgmt -d tinyfaas-mgmt tinyfaas-mgmt
clean: ## Remove tinyFaaS
@docker rm -f tinyfaas-mgmt > /dev/null || true
@docker rm -f $$(docker ps -a -q --filter network=endpoint-net) > /dev/null || true
@docker rm -f $$(docker ps -a -q --filter network=handler-net) > /dev/null || true
for line in $$(docker network ls -q --filter name=handler-net) ; do \
docker rm -f $$(docker ps -a -q --filter network=$$line) > /dev/null || true ; \
done
@docker network rm $$(docker network ls -q --filter name=endpoint-net) > /dev/null || true
@docker network rm $$(docker network ls -q --filter name=handler-net) > /dev/null || true