Please enable JavaScript to view the page


Building Nighthawk | Nighthawk Nighthawk
GetNighthawk // for copy button





Getting Started

Building Nighthawk

While GetNighthawk distribution are a convenient way of using Nighthawk, you can also build Nighthawk and run it from source.  

Prerequisite

Installing Bazelisk as Bazel

It is recommended to use Bazelisk installed as bazel, to avoid Bazel compatibility issues.

On Linux, run the following commands:

sudo wget -O /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-$([ $(uname -m) = "aarch64" ] && echo "arm64" || echo "amd64")
sudo chmod +x /usr/local/bin/bazel

 

Clone the Nighthawk repo

Using GitHub CLI:

gh repo clone envoyproxy/nighthawk

Using HTTPS:

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

 

Install Dependencies

On Ubuntu, run the following:

sudo apt-get install \
    autoconf \
    automake \
    cmake \
    curl \
    libtool \
    make \
    ninja-build \
    patch \
    python3-pip \
    unzip \
    virtualenv

Install Golang on your machine. This is required as part of building BoringSSL and also for Buildifer which is used for formatting bazel BUILD files.  

Building Nighthawk

Run:

cd nighthawk
bazel build -c opt //:nighthawk


Recent Discussions with "nighthawk" Tag