New: add Agent UI reverse proxy
- add support for accessing the Agent UI from outside the Agent container by injecting a reverse proxy into the Docker image
- move env variables to
.envfile and add.env.example
The order in which all the bits work is :
-
Dockerfileaugments the base DD Agent image by adding a few files, installingnodejsand redefining the entrypoint -
init.shrunsagent launch-guiafter 10 seconds (to let the agent to initialize), then sleeps 1 more second (to let the next 3 bullet points below happen) - that
agent launch-guicalls the JS script with the auth URL inargv[2] - JS script catches
argv[2]and writes it to/reverse-proxy.info - JS script starts the proxy
-
init.shis back from sleep, reads what the JS process wrote inside/reverse-proxy.infoand then writes it to the container'sstdout - user sees the URL in the container's
stdoutand copy/pastes it to their browser
See README.md for instructions on how to use this.
Edited by Mihai Pirvu