forked from krakend/playground-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (31 loc) · 1.04 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
.PHONY: start stop restart logs compile-flexible-config elastic audit check
start:
docker-compose up -d
stop:
docker-compose down --volumes
restart:
docker-compose restart
logs:
docker-compose logs -f logstash
compile-flexible-config:
docker run \
-v $(PWD)/config/krakend/:/etc/krakend/ \
-e FC_ENABLE=1 \
-e FC_SETTINGS=/etc/krakend/settings/dev \
-e FC_PARTIALS=/etc/krakend/partials \
-e FC_TEMPLATES=/etc/krakend/templates \
-e FC_OUT=/etc/krakend/krakend-flexible-config.compiled.json \
krakend/krakend-ee \
check -c krakend-flexible-config.tmpl
check:
docker run -it \
-v $(PWD)/config/krakend/:/etc/krakend/ \
krakend/krakend-ee \
check -d -t -c krakend.json --lint
audit:
docker run -it \
-v $(PWD)/config/krakend/:/etc/krakend/ \
krakend/krakend-ee \
audit -c krakend.json
elastic:
curl -X POST "localhost:5601/api/saved_objects/_import" -H "kbn-xsrf: true" --form file=@config/telemetry/kibana/dashboard.ndjson -H "kbn-xsrf: true"