Skip to content

refactor sandboxes -> getting started - #469

Merged
mattklein123 merged 4 commits into
envoyproxy:masterfrom
richarddli:get-started
Feb 9, 2018
Merged

mattklein123 merged 4 commits into
envoyproxy:masterfrom
richarddli:get-started

Conversation

@richarddli

Copy link
Copy Markdown
Member

The sandboxes section is somewhat overloaded with both sandboxes & a HOWTO on how to build a custom Envoy docker image. This PR reorganizes the Sandboxes section to a Getting Started section. This also sets the stage for adding other types of quickstart docs.

Signed-off-by: Richard Li [email protected]

@htuch htuch 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.

LGTM

Comment thread docs/root/install/getting_started.rst Outdated
Sandboxes
---------

We've created a number of sandboxes using Docker Compose that set up different environments to test out Envoy's features and show samples configurations. As we gauge people's interests we will add more sandboxes demonstrating

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.

Nit: s/samples configurations/sample configurations/
Nit: s/people's/peoples'/

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.

nit: please also try to wrap around 100 cols for docs

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.

Fixed the typos. Will switch back to Emacs for working on the Envoy docs just for Matt ;->.

@@ -0,0 +1,30 @@
.. _install_getting_started:

Getting Started

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.

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.

+1. We should move that to here from that buried location and highlight it. The smoke test config is very simple to understand and a great way to get started.

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.

No problem. Not sure if you guys saw what I wrote at https://www.envoyproxy.io/download when I did the website, but I can copy the docs I wrote into here. (At least, when I came across the smoketest, I had to spend awhile figuring out how to get the Envoy binary to actually run the config.)

@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 working on this! Couple of comments.

Comment thread docs/root/install/getting_started.rst Outdated
Sandboxes
---------

We've created a number of sandboxes using Docker Compose that set up different environments to test out Envoy's features and show samples configurations. As we gauge people's interests we will add more sandboxes demonstrating

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.

nit: please also try to wrap around 100 cols for docs

building
ref_configs
sandboxes/sandboxes.rst
getting_started

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.

I think my preference would be to move getting started before ref_configs. I think it flows better. Thoughts?

@@ -0,0 +1,30 @@
.. _install_getting_started:

Getting Started

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.

+1. We should move that to here from that buried location and highlight it. The smoke test config is very simple to understand and a great way to get started.

@richarddli

Copy link
Copy Markdown
Member Author

OK, I've made the suggested changes. The only open item are the instructions with the smoke test, where I went with a Docker-based approach. (Not sure what was intended with the original docs.) The Docker stuff works well for me, but I need to change the listener config to point to 0.0.0.0 on my mac in order for it to work.

@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.

This is awesome! Few more comments.

Comment thread docs/root/install/getting_started.rst Outdated
---------------------

A very minimal Envoy configuration that can be used to validate basic plain HTTP
proxying is available in :repo:`configs/google_com_proxy.json`. This is not

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.

Can we reference the new v2 YAML config?

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.

Yes, I can do that. There are two changes that I need to make to the default YAML to get it work for me -- I need to set dns_lookup_family to do V4_ONLY and change the listener to 0.0.0.0. If these changes are OK to put into the default smoketest, I'm happy to create a PR for this.

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.

SGTM. the V4_ONLY is already there but commented out. Let's just make it the default for smoke test purposes (maybe with a comment there that talks about how to test v6 if desired).

Comment thread docs/root/install/getting_started.rst Outdated
proxying is available in :repo:`configs/google_com_proxy.json`. This is not
intended to represent a realistic Envoy deployment.

Create a ``Dockerfile`` that uses the latest Envoy images:

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.

Should we just commit this in the main envoy repo so its ready to go?

Comment thread docs/root/install/getting_started.rst Outdated

Make sure ``configs/google_com_proxy.json`` is in the same directory as your
``Dockerfile``. Note that you may need to modify the listener to point to
0.0.0.0 instead of 127.0.0.1. Then, build and run the Dockerfile:

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.

Maybe just change the config to bind to 0.0.0.0 by default?

@richarddli

Copy link
Copy Markdown
Member Author

Here's my proposed plan:

  1. I can open a PR to add a default Dockerfile & make the changes to the v2 YAML, assuming everyone is OK with the changes.
  2. We can then update this PR to point to the files once the first PR is merged.

@mattklein123

Copy link
Copy Markdown
Member

@richarddli +1 thank you!

htuch pushed a commit to envoyproxy/envoy that referenced this pull request Feb 7, 2018
simplify default config so someone can try envoy quickly
add default Dockerfile for a quickstart

Risk Level: Low 
Testing: Manual testing
Docs Changes: Precursor to envoyproxy/data-plane-api#469

Signed-off-by: Richard Li <[email protected]>
@richarddli

Copy link
Copy Markdown
Member Author

OK, the changes that reference the updated smoketest settings are now in. This PR should be ready for merge, pending a final review.

mattklein123
mattklein123 previously approved these changes Feb 7, 2018

@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.

Nice, this is awesome. Will defer to @htuch for further review/merge.

@mattklein123

Copy link
Copy Markdown
Member

@richarddli I think maybe a merge got messed up. Can you take a look? I think this was otherwise ready to go.

htuch
htuch previously requested changes Feb 9, 2018

@htuch htuch 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.

Comment thread docs/root/install/getting_started.rst Outdated

The Dockerfile will build a container containing the latest version of Envoy,
and copy a basic Envoy configuration into the container. This basic
configuration tells Envoy to route incoming requests to Google.com.

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.

Nit: s/Google.com/*google.com*/

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.

OK, this is fixed.

Signed-off-by: Richard Li <[email protected]>
@mattklein123

Copy link
Copy Markdown
Member

@richarddli I think you are picking up other changes now?

Richard Li added 2 commits February 9, 2018 14:12
Signed-off-by: Richard Li <[email protected]>
Signed-off-by: Richard Li <[email protected]>
@richarddli

Copy link
Copy Markdown
Member Author

OK, sorry for all the Git madness. I've fixed this, and made @htuch requested changes as well. Because I had to squash to get the DCO to work, GitHub still thinks the changes requested is valid.

@mattklein123

Copy link
Copy Markdown
Member

@richarddli your diff still includes changes that shouldn't be in the diff. Can you merge upstream master?

@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.

Sweet, thanks!

@mattklein123
mattklein123 dismissed htuch’s stale review February 9, 2018 21:45

comments fixed

@mattklein123
mattklein123 merged commit dedd9ec into envoyproxy:master Feb 9, 2018
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