2016-11-01 17:36:06 +01:00
all : build
2017-01-04 14:57:06 +01:00
REPO ?= quay.io/coreos/prometheus-operator
TAG ?= $( shell git rev-parse --short HEAD)
2016-11-01 17:36:06 +01:00
2016-09-21 13:48:13 +02:00
build :
2016-11-01 16:59:36 +01:00
./scripts/check_license.sh
2016-11-01 14:19:25 +01:00
go build github.com/coreos/prometheus-operator/cmd/operator
2016-10-18 16:33:15 +02:00
container :
2016-11-02 17:40:17 +01:00
GOOS = linux $( MAKE) build
2016-11-01 17:36:06 +01:00
docker build -t $( REPO) :$( TAG) .
2016-11-28 14:58:23 +01:00
e2e : container
2016-12-19 16:23:40 +01:00
go test -v ./test/e2e/ --kubeconfig " $( HOME) /.kube/config " --operator-image= quay.io/coreos/prometheus-operator:$( TAG) --namespace= prometheus-operator-e2e-tests-$( TAG)
2016-11-24 12:38:09 +01:00
clean-e2e :
kubectl delete namespace prometheus-operator-e2e-tests
.PHONY : all build container e 2e clean -e 2e