aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/microservices/collectd-operator/Makefile
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-08-08 00:07:08 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-08-12 10:51:22 -0700
commitd59e778f2b97c96fe7f6c3945f4bb9c91ff01e74 (patch)
tree7119c654f748a5bc6e1fe28dcdaea7ce4ed4c28a /vnfs/DAaaS/microservices/collectd-operator/Makefile
parent3d1e26dc3e9af8cc066bef9971bb870b841c903b (diff)
Upgrade operator-sdk bump version to 0.9.0
Upgrade operator-sdk bump version to 0.9.0 Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: I2b137599c3df9a0332862f46c5ac54892eeb5de2
Diffstat (limited to 'vnfs/DAaaS/microservices/collectd-operator/Makefile')
-rw-r--r--vnfs/DAaaS/microservices/collectd-operator/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/vnfs/DAaaS/microservices/collectd-operator/Makefile b/vnfs/DAaaS/microservices/collectd-operator/Makefile
index 07989148..7effedf0 100644
--- a/vnfs/DAaaS/microservices/collectd-operator/Makefile
+++ b/vnfs/DAaaS/microservices/collectd-operator/Makefile
@@ -12,23 +12,22 @@ VERSION := $(shell git describe --tags)
BUILD := $(shell git rev-parse --short HEAD)
PROJECTNAME := $(shell basename "$(PWD)")
-GOPATH := $(shell realpath "$(PWD)/../../../../../../")
+ROOTPATH := $(shell realpath "$(PWD)/../")
COP := ${PWD}/build/_output/bin/collectd-operator
COP_LOCAL := ${COP}-local
IMAGE_NAME := dcr.cluster.local:32644/collectd-operator:latest
-export GOPATH ...
export GO111MODULE=on
.PHONY: clean plugins
## build: Generate the k8s and openapi artifacts using operator-sdk
-build: clean vendor
+build: clean
GOOS=linux GOARCH=amd64
operator-sdk generate k8s --verbose
operator-sdk generate openapi --verbose
- #@go build -o ${COP} -gcflags all=-trimpath=${GOPATH} -asmflags all=-trimpath=${GOPATH} -mod=vendor demo/vnfs/DAaaS/microservices/collectd-operator/cmd/manager
- @go build -o ${COP_LOCAL} -mod=vendor demo/vnfs/DAaaS/microservices/collectd-operator/cmd/manager
+ #@go build -o ${COP} -gcflags all=-trimpath=${ROOTPATH} -asmflags all=-trimpath=${ROOTPATH} collectd-operator/cmd/manager
+ @go build -o ${COP_LOCAL} collectd-operator/cmd/manager
@operator-sdk build ${IMAGE_NAME} --verbose
# The following is done this way as each patch on CI runs build and each merge runs deploy. So for build we don't need to build binary and hence
@@ -44,13 +43,11 @@ debug:
operator-sdk generate k8s --verbose
operator-sdk generate openapi --verbose
@echo "Building ${COP_LOCAL} binary"
- @go build -o ${COP_LOCAL} -mod=vendor demo/vnfs/DAaaS/microservices/collectd-operator/cmd/manager
+ @go build -o ${COP_LOCAL} collectd-operator/cmd/manager
## deploy: Build Dockerfile and publish to repository
deploy: build publish
-## vendor: Build the vendor module
-vendor:
- @go mod vendor
+
## publish: Push docker image to repository
publish:
@docker push ${IMAGE_NAME}