-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (47 loc) · 1.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
include .env.default
export $(shell sed 's/=.*//' .env.default)
ifneq (,$(wildcard ./.env.local))
include .env.local
export $(shell sed 's/=.*//' .env.local)
endif
data_app_image = poc-true-data-app
connector_dir = true-connector
mml_dir = multipart-message-library
wms_dir = websocket-message-streamer
post_up_sleep = 10
.DEFAULT_GOAL := up
check:
@echo Checking availability of tools and dependencies
mvn --version
python3 --version
docker compose version
git --version
curl --version
clean:
(cd ${connector_dir} && docker compose down -v) || true
(cd be-dataapp-provider && mvn clean) || true
rm -fr ${connector_dir} ${mml_dir} ${wms_dir}
data-app-deps:
rm -fr ${mml_dir}
git clone --depth 1 --branch ${MML_TAG} \
[email protected]:Engineering-Research-and-Development/true-connector-multipart_message_library.git \
${mml_dir}
cd ${mml_dir} && mvn clean install
rm -fr ${wms_dir}
git clone --depth 1 --branch ${WMS_TAG} \
[email protected]:Engineering-Research-and-Development/true-connector-websocket_message_streamer.git \
${wms_dir}
cd ${wms_dir} && mvn clean install
data-app: data-app-deps
cd be-dataapp-provider && \
mvn clean package && \
docker build -t ${data_app_image} .
clone:
rm -fr ${connector_dir}
git clone [email protected]:International-Data-Spaces-Association/true-connector.git ${connector_dir}
cd ${connector_dir} && git reset --hard ${TRUE_CONNECTOR_COMMIT_SHA}
up: check data-app clone
sed -i -E -r "s|image: rdlabengpa/ids_be_data_app:.*|image: ${data_app_image}:latest|g" ${connector_dir}/docker-compose.yml
cd ${connector_dir} && docker compose up -d --build --wait && sleep ${post_up_sleep}
./check-connector-health.sh
.PHONY: check clean data-app-deps data-app clone up