This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turnoff misleading error/warning messages
- Loading branch information
1 parent
f5837a9
commit dc2f849
Showing
4 changed files
with
84 additions
and
73 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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Copyright 2016 VMware, Inc. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# This Makefile's purpose is to hold common variables to reuse across | ||
# Makefiles for vDVS. | ||
|
||
export | ||
|
||
# Guest Package Version | ||
|
||
# PKG_VERSION is either set externally as part of a build off a tag or | ||
# suffixed with a sha1 of the most recent commit to the prefix of the | ||
# most recent tag. Tagged builds use the externally defined version, | ||
# developer builds use last tagged release and sha1 of the most recent commit. | ||
# Format: <last tagged release>.<last commit hash> | ||
PKG_VERSION ?= $(shell \ | ||
git describe --tags `git rev-list --tags --max-count=1` \ | ||
).$(shell \ | ||
git log --pretty=format:'%h' -n 1) | ||
|
||
# Managed plugin alias name | ||
MANAGED_PLUGIN_NAME="vsphere:latest" | ||
|
||
# build places binaries here: | ||
BIN := ../build | ||
MANAGED_PLUGIN_LOC := ../plugin | ||
|
||
# Use the following environment vars to change the behavior while building managed plugin: | ||
# | ||
# DOCKER_HUB_REPO - Dockerhub repo to use, in both name forming and in pushing to dockerhub. | ||
# Defaults to the result of `whoami` command. | ||
# Note: you first need to run 'docker login' in order for 'make push' to succeed | ||
# VERSION_TAG - How you want the version to look. Default is "current git tag +1 " | ||
# EXTRA_TAG - additional info you want in tag. Default is "-dev" | ||
# | ||
# To check resulting settings use "make info" | ||
# examples: | ||
# make | ||
# --> resulting name (for my build as of 3/17/17) msterin/docker-volume-vsphere:0.13-dev | ||
# | ||
# DOCKER_HUB_REPO=vmware EXTRA_TAG= VERSION_TAG=latest make | ||
# --> resulting name vmware/docker-volume-vsphere:latest | ||
# | ||
# DOCKER_HUB_REPO=cnastorage EXTRA_TAG=-CI make | ||
# --> resulting name cnastorage/docker-volume-vspehere:0.13-CI | ||
# | ||
|
||
# grab the latest commit SHA and related tag from git so we can construct plugin tag | ||
ifndef VERSION_TAG | ||
GIT_SHA := $(shell git rev-parse --revs-only --short HEAD) | ||
GIT_TAG := $(shell git describe --tags --abbrev=0 $(GIT_SHA)) | ||
endif | ||
|
||
# Allow these vars to be suplied in environment | ||
DOCKER_HUB_REPO ?= $(shell whoami) | ||
# "git tag + 1" , so "0.11" becomes "0.12" | ||
VERSION_TAG ?= $(shell echo $(GIT_TAG) | awk -F. '{printf ("%d.%d", $$1, $$2+1)}' ) | ||
EXTRA_TAG ?= -dev | ||
|
||
# final tag | ||
PLUGIN_TAG := $(VERSION_TAG)$(EXTRA_TAG) | ||
|
||
# plugin name - used as a base for full plugin name and container for extracting rootfs | ||
PLUGIN_NAME=$(DOCKER_HUB_REPO)/docker-volume-vsphere | ||
|
||
# Binaries we want to pick up from the actual build | ||
BINARY := docker-volume-vsphere |
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