forked from Clever/mesos-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 810 Bytes
/
Makefile
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
include golang.mk
.DEFAULT_GOAL := test # override default goal set in library makefile
.PHONY: all test build clean
SHELL := /bin/bash
PKG := github.com/Clever/mesos-visualizer
PKGS := $(shell go list ./... | grep -v /vendor/)
EXECUTABLE := $(shell basename $(PKG))
$(eval $(call golang-version-check,1.13))
all: test build run
build:
@CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o $(EXECUTABLE) $(PKG)
run: build
docker build -t mesos-visualizer .
@docker run -p 8080:80 \
-v `pwd`/static:/bin/static/ \
-v $(AWS_SHARED_CREDENTIALS_FILE):$(AWS_SHARED_CREDENTIALS_FILE) \
--env-file=<(echo -e $(_ARKLOC_ENV_FILE)) mesos-visualizer
test: $(PKGS)
$(PKGS): golang-test-all-deps
$(call golang-test-all,$@)
install_deps: golang-dep-vendor-deps
$(call golang-dep-vendor)