-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (40 loc) · 1.16 KB
/
Makefile
File metadata and controls
49 lines (40 loc) · 1.16 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
.PHONY: build run test clean docker-build docker-run
# Build all components
build:
cd decub-control-plane && go mod tidy && go build -o ../bin/control-plane
cd decub-gcl/go && go mod tidy && go build -o ../../bin/gcl-go
cd decub-gossip && go mod tidy && go build -o ../bin/gossip
cd decub-cas && go mod tidy && go build -o ../bin/cas
cd decub-catalog && go mod tidy && go build -o ../bin/catalog
# Run all services with docker-compose
run:
docker-compose up -d
# Run tests
test:
cd decub-control-plane && go test ./...
cd decub-gcl/go && go test ./...
cd decub-gossip && go test ./...
cd decub-cas && go test ./...
cd decub-catalog && go test ./...
# Clean build artifacts
clean:
rm -rf bin/
docker-compose down -v
# Build Docker images
docker-build:
docker-compose build
# Run with Docker
docker-run:
docker-compose up
# Stop all services
stop:
docker-compose down
# View logs
logs:
docker-compose logs -f
# Setup development environment
setup:
@echo "Setting up development environment..."
@echo "Make sure you have Go 1.19+, Docker, and Docker Compose installed"
@echo "Run 'make build' to build all components"
@echo "Run 'make run' to start all services"