-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·47 lines (36 loc) · 1.23 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
.PHONY: build start ps watch down stop clean
build:
docker-compose build --no-cache nms_oidc_keycloak
docker-compose build --no-cache nms_oidc_azuread
start-keycloak:
docker-compose up -d postgres
docker-compose up -d keycloak
start:
docker-compose up -d nms_oidc_keycloak
docker-compose up -d nms_oidc_azuread
docker exec nms-oidc-keycloak bash -c ". /etc/nms/nginx/oidc/config-oidc-var.sh bash"
docker exec nms-oidc-azuread bash -c ". /etc/nms/nginx/oidc/config-oidc-var.sh bash"
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-keycloak:
docker-compose down postgres
docker-compose down keycloak
down:
docker-compose down -s nms_oidc_keycloak
docker-compose down -s nms_oidc_azuread
kill:
docker kill nms-oidc-keycloak
docker kill nms-oidc-azuread
stop:
docker-compose stop
clean-all:
docker kill $$(docker ps -q) 2> /dev/null || true
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)
clean:
docker kill nms-oidc-azuread 2> /dev/null || true
docker kill nms-oidc-keycloak 2> /dev/null || true
docker system prune -a
docker volume rm $(docker volume ls -qf dangling=true)