forked from extrnode/extrnode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 718 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (24 loc) · 718 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
.PHONY: build start dev stop test mocks lint clickhouse
SHELL := /bin/bash
export APP_NAME=extrnode-go
export APP_VERSION=latest
build:
@echo "building ${APP_NAME} with version ${APP_VERSION}"
@echo "building docker image ${APP_IMAGE}"
@docker build -f Dockerfile . -t ${APP_NAME}:${APP_VERSION}
start:
@docker-compose up -d
dev: clickhouse
@docker-compose -f docker-compose-postgres.yml up -d postgres
clickhouse:
@docker-compose -f docker-compose-clickhouse.yml up -d clickhouse
stop:
@docker-compose stop
test:
@go test -v ./...
mocks:
# go install github.com/golang/mock/mockgen@v1.6.0
@go generate ./...
lint:
# go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
@golangci-lint run