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

17.05 Edge docs #2996

Merged
merged 6 commits into from
Apr 25, 2017
Merged

17.05 Edge docs #2996

merged 6 commits into from
Apr 25, 2017

Conversation

mdlinville
Copy link

@mdlinville mdlinville commented Apr 21, 2017

Proposed changes

Include Edge content for 17.05 release

Unreleased project version (optional)

Docker CE 17.05

Fixes #2755
Fixes #2999

@mdlinville mdlinville self-assigned this Apr 21, 2017
@mdlinville
Copy link
Author

@alexellis PTAL

read and maintain.

> **Acknowledgment**:
> Special thanks to Alex Ellis for granting permission to use his blog post
Copy link
Contributor

Choose a reason for hiding this comment

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

@mstanleyjones can you include a link out for the name?

+> Special thanks to Alex Ellis for granting permission to use his blog post

contained everything needed to build your application), and a slimmed-down one
to use for production, which only contained your application and exactly what
was needed to run it. This has been referred to as the "builder
pattern".Maintaining two Dockerfiles is not ideal.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be a space here between pattern".M ?

+pattern".Maintaining two Dockerfiles is not ideal.

the `alpine:latest` image as its base. The `COPY --from=0` line copies just the
built artifact from the previous stage into this new stage. The Go SDK and any
intermediate artifacts are left behind, and not saved in the final image.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm wondering if we're missing some of the original context by not running the resulting image. Maybe we could include a quick example?

@mdlinville
Copy link
Author

Addressed your feedback, @alexellis

I also noticed in your example you don't clean up the extracted ./app from your local filesystem (which is presumably a Git repo where you wouldn't want to commit an artifact) and you don't prune the intermediate image. Not sure if that matters to you.


echo Building alexellis2/href-counter:latest

docker build --no-cache -t alexellis2/href-counter:latest .
Copy link
Contributor

Choose a reason for hiding this comment

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

@mstanleyjones let's add an rm ./app here so that things are belt and braces. I think I just maintain a .gitignore.

@alexellis
Copy link
Contributor

For pruning - I don't think that's necessary for the intermediate image in the builder pattern, after all I think is also going to turn into a legacy way to build images and wouldn't normally be pushed anywhere.

@mdlinville mdlinville changed the title 17.05 Edge docs - WIP 17.05 Edge docs Apr 25, 2017
@mdlinville mdlinville merged commit 96153fa into docker:vnext-engine Apr 25, 2017
@mdlinville mdlinville deleted the vnext-engine branch April 25, 2017 23:07
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.

3 participants