-
Notifications
You must be signed in to change notification settings - Fork 118
Add Dockerfile for agent #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile for agent #399
Conversation
Is the intention to then use this container and add a layer with NGINX? |
The docker container runs both NGINX OSS and the agent processes. The docker image is based off the nginx image and the entrypoint.sh script kicks off nginx and nginx-agent processes. |
Adds Dockerfile for the agent and Makefile command to build the agent container (#376)
I had to add a couple workarounds in the Dockerfile that are outlined below and in the comments of the file itself:
.apk
file from their github releases. Ideally, we would install the agent via a pre-built and published package. If/when that is supported, we will update our installation process./proc/<pid>/exe
symlink which the agent requires to determine the path to the nginx binary. While we wait for a more permanent fix, we will work around this by having nginx bind to non-privileged ports. See this write-up for more details: https://dxuuu.xyz/filecaps.htmlIn addition to the Dockerfile, I added a deployment manifest for the agent. This is for testing purposes only, and is not the agent's final manifest.
One final note, CI build/publish steps are out of scope for this PR