-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (23 loc) · 983 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
build:
docker compose -f docker-compose.yml -f docker-compose.metrics.yml build
up:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up
up-metrics:
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.metrics.yml up
deploy:
@docker compose -f docker-compose.yml -f docker-compose.metrics.yml up -d
@echo -e "\e[94mStarting laas-reflab...\e[0m"
@echo -e "\e[94mConnect to CLI with \e[0m'\e[92mmake cli\e[0m'"
detached:
@docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
@echo -e "\e[94mStarting laas-reflab...\e[0m"
cli:
@docker exec -it $${PWD##*/}-liblaas-1 /bin/bash -c "laas-reflab --cli"
stop:
@docker compose -f docker-compose.yml -f docker-compose.metrics.yml stop
edit-config:
vim /var/lib/docker/volumes/$${PWD##*/}_config_data/_data/config.yaml
db-shell:
docker exec -it --user postgres $${PWD##*/}-db-1 psql -d liblaas
config-dir:
cd /var/lib/docker/volumes/$${PWD##*/}_config_data/_data/