Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cleanup docs Dockerfile, so it matches best practices.#8717

Merged
SvenDowideit merged 1 commit into
moby:masterfrom
yosifkit:docs-dockerfile
Oct 28, 2014
Merged

Cleanup docs Dockerfile, so it matches best practices.#8717
SvenDowideit merged 1 commit into
moby:masterfrom
yosifkit:docs-dockerfile

Conversation

@yosifkit

Copy link
Copy Markdown
Contributor
  • Cleanup spacing throughout
  • swap && to beginning of lines to improve readability
  • better cache busting for the SvenDowideit/mkdocs repo based on git commit id
  • take advantage of the WORKDIR

Thanks to @tianon for the review so far 😄.

I made this and realized I had included the same changes as @jfrazelle in #8715, but I think this adds a few more tweaks to make it more readable.

@jessfraz

Copy link
Copy Markdown
Contributor

omg yes yours is way better I'm closing mine :)

@erikh

erikh commented Oct 22, 2014

Copy link
Copy Markdown
Contributor

Build failure on drone, but that seems like a problem with the registry.

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM 👍

@yosifkit

Copy link
Copy Markdown
Contributor Author

ping @fredlf @jamtur01 @SvenDowideit @OSTezer for approval and/or discussion :)

@fredlf

fredlf commented Oct 23, 2014

Copy link
Copy Markdown
Contributor

LGTM and thanks for doing it.

@jamtur01

Copy link
Copy Markdown
Contributor

LGTM

Comment thread docs/Dockerfile Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh how i hate magic numbers :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

actually, can you please update this to at least tell the reader what this hash is?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That makes me think maybe we should write, or just mark up, a real-world Dockerfile with lots of comments. I know it helps me to be led through an actual example.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@SvenDowideit, How about this just before the RUN and after the current comment:

# commit hash is the newest commit of SvenDowideit/mkdocs on
# docker-markdown-merge branch, it is used to break docker cache
# see: https://github.com/SvenDowideit/mkdocs/tree/docker-markdown-merge

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be, "commit hash of the newest commit from SvenDowideit/mkdocs..."?

@SvenDowideit

Copy link
Copy Markdown
Contributor

@yosifkit thats enought for me - otherwise its a totally secret trip point - this way, it'll trip up everyone, but at least you can point to the docs. (ie, i don't catually think its a good idea to obfuscate, but it works).

Docker-DCO-1.1-Signed-off-by: Joseph Ferguson <[email protected]> (github: yosifkit)
@yosifkit

Copy link
Copy Markdown
Contributor Author

@SvenDowideit, updated with comment about commit id.

@SvenDowideit

Copy link
Copy Markdown
Contributor

LGTM, and many thanks :)

@SvenDowideit

Copy link
Copy Markdown
Contributor

@crosbymichael @tiborvass drone seems to have failed some tests - which should be unrelated to this PR - should I ignore drone and merge anyway?

@jessfraz

Copy link
Copy Markdown
Contributor

I would ignore bc the commit is signed off
On Oct 27, 2014 5:53 PM, "Sven Dowideit" [email protected] wrote:

@crosbymichael https://github.com/crosbymichael @tiborvass
https://github.com/tiborvass drone seems to have failed some tests -
which should be unrelated to this PR - should I ignore drone and merge
anyway?


Reply to this email directly or view it on GitHub
#8717 (comment).

SvenDowideit added a commit that referenced this pull request Oct 28, 2014
Cleanup docs Dockerfile, so it matches best practices.
@SvenDowideit SvenDowideit merged commit 321c85d into moby:master Oct 28, 2014
@yosifkit yosifkit deleted the docs-dockerfile branch October 31, 2014 21:45
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.

6 participants