Skip to content

docs: Cleanup (and fix) docker installation instructions - #16380

Closed
phlax wants to merge 3 commits into
envoyproxy:mainfrom
phlax:docs-fix-docker-install
Closed

phlax wants to merge 3 commits into
envoyproxy:mainfrom
phlax:docs-fix-docker-install

Conversation

@phlax

@phlax phlax commented May 7, 2021 •

Copy link
Copy Markdown
Member

Signed-off-by: Ryan Northey [email protected]

Commit Message: docs: Cleanup (and fix) docker installation instructions
Additional Description:

Currently the install page shows docker images that dont exist. This PR will fix that

It will also fix #15730 - ie make clear in all docs how to run latest stable and current dev

In addition it shifts the windows docker install instructions into the docker section and out of the host install sections (and thus bringing parity)

Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

@phlax phlax changed the title docs: Cleanup (and fix) docker installation instructions [WIP] docs: Cleanup (and fix) docker installation instructions May 7, 2021
@phlax
phlax marked this pull request as draft May 7, 2021 10:54
@phlax

phlax commented May 7, 2021

Copy link
Copy Markdown
Member Author

@phlax
phlax force-pushed the docs-fix-docker-install branch 5 times, most recently from 87f7d4d to fc1a597 Compare May 7, 2021 15:44
@phlax
phlax force-pushed the docs-fix-docker-install branch from 6a410ff to e22e6d8 Compare May 7, 2021 17:12
@phlax phlax changed the title [WIP] docs: Cleanup (and fix) docker installation instructions docs: Cleanup (and fix) docker installation instructions May 7, 2021
@phlax
phlax marked this pull request as ready for review May 7, 2021 17:16
@phlax
phlax requested review from davinci26 and mattklein123 May 7, 2021 17:16
@phlax

phlax commented May 7, 2021

Copy link
Copy Markdown
Member Author

cc @mattklein123 @davinci26

@davinci26 davinci26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the cleanup. LGTM minus one small comment


You can run Envoy on a Windows host using the official Windows Docker image.

.. warning::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the value of this warning? Windows is going GA, next week and the code is already complete. I would remove it

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

2 things:

  • afaict these images are experimental - and should be treated as such
  • in an open source project documenting and/or distributing binary blobs should come with a warning

this is "bringing parity" - i would add similar warnings to any other code/images etc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

afaict these images are experimental - and should be treated as such

Why do you think they are experimental? I think this is a conflicting message. We are announcing that Envoy on Windows is GA and it can be used in a production environment. It is confusing and contradicting to have an experimental warning.

in an open source project documenting and/or distributing binary blobs should come with a warning

If this is the case shouldn't all images have this warning then?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why do you think they are experimental?

at least afaict they have reduced functionality and are less performant - if these images are genuinely production-ready we can remove this bit - but im already seeing "it doesnt work" tickets, so my concern is both to be explicit about the fact that they are not widely tested and to add a "caveat usor"

If this is the case shouldn't all images have this warning then?

the other images are open source - they dont need it - there is no code in them for which the source is not available - and the recipes are published

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

... and the user can compile the entire stack for themselves should they wish

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The Windows Server Core base image usually comes pre-cached on a lot of cloud provided images etc., so its size is an issue but the impact can be minimized. Definitely already being used in production in other products (cloudfoundry, etc.). It should consist of 2 layers, the base that is tied to the host version, and another layer with Windows updates that gets updated periodically. B/c of the host/container image compatibility requirements now, the large base layer won't change (much/ ever) I believe in the lifecycle of a Windows version.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also the base container image for Windows is not being distributed by Envoy/DockerHub per-se, the Windows proprietary/licensed layers do not get hosted on DockerHub, they are foreign layers that still come from Microsoft when you pull the image (the image manifest should show this) that have their own license deal. I think the Envoy project is only on the hook for the layers that we build on top of the Windows base.

@davinci26 davinci26 May 14, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Worth adding some notes about size and plans to improve on that?

The plans are related to reducing the size of the base image. I do not think that Envoy docs is the best channels to communicate such changes/plans though.

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.

You've made your feelings known, @phlax but it's time for @envoyproxy/senior-maintainers to decide which political statements are appropriate for the project. You've made three key assertions in this doc;

  1. envoy windows docker image published by cncf contains non-oss software. It does not, as the docker image we publish contains envoy-static.exe; it references a docker OS image published by microsoft with clear licensing terms allowing that container image to be used on any licensed windows OS host (and running that image on a non windows OS host isn't possible.) This is no different than being bound by the GPL (our license is AL 2.0) in the case of linux images, or being bound to Apple's terms using macOS. The statement reflects a personal anti-nonfree software posture, which is entirely fine for us individually, but not perhaps what this project is trying to convey, especially in electing AL 2.0 vs GPL.

  2. You claim the image is very large. There's no argument with that. Anyone who deploys docker images to Windows is aware of this fact. The statement is redundant and conveys no useful information other than to express frustration.

  3. You claim this is experimental. senior-maintainers determined it is not. https://blog.envoyproxy.io/general-availability-of-envoy-on-windows-267e4544994a

Please correct these issues, my other feedback was cosmetic and future-looking and can be reinstated when there are options from getenvoy.io and/or azure.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's discuss in our meeting tomorrow morning, but in general my view is:

  1. Remove the experimental warning. We deemed it GA and users understand when it was GA, can open bugs, etc.
  2. Remove the not open source warning (Envoy itself is Apache 2, and any base image is owned by Microsoft, and anyone using Windows understands what they are dealing with). If there are legal concerns here we can run them by the CNCF.
  3. Optionally add a warning about size and link to the tracking issue, though I tend to agree with @wrowe that anyone that downloads the image knows it's big. There may be value though in telling people the tracking issue.

phlax added 2 commits May 7, 2021 18:26
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey <[email protected]>

@wrowe wrowe left a comment

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.

This is looking good, especially the build cleanups and docs simplification. Just a few semantic problems to fix that were already discussed at length, my requested changes below...

~~~~~~~~~~~~~~~~~~~~~~~~

You can run Envoy using the official Windows Docker image.

@wrowe wrowe May 17, 2021 •

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.

Based on the structure of this doc, I wouldn't eliminate the block above. In fact, it should be repeated above in the Install Envoy on Ubuntu Linux section as a similar footnote - without going into the details. I completely agree that "see below" is the appropriate end of both statements and the lines below should be axed from this block.

We are aware both Microsoft and Tetrate intend to distribute a much more lightweight package of Envoy for Windows consumption, so this section will grows / must be re-added eventually. (@davinci26 and @lizan can probably speak to this.)

@wrowe wrowe May 17, 2021 •

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, I'd rephrase this, as we have thin Docker images applicable to any linux. It's not necessary to place that footnote in every linux instruction, perhaps something topline they would read before scrolling to their target linux flavor. Once they've read their target instructions, it seems likely they could miss the later section for installing with docker. How about just adding a "See the Install Envoy using Docker section below." to the first sentence of the doc?

.. warning::

This image is currently experimental and includes binaries that are not open source

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.

The first statement is wrong, the port is code complete, and this has been discussed by the maintainers, at the community meeting. Please fix.

The second statement is confusing at best; neither the Windows image nor the OS-free glibc image are exactly satisfied by our Apache License 2.0. A valuable statement here with respect to each docker installation would be a footnote (not "warning") that Windows includes the respective base operating systems (Windows LTSC2019 - long term server core of Server 2019, or alpine-3.12_glibc-2.31, or google vrp context) under their respective licensing. This link offers the necessary licensing context for the MS Windows docker base image.

Please don't use envoy docs for personal evangelism. Both Windows and Linux docker users locally and users of public clouds are generally aware of what their docker or host licensing prerequisites entail.

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.

Reminder that we agreed to drop the statement above in line 177.

@phlax

phlax commented May 17, 2021

Copy link
Copy Markdown
Member Author

reading the comments above im hearing a lot of appeals for special casing (and some borderline insults)

the facts as i understand:

  • this image is not open source - unlike everything else distributed within CNCF and envoy namespace
  • the image is huge - everywhere else that a huge (ie > 1GB) image is documented it comes with a warning
  • the image is not well-tested - it had ~170 downloads last time i checked, comapred to >100 million for the envoy linux image

i understand the desire for parity - but that means playing by the same rules as everyone else

my own opinion is that this image should not be distributed within the CNCF namespace as it is misleading to end users (not to mention the increased maintenance burden that cant be checked/supported if you dont use closed-source code)

regardless, i have done my best to accommodate - which (i hope) @davinci26 will attest

currently the windows docker install section is placed amongst the host installs - it needs to move to the docker section

this pr also provides a bunch of ~unrelated cleanups regarding the publishing of docker images

whatever my own opinion - im trying to bring actual parity to the documentation, and that means giving users fair warning when they are being encouraged to download binaries which are closed, huge or relatively untested

@davinci26 davinci26 mentioned this pull request May 17, 2021

You can run Envoy on a Windows host using the official Windows Docker image.

.. warning::

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.

You've made your feelings known, @phlax but it's time for @envoyproxy/senior-maintainers to decide which political statements are appropriate for the project. You've made three key assertions in this doc;

  1. envoy windows docker image published by cncf contains non-oss software. It does not, as the docker image we publish contains envoy-static.exe; it references a docker OS image published by microsoft with clear licensing terms allowing that container image to be used on any licensed windows OS host (and running that image on a non windows OS host isn't possible.) This is no different than being bound by the GPL (our license is AL 2.0) in the case of linux images, or being bound to Apple's terms using macOS. The statement reflects a personal anti-nonfree software posture, which is entirely fine for us individually, but not perhaps what this project is trying to convey, especially in electing AL 2.0 vs GPL.

  2. You claim the image is very large. There's no argument with that. Anyone who deploys docker images to Windows is aware of this fact. The statement is redundant and conveys no useful information other than to express frustration.

  3. You claim this is experimental. senior-maintainers determined it is not. https://blog.envoyproxy.io/general-availability-of-envoy-on-windows-267e4544994a

Please correct these issues, my other feedback was cosmetic and future-looking and can be reinstated when there are options from getenvoy.io and/or azure.

@wrowe

wrowe commented May 21, 2021

Copy link
Copy Markdown
Contributor

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only

Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @mattklein123

🐱

Caused by: a #16380 (comment) was created by @wrowe.

see: more, trace.

@envoyproxy envoyproxy deleted a comment from repokitteh-read-only Bot May 21, 2021
@wrowe wrowe removed their assignment May 21, 2021

@mattklein123 mattklein123 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the cleanups here. A few questions/comments.

/wait


You can run Envoy on a Windows host using the official Windows Docker image.

.. warning::

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's discuss in our meeting tomorrow morning, but in general my view is:

  1. Remove the experimental warning. We deemed it GA and users understand when it was GA, can open bugs, etc.
  2. Remove the not open source warning (Envoy itself is Apache 2, and any base image is owned by Microsoft, and anyone using Windows understands what they are dealing with). If there are legal concerns here we can run them by the CNCF.
  3. Optionally add a warning about size and link to the tracking issue, though I tend to agree with @wrowe that anyone that downloads the image knows it's big. There may be value though in telling people the tracking issue.

Comment thread docs/build.sh
# We need to set ENVOY_DOCS_VERSION_STRING and ENVOY_DOCS_RELEASE_LEVEL for Sphinx.
# We also validate that the tag and version match at this point if needed.
VERSION_NUMBER=$(cat VERSION)
VERSION=$(cat VERSION)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry can you explain this part more? I'm confused. Shouldn't the docs just be snapped to the versions that are going to be published? I don't think this should be the last version?

.. warning::

This image is currently experimental and includes binaries that are not open source

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.

Reminder that we agreed to drop the statement above in line 177.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot added the stale stalebot believes this issue/PR has not been touched recently label Jul 10, 2021
@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@github-actions github-actions Bot closed this Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale stalebot believes this issue/PR has not been touched recently waiting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show non-dev image installation on getting-started/install page

6 participants