forked from jazware/jetstream
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 722 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 722 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
25
26
27
28
29
30
GO_CMD_W_CGO = CGO_ENABLED=1 GOOS=linux go
GO_CMD = CGO_ENABLED=0 GOOS=linux go
JETSTREAM_VERSION = sha-$(shell git rev-parse HEAD)
# Build Jetstream
.PHONY: build
build:
@echo "Building Jetstream Go binary..."
$(GO_CMD_W_CGO) build -o jetstream cmd/jetstream/*.go
# Run Jetstream
.PHONY: run
run: .env
@echo "Running Jetstream..."
$(GO_CMD_W_CGO) run cmd/jetstream/*.go
.PHONY: up
up:
@echo "Starting Jetstream..."
JETSTREAM_VERSION=${JETSTREAM_VERSION} docker compose up -d
.PHONY: rebuild
rebuild:
@echo "Starting Jetstream..."
JETSTREAM_VERSION=${JETSTREAM_VERSION} docker compose up -d --build
.PHONY: down
down:
@echo "Stopping Jetstream..."
JETSTREAM_VERSION=${JETSTREAM_VERSION} docker compose down