faaso/Makefile

27 lines
607 B
Makefile
Raw Normal View History

2024-07-05 15:04:36 +00:00
build: shard.yml $(wildcard src/**/*) $(runtimes/**/*)
2024-07-05 20:32:41 +00:00
shards build -d --error-trace
2024-07-05 15:04:36 +00:00
cat .rucksack >> bin/faaso
2024-07-05 19:35:42 +00:00
cat .rucksack >> bin/faaso-daemon
2024-07-09 01:02:47 +00:00
proxy:
2024-07-04 23:23:30 +00:00
docker build . -t faaso-proxy
2024-07-09 01:02:47 +00:00
all: build proxy
2024-06-30 02:13:41 +00:00
start-proxy:
2024-07-09 13:57:36 +00:00
docker network create faaso-net || true
2024-07-06 14:57:30 +00:00
docker run --name faaso-proxy-one \
--rm --network=faaso-net \
-e FAASO_SECRET_PATH=${PWD}/secrets \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}/secrets:/home/app/secrets \
-v ${PWD}/config:/home/app/config \
-p 8888:8888 faaso-proxy
2024-07-09 01:02:47 +00:00
test:
crystal spec
clean:
rm bin/*
2024-07-09 01:02:47 +00:00
.PHONY: all build proxy-image start-proxy test clean