Skip to content
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

Label docker image and remove link that breaks in some contexts. #1

Merged
merged 2 commits into from Nov 16, 2016
Merged

Label docker image and remove link that breaks in some contexts. #1

merged 2 commits into from Nov 16, 2016

Conversation

ghost
Copy link

@ghost ghost commented Nov 15, 2016

Added a variety of labels to docker image for production of project badges.

Also, links to external files from the README.md don't work when the file ends up in docker hub, so removing.

@brendo
Copy link
Contributor

brendo commented Nov 15, 2016

After reading this issue and peering into Docker's automated build image, maybe we should rename the args to match?

Also, the README should probably be updated to show how to build locally with --build-arg. It looks like we can also specify default values for these environment variables too.

com.temando.vcs-ref=$VCS_REF \
com.temando.vcs-url="https://github.com/temando/docker-doc-platform" \
com.temando.vendor="Temando Pty Ltd" \
com.temando.vcs-type="Git"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could come from SOURCE_TYPE

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better. Fixed.

com.temando.name="docker-doc-platform" \
com.temando.description="Docker image for publishing Temando documentation." \
com.temando.vcs-ref=$VCS_REF \
com.temando.vcs-url="https://github.com/temando/docker-doc-platform" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could come from SOURCE_URL

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better. Fixed.

LABEL com.temando.build-date=$BUILD_DATE \
com.temando.name="docker-doc-platform" \
com.temando.description="Docker image for publishing Temando documentation." \
com.temando.vcs-ref=$VCS_REF \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to SOURCE_COMMIT?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better. Fixed.

@@ -1,3 +1,13 @@
ARG BUILD_DATE
ARG VCS_REF
LABEL com.temando.build-date=$BUILD_DATE \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop build-date?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to drop it. Done.

@brendo brendo merged commit 14f306d into temando:master Nov 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant