-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
35 lines (28 loc) · 1.58 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
.PHONY: docker-start-localtest
docker-start-localtest:
docker-compose up -d --build
.PHONY: docker-stop-localtest
docker-stop-localtest:
docker-compose down
.PHONY: podman-start-localtest
podman-start-localtest:
podman compose --file podman-compose.yml up -d --build
.PHONY: podman-stop-localtest
podman-stop-localtest:
podman compose --file podman-compose.yml down
.PHONY: podman-compose-start-localtest
podman-compose-start-localtest:
podman-compose --file podman-compose.yml up -d --build
.PHONY: podman-compose-stop-localtest
podman-compose-stop-localtest:
podman-compose --file podman-compose.yml down
.PHONY: podman-selinux-bind-hack
podman-selinux-bind-hack:
@echo "Running best effort commands to make bind mounts work on Apple Silicon and Linux with podman. Dirty hack until actual issue is located and fixed."
podman container run -v ./testdata/:/testdata/:Z --rm -it --entrypoint cat nginx:alpine-perl /testdata/authorization/claims/1337.json > /dev/null
podman container run -v ./loadbalancer/templates/:/testdata/:Z --rm -it --entrypoint cat nginx:alpine-perl /testdata/nginx.conf.conf > /dev/null
podman container run -v ./loadbalancer/www/:/testdata/:Z --rm -it --entrypoint cat nginx:alpine-perl /testdata/502App.html > /dev/null
.PHONY: sync-dashboards
sync-dashboards:
curl -o ./infra/grafana-dashboards/aspnetcore.json https://raw.githubusercontent.com/dotnet/aspire/main/src/Grafana/dashboards/aspnetcore.json
curl -o ./infra/grafana-dashboards/aspnetcore-endpoint.json https://raw.githubusercontent.com/dotnet/aspire/main/src/Grafana/dashboards/aspnetcore-endpoint.json