forked from onyx-dot-app/onyx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 902 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (18 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: craft-up craft-down craft-sandbox-image craft-backend-image craft-refresh-images craft-check-images
craft-up:
deployment/helm/dev/craft-up.sh
craft-down:
deployment/helm/dev/craft-down.sh
craft-sandbox-image:
docker build -t onyxdotapp/sandbox:dev backend/onyx/server/features/build/sandbox/image
kind load docker-image onyxdotapp/sandbox:dev --name onyx-dev
# Rebuild the image the in-cluster sandbox-proxy/api-server run, then restart them.
craft-backend-image:
docker build -t onyxdotapp/onyx-backend:dev backend/
kind load docker-image onyxdotapp/onyx-backend:dev --name onyx-dev
kubectl rollout restart deploy/onyx-sandbox-proxy deploy/onyx-api-server -n onyx
# Refresh everything: backend + sandbox images, PodTemplate, proxy/api restart.
craft-refresh-images:
deployment/helm/dev/refresh-images.sh
craft-check-images:
deployment/helm/dev/refresh-images.sh --check || true