-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.13 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
ifdef OS
RM := rmdir /s /q
else
RM := rm -rf
endif
COMPILER_FLAGS := -lpq -lssl -lcrypto -pthread -I./backend/include
GTEST_FLAGS := -lgtest -lgtest_main
C_TO_CPP_COMPATIBILITY := -Wno-write-strings
CJSON := -lcjson
HTTP := -lhttp_parser
build-backend-docker-image:
docker build -t lso_backend:1 .
start:
docker-compose -f docker-compose-release.yaml up
start-newdb:
-$(RM) postgres_volume
docker-compose -f docker-compose-release.yaml up
test:
-$(RM) postgres_test_volume
docker-compose -f docker-compose-test.yaml up
test-nodb:
docker compose -f docker-compose-test.yaml run backend_test sh build_and_run.sh test --nodb
down:
docker-compose -f docker-compose-release.yaml down -v --remove-orphans
docker-compose -f docker-compose-test.yaml down -v --remove-orphans
database-console:
docker-compose -f docker-compose-release.yaml exec database psql -U postgres -d lsodct
build-client-docker-image:
docker build -t lso_client:1.0 frontend/LsoClient
build-client:
cd frontend/LsoClient && mvn package
start-client:
java -jar frontend/LsoClient/target/LSOclient-1.0-SNAPSHOT-shaded.jar