forked from nginx-serverless/nginx-lambda-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 loc) · 1.31 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
submodule:
git submodule update --init common/awssig
git submodule absorbgitdirs
git -C common/awssig config core.sparseCheckout true
echo 'core/*' >>.git/modules/common/awssig/info/sparse-checkout
git submodule update --force --checkout common/awssig
start:
docker-compose up -d
start-01:
docker-compose -f examples/01-all-lambda-function-arns/docker-compose.yml up -d
start-02:
docker-compose -f examples/02-one-lambda-function-arn/docker-compose.yml up -d
start-03:
docker-compose -f examples/03-one-lambda-function-url/docker-compose.yml up -d
start-04:
docker-compose -f examples/04-lambda-function-arn-url/docker-compose.yml up -d
ps:
docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"
watch:
watch 'docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Ports}}\t{{.Names}}"'
down:
docker-compose down
down-01:
docker-compose -f examples/01-all-lambda-function-arns/docker-compose.yml down
down-02:
docker-compose -f examples/02-one-lambda-function-arn/docker-compose.yml down
down-03:
docker-compose -f examples/03-one-lambda-function-url/docker-compose.yml down
down-04:
docker-compose -f examples/04-lambda-function-arn-url/docker-compose.yml down
clean:
docker kill $$(docker ps -q) 2> /dev/null || true
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)