-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (26 loc) · 833 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
build: shard.yml $(wildcard src/**/*) $(runtimes/**/*)
shards build -d --error-trace -Dstrict_multi_assign -Dno_number_autocast
proxy:
docker build . -t faaso
all: build proxy
start-proxy: proxy-image
docker network create faaso-net || true
docker stop faaso-proxy-fadmin || true
docker rm faaso-proxy-fadmin || true
docker run --name faaso-proxy-fadmin \
--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
test:
crystal spec
clean:
rm bin/*
static:
shards build faaso --static --release --no-debug -Dstrict_multi_assign -Dno_number_autocast
strip bin/faaso
proxy-image:
docker build . -t faaso
.PHONY: all build proxy-image start-proxy test clean static