integration: Add wetty for console screenshotting and an example (#336) Signed-off-by: Ryan Northey ryan@synca.io
integration: Add wetty for console screenshotting and an example (#336)
Signed-off-by: Ryan Northey ryan@synca.io
The Envoy playground allows you to experiment with proxies, services and networks using Docker.
This is useful for learning or testing Envoy configurations and network architectures.
It is not (at least with current focus) intended to be exposed on the internet or other network.
Exposing the playground to the internet could create an open proxy and allow unknown users to run playground databases and services.
The playground is currently in alpha development. It should mostly work and do no harm, but may have bugs Contributions/issues are welcome.
The playground is currently in alpha development.
It should mostly work and do no harm, but may have bugs
Contributions/issues are welcome.
You will need a recent version of Docker installed and runnable by the user running the playground.
Version 19.0.3 is well tested.
You can run the playground directly with Docker.
The playground container must be run in privileged mode and with access to the Docker socket. It requires these permissions in order to start and stop proxy and service containers, and attach their networks.
The playground container must be run in privileged mode and with access to the Docker socket.
It requires these permissions in order to start and stop proxy and service containers, and attach their networks.
$ docker run -d --rm \ --privileged \ -v /var/run/docker.sock:/var/run/docker.sock \ phlax/envoy-playground:0.3.2
You can stop the playground with.
$ docker stop envoy-playground
💡 This will not stop any services, proxies or networks that you started with the playground.
Start the container and browse to http://localhost:8000
Add Envoy proxies and set their configuration.
https://phlax.github.io/playground/docs/screencasts/create-proxies.webm
Add some services to the playground.
Connect the proxies and services with networks.
Test out connectivity of ports that are exposed to your (localhost) edges.
Remove an Envoy proxy, service or network from the playground.
Clear all of the toys away.
$ git clone git@github.com:envoyproxy/playground $ cd playground
To start the control server (python API and websocket).
$ make dev-control
To start the ui (webpack-dev-server)
$ make dev-ui
In dev mode the playground should be available at http://localhost:5555
You can optionally also start continuous javascript testing.
$ make dev-ui-test
$ make test
This will generate a production image named envoy-playground.
envoy-playground
$ make build
This will run the built production envoy-playground image.
The playground will be available on http://localhost:8000.
$ make run
See the Makefile for further commands, and other usage.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Envoy playground
The Envoy playground allows you to experiment with proxies, services and networks using Docker.
This is useful for learning or testing Envoy configurations and network architectures.
It is not (at least with current focus) intended to be exposed on the internet or other network.
Exposing the playground to the internet could create an open proxy and allow unknown users to run playground databases and services.
Install
Requirements
You will need a recent version of Docker installed and runnable by the user running the playground.
Version 19.0.3 is well tested.
Run with Docker
You can run the playground directly with Docker.
You can stop the playground with.
Usage
Start the container and browse to http://localhost:8000
Create Envoy proxies
Add Envoy proxies and set their configuration.
https://phlax.github.io/playground/docs/screencasts/create-proxies.webm
Create some services
Add some services to the playground.
Create some networks and connect services and proxies
Connect the proxies and services with networks.
Test edge connections
Test out connectivity of ports that are exposed to your (localhost) edges.
Remove proxies, services and networks
Remove an Envoy proxy, service or network from the playground.
Clear the deck
Clear all of the toys away.
Development
Clone the git repo
Start the control and ui servers in dev mode
To start the control server (python API and websocket).
To start the ui (webpack-dev-server)
In dev mode the playground should be available at http://localhost:5555
You can optionally also start continuous javascript testing.
Run tests
Build the playground image
This will generate a production image named
envoy-playground.Run the built image
This will run the built production
envoy-playgroundimage.The playground will be available on http://localhost:8000.
See the Makefile for further commands, and other usage.