This repository has been archived by the owner on Aug 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a User-Agent header to metadata API requests; allow overriding v…
…ia config; add --version argument. (#84)
- Loading branch information
1 parent
621e16a
commit f58374b
Showing
7 changed files
with
76 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
PKG_VERSION=0.0.17 | ||
PKG_RELEASE=1 | ||
DOCKER_VERSION=0.2 | ||
|
||
LIBDIR=../lib | ||
CPP_NETLIB_DIR=$(LIBDIR)/cpp-netlib | ||
CPP_NETLIB_LIBDIR=$(CPP_NETLIB_DIR)/libs/network/src | ||
|
@@ -12,10 +16,12 @@ GIT_VERSION=$(shell $(GIT) --version | grep -oh '[0-9]\+\.[0-9]\+\.[0-9]\+') | |
|
||
SED_I=/usr/bin/env sed -i | ||
CMAKE=cmake | ||
CXXFLAGS=\ | ||
-std=c++11 -g -Wno-write-strings -Wno-deprecated \ | ||
CPPFLAGS=\ | ||
-DAGENT_VERSION='$(PKG_VERSION)-$(PKG_RELEASE)' \ | ||
-DENABLE_DOCKER_METADATA -DENABLE_KUBERNETES_METADATA \ | ||
-I$(CPP_NETLIB_DIR) -I$(NETWORK_URI_DIR)/include -I$(YAML_CPP_DIR)/include | ||
CXXFLAGS=\ | ||
-std=c++11 -g -Wno-write-strings -Wno-deprecated | ||
LDFLAGS=-L$(CPP_NETLIB_LIBDIR) -L$(NETWORK_URI_LIBDIR) -L$(YAML_CPP_LIBDIR) | ||
LDLIBS=\ | ||
-lcppnetlib-client-connections -lcppnetlib-server-parsers -lnetwork-uri \ | ||
|
@@ -80,11 +86,8 @@ install: metadatad | |
|
||
export DISTRO | ||
PKG_NAME=stackdriver-metadata | ||
PKG_VERSION=0.0.17 | ||
PKG_RELEASE=1 | ||
PKG_MAINTAINER=Stackdriver Agents <[email protected]> | ||
|
||
DOCKER_VERSION=0.2 | ||
DOCKER_IMAGE=us.gcr.io/container-monitoring-storage/stackdriver-metadata-agent | ||
DOCKER_TAG=$(DOCKER_VERSION)-$(PKG_VERSION)-$(PKG_RELEASE) | ||
|
||
|
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
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