Add setDockerLabels method

* Add mandatory LABEL to the end of the Dockerfile
* User can also add some custom properties

1. Simple usage, which adds mandatory properties to Dockerfile which
is located in current directory
   tools.setDockerfileLabels()

2. Extended usage, add Labels to calico ctl and node images
   def properties = [
     "CALICO_NODE_IMAGE_REPO=${calicoNodeImageRepo}",
     "CALICOCTL_IMAGE_REPO=${calicoCtlImageRepo}",
     "CALICO_VERSION=${calicoVersion}"
   ]
   tools.setDockerfileLabels("./calicoctl/Dockerfile", properties)
   tools.setDockerfileLabels("./calico_node/Dockerfile", properties)

Change-Id: I0f9e6b83d4ffe5fe6a5ff02da50658b9eded5824
2 files changed
tree: fa020644b9c06d3f642457a8a27953bb428e22ae
  1. src/
  2. vars/
  3. .gitreview