-
Notifications
You must be signed in to change notification settings - Fork 88
Reworked managed plugin make to provide cleaner plugin names #1048
Conversation
See comments in the Makefile for explanations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! some minor nits.
plugin/Makefile
Outdated
# You can use the following environment vars to change the behavior : | ||
# | ||
# DOCKER_HUB_USER - name of user and dockerhub repo to use. Default is `whoami` | ||
# Please 'docker login' there is you want to push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can you please improve inline comment? it sounds confusing to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly is confusing ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not clear earlier with DOCKER_HUB_USER
and Please 'docker login' there is you want to push
.. after renaming it to docker_hub_repo
it makes sense that DOCKER_HUB_USER
needs to be set as environment explicitly if you are planning to push <docker_user_ids>/docker-volume-vsphere
or cnastorage/docker-volume-vsphere
as many of us are not having docker_user as whoami
No issues now as the variable got renamed now.
plugin/Makefile
Outdated
EXTRA_TAG ?= -dev | ||
|
||
# final tag | ||
PLUGIN_TAG := $(VERSION_TAG)$(EXTRA_TAG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add/append os distro in the final tag?
If I understand correctly rootfs would be different across distros, please correct me here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it only depends on FROM <distro>
in Dockerfile so it won't be different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @msterin for the info!
plugin/Makefile
Outdated
# | ||
# You can use the following environment vars to change the behavior : | ||
# | ||
# DOCKER_HUB_USER - name of user and dockerhub repo to use. Default is `whoami` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually a repository than HUB_USER
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. DOCKER_HUB_REPO then. Fixed
plugin/Makefile
Outdated
VERSION_TAG ?= $(shell echo $(GIT_TAG) | awk -F. '{printf ("%d.%d", $$1, $$2+1)}' ) | ||
EXTRA_TAG ?= -dev | ||
|
||
# final tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So when we cut a release, we need to set VERSION_TAG and EXTRA_TAG. Append to above comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to avoid enumerting all possibilities as I do not know how we will name the release. But an example is already there:
# DOCKER_HUB_REPO=vmware EXTRA_TAG= VERSION_TAG=latest make
# --> resulting name vmware/docker-volume-vsphere:latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments.
plugin/Makefile
Outdated
# 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 resuting settings use "make info" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo=>resulting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
plugin/Makefile
Outdated
# You can use the following environment vars to change the behavior : | ||
# | ||
# DOCKER_HUB_REPO - name of user and dockerhub repo to use. Default is `whoami` | ||
# Please 'docker login' there is you want to push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"You need to log in, using the 'docker login' command to push."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will rephrase
3476c23
to
e3543b2
Compare
See comments in the Makefile for explanations
tested by building the plugin