@@ -8,14 +8,14 @@ NGINX_CONF_DIR = internal/mode/static/nginx/conf
8
8
NJS_DIR = internal/mode/static/nginx/modules/src
9
9
NGINX_DOCKER_BUILD_PLUS_ARGS = --secret id=nginx-repo.crt,src=nginx-repo.crt --secret id=nginx-repo.key,src=nginx-repo.key
10
10
BUILD_AGENT =local
11
- TELEMETRY_REPORT_PERIOD = 24h # also configured in goreleaser.yml
12
11
13
- # FIXME(pleshakov) - TELEMETRY_ENDPOINT will have the default value of F5 telemetry service once we're ready
14
- # to report. https://github.com/nginxinc/nginx-gateway-fabric/issues/1563
15
- # Also, we will need to set it in goreleaser.yml
16
- TELEMETRY_ENDPOINT =# if empty, NGF will report telemetry in its logs at debug level.
12
+ # TO-DO: Update the PROD_TELEMETRY_ENDPOINT with the correct prod endpoint.
13
+ PROD_TELEMETRY_ENDPOINT = otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317 # used in production NGF image.
14
+ # the telemetry related variables below are also configured in goreleaser.yml
15
+ TELEMETRY_REPORT_PERIOD = 24h
16
+ TELEMETRY_ENDPOINT =# if empty, NGF will report telemetry in its logs at debug level.
17
+ TELEMETRY_ENDPOINT_INSECURE = false
17
18
18
- TELEMETRY_ENDPOINT_INSECURE = false # also configured in goreleaser.yml
19
19
GW_API_VERSION = 1.0.0
20
20
INSTALL_WEBHOOK = false
21
21
NODE_VERSION = $(shell cat .nvmrc)
@@ -45,20 +45,36 @@ help: Makefile ## Display this help
45
45
@grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | sort | awk ' BEGIN {FS = ":.*?## "; printf "Usage:\n\n make \033[36m<target>\033[0m [VARIABLE=value...]\n\nTargets:\n\n"}; {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}'
46
46
@grep -E ' ^(override )?[a-zA-Z_-]+ \??\+?= .*?## .*$$' $< | sort | awk ' BEGIN {FS = " \\??\\+?= .*?## "; printf "\nVariables:\n\n"}; {gsub(/override /, "", $$1); printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}'
47
47
48
+ .PHONY : build-prod-images
49
+ build-prod-images : build-prod-ngf-image build-prod-nginx-image # # Build the NGF and nginx docker images for production
50
+
51
+ .PHONY : build-prod-images-with-plus
52
+ build-prod-images-with-plus : build-prod-ngf-image build-prod-nginx-plus-image # # Build the NGF and NGINX Plus docker images for production
53
+
48
54
.PHONY : build-images
49
55
build-images : build-ngf-image build-nginx-image # # Build the NGF and nginx docker images
50
56
51
57
.PHONY : build-images-with-plus
52
58
build-images-with-plus : build-ngf-image build-nginx-plus-image # # Build the NGF and NGINX Plus docker images
53
59
60
+ .PHONY : build-prod-ngf-image
61
+ build-prod-ngf-image : TELEMETRY_ENDPOINT=$(PROD_TELEMETRY_ENDPOINT )
62
+ build-prod-ngf-image : build-ngf-image # # Build the NGF docker image for production
63
+
54
64
.PHONY : build-ngf-image
55
65
build-ngf-image : check-for-docker build # # Build the NGF docker image
56
66
docker build --platform linux/$(GOARCH ) --build-arg BUILD_AGENT=$(BUILD_AGENT ) --target $(strip $(TARGET ) ) -f build/Dockerfile -t $(strip $(PREFIX ) ) :$(strip $(TAG ) ) .
57
67
68
+ .PHONY : build-prod-nginx-image
69
+ build-prod-nginx-image : build-nginx-image # # Build the custom nginx image for production
70
+
58
71
.PHONY : build-nginx-image
59
72
build-nginx-image : check-for-docker # # Build the custom nginx image
60
73
docker build --platform linux/$(GOARCH ) $(strip $(NGINX_DOCKER_BUILD_OPTIONS ) ) -f build/Dockerfile.nginx -t $(strip $(NGINX_PREFIX ) ) :$(strip $(TAG ) ) .
61
74
75
+ .PHONY : build-prod-nginx-plus-image
76
+ build-prod-nginx-plus-image : build-nginx-plus-image # # Build the custom nginx plus image for production
77
+
62
78
.PHONY : build-nginx-plus-image
63
79
build-nginx-plus-image : check-for-docker # # Build the custom nginx plus image
64
80
docker build --platform linux/$(GOARCH ) $(strip $(NGINX_DOCKER_BUILD_OPTIONS ) ) $(strip $(NGINX_DOCKER_BUILD_PLUS_ARGS ) ) -f build/Dockerfile.nginxplus -t $(strip $(NGINX_PLUS_PREFIX ) ) :$(strip $(TAG ) ) .
0 commit comments