-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (34 loc) · 1.26 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
48
49
THIS_FILE := $(lastword $(MAKEFILE_LIST))
.PHONY: help build up start down destroy stop restart logs logs_api_gateway ps login_motoserver login_api_gateway
help:
make -pRrq -f $(THIS_FILE) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
create_secrets:
chmod +x mock_aws_services/create_secret.sh
sleep 5
mock_aws_services/create_secret.sh
docker-compose exec api_gateway python3 /var/www/mock_aws_services/create_secret.py
build:
docker-compose build
up:
docker-compose up -d mock-sirius motoserver api_gateway
up-bridge-ual:
docker-compose -f docker-compose.yml -f docker-compose.bridge-ual.yml up -d mock-sirius motoserver api_gateway
down-bridge-ual:
docker-compose -f docker-compose.yml -f docker-compose.bridge-ual.yml down
up-all:
docker-compose up -d
down:
docker-compose down $(c)
setup: build up create_secrets
setup-bridge-ual: build up-bridge-ual create_secrets
setup-all: build up-all create_secrets
destroy:
docker-compose down -v --rmi all --remove-orphans
ps:
docker-compose ps
login-api-gateway:
docker-compose exec api_gateway /bin/bash
logs:
docker-compose logs --tail=100 -f $(c)
unit-tests-all:
docker-compose run unit-test-lpa-data