test docker image before pushing

This commit is contained in:
Giancarlo Rubio 2017-01-24 11:19:44 +01:00
commit 1438243934
3 changed files with 34 additions and 0 deletions

View file

@ -76,6 +76,10 @@ docker:
@echo ">> building docker image"
@docker build -t "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" .
test-docker:
@echo ">> testing docker image"
./test_image.sh "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" 9100
$(GOPATH)/bin/promu promu:
@GOOS= GOARCH= $(GO) get -u github.com/prometheus/promu