forked from gliderlabs/registrator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
we don't use them, the targets in the Makefile are replaced by ones that do not use docker
- Loading branch information
Showing
4 changed files
with
13 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
build | ||
release | ||
vendor | ||
registrator | ||
|
||
dist/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
NAME=registrator | ||
VERSION=$(shell cat VERSION) | ||
DEV_RUN_OPTS ?= consul: | ||
default: all | ||
|
||
dev: | ||
docker build -f Dockerfile.dev -t $(NAME):dev . | ||
docker run --rm \ | ||
-v /var/run/docker.sock:/tmp/docker.sock \ | ||
$(NAME):dev /bin/registrator $(DEV_RUN_OPTS) | ||
.PHONY: registrator | ||
registrator: | ||
CGO_ENABLED=0 go build -trimpath -o $@ *.go | ||
|
||
build: | ||
mkdir -p build | ||
docker build -t $(NAME):$(VERSION) . | ||
docker save $(NAME):$(VERSION) | gzip -9 > build/$(NAME)_$(VERSION).tgz | ||
.PHONY: check | ||
check: | ||
golangci-lint run | ||
|
||
.PHONY: test | ||
test: | ||
go test -race ./... | ||
|
||
.PHONY: build dev | ||
.PHONY: all | ||
all: registrator check test |