-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
107 lines (83 loc) · 3.32 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
base:
helmfile apply -f infra/helmfile.yaml -l component=base
confluent-operator:
helmfile apply -f infra/helmfile.yaml -l component=confluent
kafka:
helmfile apply -f infra/helmfile.yaml -l component=kafka
waterstream:
helmfile apply -f infra/helmfile.yaml -l component=waterstream
flink:
helmfile apply -f infra/helmfile.yaml -l component=flink
kafka-ui:
helmfile apply -f infra/helmfile.yaml -l component=kafka-ui
openrouteservice:
helmfile apply -f infra/helmfile.yaml -l component=openrouteservice
apps:
helmfile apply -f infra/helmfile.yaml -l component=fleet-demo
setupDockerBuildx:
docker buildx ls | grep codemotion-2024 &> /dev/null || docker buildx create --use --name codemotion-2024
packageVehicleSimulator:
cd vehicle-simulator/; ./gradlew clean shadowJar
dockerVehicleSimulator: packageVehicleSimulator setupDockerBuildx
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-vehicle-simulator:$(version) ./vehicle-simulator
packageVehicleSimulatorUI:
cd vehicle-simulator-ui/; ./gradlew clean shadowJar
dockerVehicleSimulatorUI: packageVehicleSimulatorUI setupDockerBuildx
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-vehicle-simulator-ui:$(version) ./vehicle-simulator-ui
packageFlinkJobDirection:
cd flink-jobs; ./mvnw -pl fleet-direction-counter package
packageFlinkJobVehicle:
cd flink-jobs; ./mvnw -pl fleet-vehicle-sink package
packageFlinkJobStats:
cd flink-jobs; ./mvnw -pl fleet-statistics-sink package
packageFlinkJobLocation:
cd flink-jobs; ./mvnw -pl fleet-location-sink package
packageFlinkJobVisible:
cd flink-jobs; ./mvnw -pl fleet-visible-vehicle package
dockerFlinkJobDirection: packageFlinkJobDirection
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-fleet-direction-counter:$(version) ./flink-jobs/fleet-direction-counter
dockerFlinkJobVehicle: packageFlinkJobVehicle
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-fleet-vehicle-sink:$(version) ./flink-jobs/fleet-vehicle-sink
dockerFlinkJobStats: packageFlinkJobStats
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-fleet-statistics-sink:$(version) ./flink-jobs/fleet-statistics-sink
dockerFlinkJobLocation: packageFlinkJobLocation
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-fleet-location-sink:$(version) ./flink-jobs/fleet-location-sink
dockerFlinkJobVisible: packageFlinkJobVisible
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/codemotion-2024-fleet-visible-vehicle:$(version) ./flink-jobs/fleet-visible-vehicle
packageLlmQuery:
python3 -m venv llm-query/.venv
. llm-query/.venv/bin/activate; pip install -r llm-query/requirements.txt
dockerLlmQuery: packageLlmQuery setupDockerBuildx
docker buildx build \
--builder codemotion-2024 \
--push \
--platform linux/amd64,linux/arm64 \
-t simoexpo/llm-query:$(version) ./llm-query