Rather than importing the script with a <script> tag, use angular's
build system to import the script. This makes our HTML consistent
internally and externally, and is probably the way to go if we want to
use the library in unit tests.
This makes the output easier to use, and there's not a real need for
uglified js in this tool. This also eliminates the hash appended to
the output filenames.
Build a self contained channelz.js from a channelz.proto.
Running buildscripts/channelz_codgen.sh will produce a
web/channelzui/src/assets/channelz.js that reflects the SHA
specified in the scripts.
The script fetches grpc/grpc-web to get the prereq docker image, does
some additional setup, and then runs the code gen script.
- Add dockers for envoy, static assets www server, docker-compose
config generator script. We use `network_mode: host` so that the
loopback addresses within the docker resolve to the host.
- Update build script and angular.json so that copmilation outputs go
directly into the static assets docker directory.
- Update README.md
- remove CORS
- the grpc web host should be window.location.origin, ie the envoy
reverse proxy port