-
Notifications
You must be signed in to change notification settings - Fork 51
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
Provide automatic build arguments for Microbadger #61
Comments
As far as I understand the build-args needs to exist inside the Dockerfile to be compiled inside the image (and then those args are going to be available inside the containers) I haven't investigated yet, so correct me if I'm wrong:
As an alternative, I'd like to propose to use
|
You are right, build-args not consumed will fail the build. I have tested that with captain. Docker build supports adding labels and that looks like a nice feature to use here. But instead of reinventing a set of labels specific to captain, why not use those defined by http://label-schema.org/ ? It's a first start at defining a standard to tag useful information on Docker images. I would propose a specific extension to captain.yml here:
|
Microbadger uses some build-time arguments to document a Docker image.
Those are BUILD_DATE and VCS_REF. As they are defined from the environment, it's currently not possible to include them in the build args. Could those values be defined by default in captain?
See https://microbadger.com/#/labels for reference.
Thanks.
The text was updated successfully, but these errors were encountered: