Please enable JavaScript to view the page


Building Nighthawk | Nighthawk Nighthawk

Building Nighthawk (Beginner Guide)

This guide helps new contributors build Nighthawk locally. No prior experience with Envoy or Bazel is required.


Prerequisites

Required Tools


    sudo pacman -S --needed git base-devel curl python jdk11-openjdk bazel
  

Clone Nighthawk


    git clone https://github.com/envoyproxy/nighthawk.git
    cd nighthawk
  

Build Nighthawk


    bazel build //:nighthawk
  

The first build may take 15–30 minutes as dependencies are downloaded.

Verify the Build


    ./bazel-bin/nighthawk --help
  

If the help menu appears, the build was successful.


Common Issues

Bazel build fails due to memory

Bazel is memory-intensive. Close other applications or use a machine with at least 16 GB RAM.

Java version errors

Ensure Java 11 is installed:


    java -version
  

Install OpenJDK 11 if missing.


Next Steps