NGINX Gateway Fabric 이미지, NGINX 이미지 빌드
대부분의 사용자는 NGINX Gateway Fabric을 Helm, 혹은 Kubernetes manifests로 설치하지만, NGINX Gateway Fabric 과 NGINX 이미지 를 직접 빌드하는 것은 테스트 및 개발 목적에 도움이 될 수 있습니다. 이 문서의 단계를 따라 NGINX Gateway Fabric과 NGINX 이미지를 빌드하세요.
목차
1. 사전 요구 사항
2. NGINX Gateway Fabric 이미지 빌드
1. 사전 요구 사항
NGINX Gateway Fabric 및 NGINX 이미지를 빌드하기 전에 다음 소프트웨어가 설치되어있는지 확인하세요.
NGINX Plus 이미지를 빌드할 경우, 유효한 NGINX Plus 라이선스 인증서(nginx-repo.crt)와 키(nginx-repo.key) 파일이 리포지토리 root에 필요합니다.
2. NGINX Gateway Fabric 이미지 빌드
1. 리포지토리를 clone하고 nginx-gateway-fabric 디렉터리로 이동합니다.
$ git clone https://github.com/nginxinc/nginx-gateway-fabric.git --branch v1.5.1
$ cd nginx-gateway-fabric
2. 이미지를 빌드합니다.
- NGINX Gateway Fabric과 NGINX 이미지 빌드:
$ make PREFIX=myregistry.example.com/nginx-gateway-fabric build-prod-images
- NGINX Gateway Fabric과 NGINX Plus 이미지 빌드:
$ make PREFIX=myregistry.example.com/nginx-gateway-fabric build-prod-images-with-plus
- NGINX Gateway Fabric 이미지 빌드:
$ make PREFIX=myregistry.example.com/nginx-gateway-fabric build-prod-ngf-image
- NGINX 이미지 빌드:
$ make PREFIX=myregistry.example.com/nginx-gateway-fabric build-prod-nginx-image
- NGINX Plus 이미지 빌드:
$ make PREFIX=myregistry.example.com/nginx-gateway-fabric/nginx-plus build-prod-nginx-plus-image
PREFIX 값을 이미지를 push할 레지스트리 이름으로 변경하세요. 기본적으로 이미지의 이름은 nginx-gateway-fabric:1.5.1, nginx-gateway-fabric/nginx:1.5.1 혹은 nginx-gateway-fabric/nginx-plus:1.5.1입니다.
3. 이미지를 본인의 컨테이너 레지스트리로 push 합니다.
$ docker push myregistry.example.com/nginx-gateway-fabric:1.5.1
$ docker push myregistry.example.com/nginx-gateway-fabric/nginx:1.5.1
혹은
$ docker push myregistry.example.com/nginx-gateway-fabric:1.5.1
$ docker push myregistry.example.com/nginx-gateway-fabric/nginx-plus:1.5.1
myregistry.example.com/nginx-gateway-fabric을 본인의 레지스트리로 변경하세요.