31 lines
801 B
Makefile
31 lines
801 B
Makefile
.PHONY: dev local client build test images images-compose hosted-up
|
|
|
|
dev:
|
|
go run ./cmd/server
|
|
|
|
local:
|
|
go run ./cmd/server
|
|
|
|
client:
|
|
go run ./cmd/client -help
|
|
|
|
build:
|
|
go build ./cmd/server
|
|
go build ./cmd/client
|
|
go build ./cmd/customer-service
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
# Build the same three artifacts that are intended for three independent CI jobs.
|
|
images:
|
|
docker build -f Dockerfile.server -t $${NEURALHUNT_SERVER_IMAGE:-neuralhunt-server:local} .
|
|
docker build -f Dockerfile.customer-service -t $${NEURALHUNT_CUSTOMER_IMAGE:-neuralhunt-customer-service:local} .
|
|
docker build -f Dockerfile.worker -t $${CS_WORKER_IMAGE:-neuralhunt-worker:local} .
|
|
|
|
images-compose:
|
|
docker compose --profile images build app customer-service worker-image
|
|
|
|
hosted-up: images
|
|
docker compose --profile hosted up -d
|