-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 971 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 971 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
31
32
33
34
BIN=bin
GO=go
all: serverledge executor serverledge-cli lb
serverledge:
$(GO) build -o $(BIN)/$@ cmd/$@/main.go
lb:
CGO_ENABLED=0 $(GO) build -o $(BIN)/$@ cmd/$@/main.go
serverledge-cli:
CGO_ENABLED=0 $(GO) build -o $(BIN)/$@ cmd/cli/main.go
executor:
CGO_ENABLED=0 $(GO) build -o $(BIN)/$@ cmd/$@/executor.go
DOCKERHUB_USER=grussorusso
images: image-python310 image-nodejs17ng image-base
image-python310:
docker build -t $(DOCKERHUB_USER)/serverledge-python310 -f images/python310/Dockerfile .
image-base:
docker build -t $(DOCKERHUB_USER)/serverledge-base -f images/base-alpine/Dockerfile .
image-nodejs17ng:
docker build -t $(DOCKERHUB_USER)/serverledge-nodejs17ng -f images/nodejs17ng/Dockerfile .
push-images:
docker push $(DOCKERHUB_USER)/serverledge-python310
docker push $(DOCKERHUB_USER)/serverledge-base
docker push $(DOCKERHUB_USER)/serverledge-nodejs17ng
test:
go test -v ./...
.PHONY: serverledge serverledge-cli lb executor test images