habitat-sh / habitat

Modern applications with built-in automation
https://www.habitat.sh
Apache License 2.0
2.61k stars 315 forks source link

[dockerize] add Label Schema support in pkg-dockerize and pkg-aci #1224

Open mattray opened 8 years ago

mattray commented 8 years ago

Docker Inc. express a preference that container labels should be namespaced. Label Schema is a community project to provide a shared namespace for use by multiple tools, specifically org.label-schema.

http://label-schema.org/rc1/

Example here: https://medium.com/microscaling-systems/new-for-the-image-conscious-container-label-schema-org-78654a270f07

Metadata

LABEL org.label-schema.vendor="Microscaling Systems" \ org.label-schema.url="https://microscaling.com" \ org.label-schema.name="Microscaling Engine" \ org.label-schema.description="Optimal resource util" \ org.label-schema.version="1.2.3" \ org.label-schema.vcs-url=$VCS_URL \ org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.build-date=$BUILD_DATE \ org.label-schema.docker.schema-version="1.0"

Much of this could be pre-populated from Habitat and then exposed with CLI options.

fnichol commented 8 years ago

Nice, thanks for tracking--I've been meaning to catch up on this initiative.

eeyun commented 7 years ago

This could be a super great feature! Thanks for opening this issue @mattray

fnichol commented 7 years ago

Now that we have an updated codebase of exporting Docker images (via #3213), I'd like to add as much labelling and metadata as we possibly can. Due to time though, this can come in the near future--I want to make sure our Docker exporting is solid before adding more.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

christophermaier commented 4 years ago

Yup, this would be good to add.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.