mirror of
https://github.com/status-im/status-go.git
synced 2025-02-17 17:28:38 +00:00
Enable metrics by default when building docker image (#774)
Prometheus metrics are enabled by default when running `make docker-image`.
This commit is contained in:
parent
88f881c83e
commit
8b264199c9
4
Makefile
4
Makefile
@ -12,7 +12,6 @@ endif
|
|||||||
CGO_CFLAGS=-I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
CGO_CFLAGS=-I/$(JAVA_HOME)/include -I/$(JAVA_HOME)/include/darwin
|
||||||
GOBIN=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
|
GOBIN=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))build/bin
|
||||||
|
|
||||||
BUILD_TAGS =
|
|
||||||
BUILD_FLAGS := $(shell echo "-ldflags '-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` -X main.gitCommit=$(git rev-parse HEAD)'")
|
BUILD_FLAGS := $(shell echo "-ldflags '-X main.buildStamp=`date -u '+%Y-%m-%d.%H:%M:%S'` -X main.gitCommit=$(git rev-parse HEAD)'")
|
||||||
|
|
||||||
GO ?= latest
|
GO ?= latest
|
||||||
@ -25,7 +24,7 @@ networkid ?= StatusChain
|
|||||||
DOCKER_IMAGE_NAME ?= statusteam/status-go
|
DOCKER_IMAGE_NAME ?= statusteam/status-go
|
||||||
|
|
||||||
DOCKER_TEST_WORKDIR = /go/src/github.com/status-im/status-go/
|
DOCKER_TEST_WORKDIR = /go/src/github.com/status-im/status-go/
|
||||||
DOCKER_TEST_IMAGE = golang:1.9
|
DOCKER_TEST_IMAGE = golang:1.9
|
||||||
|
|
||||||
UNIT_TEST_PACKAGES := $(shell go list ./... | grep -v /vendor | grep -v /t/e2e | grep -v /t/destructive | grep -v /cmd | grep -v /lib)
|
UNIT_TEST_PACKAGES := $(shell go list ./... | grep -v /vendor | grep -v /t/e2e | grep -v /t/destructive | grep -v /cmd | grep -v /lib)
|
||||||
|
|
||||||
@ -84,6 +83,7 @@ statusgo-library: ##@cross-compile Build status-go as static library for current
|
|||||||
@echo "Static library built:"
|
@echo "Static library built:"
|
||||||
@ls -la $(GOBIN)/libstatus.*
|
@ls -la $(GOBIN)/libstatus.*
|
||||||
|
|
||||||
|
docker-image: BUILD_TAGS ?= metrics prometheus
|
||||||
docker-image: ##@docker Build docker image (use DOCKER_IMAGE_NAME to set the image name)
|
docker-image: ##@docker Build docker image (use DOCKER_IMAGE_NAME to set the image name)
|
||||||
@echo "Building docker image..."
|
@echo "Building docker image..."
|
||||||
docker build --file _assets/build/Dockerfile --build-arg "build_tags=$(BUILD_TAGS)" . -t $(DOCKER_IMAGE_NAME):latest
|
docker build --file _assets/build/Dockerfile --build-arg "build_tags=$(BUILD_TAGS)" . -t $(DOCKER_IMAGE_NAME):latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user