Before you can build the NGINX Kubernetes Gateway, make sure you have the following software installed on your machine:
-
Clone the repo and change into the
nginx-kubernetes-gateway
directory:git clone https://github.com/nginxinc/nginx-kubernetes-gateway.git cd nginx-kubernetes-gateway
-
Build the image:
make PREFIX=myregistry.example.com/nginx-kubernetes-gateway container
Set the
PREFIX
variable to the name of the registry you'd like to push the image to. By default, the image will be namednginx-kubernetes-gateway:edge
. -
Push the image to your container registry:
docker push myregistry.example.com/nginx-kubernetes-gateway:edge
Make sure to substitute
myregistry.example.com/nginx-kubernetes-gateway
with your registry.