-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
35 lines (24 loc) · 1.11 KB
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
PROFILE := aeroncache
# Helper to point docker and Jib to Minikube's internal docker daemon
MINIKUBE_DOCKER_ENV := eval $$(minikube -p $(PROFILE) docker-env)
all: build-backend build-frontend
pull-images:
$(MINIKUBE_DOCKER_ENV) && docker pull eclipse-temurin:25-jre
$(MINIKUBE_DOCKER_ENV) && docker pull node:22-alpine
build-backend: clean-build pull-images build-java build-clustertools
minikube image ls --profile $(PROFILE) | grep aeroncache
clean-build:
./gradlew clean build
build-java:
# Builds all Jib modules directly into Minikube's Docker registry
$(MINIKUBE_DOCKER_ENV) && ./gradlew jibDockerBuild
build-clustertools:
$(MINIKUBE_DOCKER_ENV) && cd cache-http/http-clustertools && docker build . -t aeroncache-http-clustertools:latest
build-frontend: build-ui
build-ui:
$(MINIKUBE_DOCKER_ENV) && cd cache-ui/nextjs && docker build . -t aeroncache-ui-nextjs:latest
deploy-cluster:
helm upgrade --install aeroncache-cluster k8s/helm/aeroncache-cluster/ --set image.tag=latest --set image.pullPolicy=Never
testcontainers-build-all:
# Builds to the local host daemon (for Testcontainers)
./gradlew jibDockerBuild