File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 3838
3939container : test nginx-ingress certificate-and-key
4040 cp $(DOCKERFILEPATH ) /$(DOCKERFILE ) ./Dockerfile
41- docker build $(DOCKER_BUILD_OPTIONS ) -f Dockerfile -t $(PREFIX ) :$(TAG ) .
41+ docker build $(DOCKER_BUILD_OPTIONS ) --build-arg IC_VERSION= $( VERSION ) - $( GIT_COMMIT ) - f Dockerfile -t $(PREFIX ) :$(TAG ) .
4242
4343push : container
4444ifeq ($(PUSH_TO_GCR ) ,1)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM debian:stretch-slim
33LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
44
55ENV NGINX_PLUS_VERSION 17-1~stretch
6+ ARG IC_VERSION
67
78# Download certificate and key from the customer portal (https://cs.nginx.com)
89# and copy to the build context
@@ -33,6 +34,7 @@ RUN set -x \
3334 && echo "Acquire::https::plus-pkgs.nginx.com::Verify-Host \"true\";" >> /etc/apt/apt.conf.d/90nginx \
3435 && echo "Acquire::https::plus-pkgs.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" >> /etc/apt/apt.conf.d/90nginx \
3536 && echo "Acquire::https::plus-pkgs.nginx.com::SslKey \"/etc/ssl/nginx/nginx-repo.key\";" >> /etc/apt/apt.conf.d/90nginx \
37+ && echo "Acquire::https::plus-pkgs.nginx.com::User-Agent \"k8s-ic-$IC_VERSION-apt\";" >> /etc/apt/apt.conf.d/90nginx \
3638 && printf "deb https://plus-pkgs.nginx.com/debian stretch nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \
3739 && apt-get update && apt-get install -y nginx-plus=${NGINX_PLUS_VERSION} \
3840 && apt-get remove --purge --auto-remove -y gnupg1 \
You can’t perform that action at this time.
0 commit comments