-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
74 lines (59 loc) · 1.57 KB
/
justfile
File metadata and controls
74 lines (59 loc) · 1.57 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
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
# SPDX-License-Identifier: PMPL-1.0-or-later
# Justfile - Network dashboard deployment automation
default:
@just --list
# Deploy network dashboard to Kubernetes cluster
deploy:
@echo "Deploying network dashboard..."
kubectl apply -f manifests/namespace.yaml
kubectl apply -f manifests/configmap.yaml
kubectl apply -f manifests/deployment.yaml
kubectl apply -f manifests/service.yaml
@echo "Network dashboard deployed"
@just status
# Remove network dashboard from cluster
undeploy:
@echo "Removing network dashboard..."
kubectl delete -f manifests/ --ignore-not-found=true
@echo "Cleanup complete"
# Show deployment status
status:
@echo "=== Network Dashboard Status ==="
@kubectl -n flatracoon-dashboard get all 2>/dev/null || echo "Not deployed yet"
# Start local development server
dev:
mix phx.server
# Run setup (fetch deps)
setup:
mix deps.get
# Build release
build:
MIX_ENV=prod mix release
# Watch pod logs
logs:
kubectl -n flatracoon-dashboard logs -f deployment/network-dashboard
# Validate manifests
validate:
@echo "Validating Kubernetes manifests..."
@for file in manifests/*.yaml; do \
echo "Checking $$file..."; \
kubectl apply --dry-run=client -f $$file > /dev/null; \
done
@echo "All manifests valid"
# Run lint checks
lint:
mix format --check-formatted
# Run tests
test:
mix test
# Clean build artifacts
clean:
mix clean
# Format code
fmt:
mix format
# Run all checks
check: lint test
# Prepare a release
release VERSION:
@echo "Releasing {{VERSION}}..."