-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (29 loc) · 776 Bytes
/
Makefile
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
run: build
docker build . --tag partybridge:dev
docker-compose -f docker-compose-dev.yaml up
up:
@docker compose up -d
down:
@docker compose down
# run `sipper
sip:
@cd sipper && go run .
image:
@docker build -t jeffthenaef/pb .
@docker push jeffthenaef/pb
build:
cd cmd/partybridge && go mod tidy && CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o partybridge main.go
debug:
@make up
@docker logs teaparty-partybridge-1 --tail 50 -f
# Build fresh versions of the docker containers, start a local stack, and run `sipper` against it.
test:
@make build
@make up
@make sip
attach:
@docker logs teaparty-partybridge-1 --tail 50 -f
watch:
@kubectl logs -l app=partybridge -f
ko:
@export KO_DOCKER_REPO=gcr.io/mineonlium && ko apply -f ko.yaml