-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add back json array format for collector entrypoint - specify full include path for collector/Version.h - auto-detect platform arch - specify arch in builder image name and cmake-dir
- Loading branch information
1 parent
21f8685
commit c7ab8ae
Showing
8 changed files
with
26 additions
and
30 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
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
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,25 +1,27 @@ | ||
|
||
ifeq ($(COLLECTOR_BUILDER_TAG),) | ||
COLLECTOR_BUILDER_TAG=master | ||
endif | ||
|
||
ifeq ($(COLLECTOR_TAG),) | ||
ifeq ($(CIRCLE_TAG),) | ||
COLLECTOR_TAG=$(shell git describe --tags --abbrev=10 --dirty) | ||
else | ||
COLLECTOR_TAG := $(CIRCLE_TAG) | ||
endif | ||
|
||
DOCKER_CLI := $(shell command -v docker 2>/dev/null) | ||
|
||
ifeq ($(DOCKER_CLI),) | ||
$(error "docker is required for building") | ||
endif | ||
|
||
HOST_ARCH := $(shell docker system info --format '{{.Architecture}}') | ||
PLATFORM ?= "linux/$(HOST_ARCH)" | ||
|
||
USE_VALGRIND ?= false | ||
ADDRESS_SANITIZER ?= false | ||
CMAKE_BUILD_TYPE ?= Release | ||
PLATFORM ?= linux/amd64 | ||
CMAKE_BUILD_TYPE ?= release | ||
CMAKE_BASE_DIR = cmake-build-$(CMAKE_BUILD_TYPE)-$(HOST_ARCH) | ||
TRACE_SINSP_EVENTS ?= false | ||
DISABLE_PROFILING ?= false | ||
BPF_DEBUG_MODE ?= false | ||
|
||
COLLECTOR_BUILD_CONTEXT = collector/ | ||
COLLECTOR_BUILDER_NAME ?= collector_builder | ||
|
||
export COLLECTOR_PRE_ARGUMENTS | ||
COLLECTOR_BUILDER_NAME ?= collector_builder_$(HOST_ARCH) |
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
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,10 +1,10 @@ | ||
#ifndef _VERSION_H_ | ||
#define _VERSION_H_ | ||
#ifndef _COLLECTOR_VERSION_H_ | ||
#define _COLLECTOR_VERSION_H_ | ||
|
||
#define COLLECTOR_VERSION "${COLLECTOR_VERSION}" | ||
#define COLLECTOR_VERSION "@COLLECTOR_VERSION@" | ||
|
||
inline const char* GetCollectorVersion() { | ||
return COLLECTOR_VERSION; | ||
} | ||
|
||
#endif // _VERSION_H_ | ||
#endif // _COLLECTOR_VERSION_H_ |
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
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
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