Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.49 KB

building-the-images.md

File metadata and controls

51 lines (35 loc) · 1.49 KB

Building the Images

Prerequisites

Before you can build the NGINX Gateway Fabric and NGINX images, make sure you have the following software installed on your machine:

Steps

  1. Clone the repo and change into the nginx-gateway-fabric directory:

    git clone https://github.com/nginxinc/nginx-gateway-fabric.git
    cd nginx-gateway-fabric
  2. Build the images:

    • To build both the NGINX Gateway Fabric and NGINX images:

      make PREFIX=myregistry.example.com/nginx-gateway-fabric build-images
    • To build just the NGINX Gateway Fabric image:

      make PREFIX=myregistry.example.com/nginx-gateway-fabric build-ngf-image
    • To build just the NGINX image:

      make PREFIX=myregistry.example.com/nginx-gateway-fabric build-nginx-image

    Set the PREFIX variable to the name of the registry you'd like to push the image to. By default, the images will be named nginx-gateway-fabric:edge and nginx-gateway-fabric/nginx:edge.

  3. Push the images to your container registry:

    docker push myregistry.example.com/nginx-gateway-fabric:edge
    docker push myregistry.example.com/nginx-gateway-fabric/nginx:edge

    Make sure to substitute myregistry.example.com/nginx-gateway-fabric with your registry.