Development environment setup
Learn how to setup a Development Environment for NGINX Agent.
While most Linux or FreeBSD operating systems can be used to contribute to the NGINX Agent project, the following steps have been designed for Ubuntu. Ubuntu is packaged with most libraries required to build and run NGINX Agent, and is the recommended platform for NGINX Agent development.
Follow the steps in the Installation section to download, install, and run NGINX and NGINX Agent.
Using your preferred method, clone the NGINX Agent repository into your development directory. See Cloning a GitHub Repository for additional help.
Depending on the operating system distribution, it may be necessary to install the following packages in order to build NGINX Agent.
Change to the NGINX Agent source directory:
cd <path_to_development_directory>/agentInstall Make:
sudo apt install makeNGINX Agent is written in Go. You may download Go and follow installation instructions on the same page or run:
sudo apt install golang-goInstall Protoc:
sudo apt install -y protobuf-compilerInstall NGINX Agent tools and dependencies:
Before starting development on NGINX Agent, it is important to download and install the necessary tool and dependencies required by NGINX Agent. You can do this by running the following make command:
make install-tools depsRun the following commands to build and run NGINX Agent:
make build
sudo make run