New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added docker labels - follows label schema namespace #94
Conversation
Codecov Report
@@ Coverage Diff @@
## master #94 +/- ##
=======================================
Coverage 12.36% 12.36%
=======================================
Files 42 42
Lines 5954 5954
=======================================
Hits 736 736
Misses 5175 5175
Partials 43 43 Continue to review full report at Codecov.
|
buildscripts/docker/Dockerfile
Outdated
ARG VERSION | ||
ARG BUILD_DATE | ||
|
||
RUN echo $BUILD_DATE |
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.
Why is this echo required?
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.
Oh! Sorry for that. I was just testing stuff and it got in. Will remove it
@waseem18 -- please help me with following queries:
|
@kmova I just found that, even if you don't specify the ARG's docker builds the image. One thing is that we can provide a default value to each argument in Dockerfile so whenever ARG's are not specified, these default values gets accepted. We need to research a bit if we want the build to fail when the ARG's are not specified! |
Just looking at the labels.. version and build-date are good. Remove vendor altogether. "OpenEBS is an OpenSource Project".. Let us add the following additional labels:
|
Sure! I'll make the required changes I've updated my previous comment @kmova |
Made the label changes @kmova |
buildscripts/docker/Dockerfile
Outdated
LABEL org.label-schema.description="CLI for OpenEBS" | ||
LABEL org.label-schema.url="http://www.openebs.io/" | ||
LABEL org.label-schema.vcs-url="https://github.com/openebs/maya" | ||
org.label-schema.schema-version="1.0" |
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.
LABEL
missing
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.
added @vharsh
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 work @waseem18
Thanks @kmova |
fixes openebs/openebs#446 |
This PR adds labels to docker file. The changes follow the label schema namespace.
Addresses the issue discussed at openebs/openebs#446 (comment):
@vharsh Let me know your review.
How to run :
docker build --build-arg VERSION=0.4 --build-arg BUILD_DATE=2017-08-01T23:20:50.52Z .