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 38
38
39
39
container : test nginx-ingress certificate-and-key
40
40
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 ) .
42
42
43
43
push : container
44
44
ifeq ($(PUSH_TO_GCR ) ,1)
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ FROM debian:stretch-slim
3
3
LABEL maintainer="NGINX Docker Maintainers <
[email protected] >"
4
4
5
5
ENV NGINX_PLUS_VERSION 17-1~stretch
6
+ ARG IC_VERSION
6
7
7
8
# Download certificate and key from the customer portal (https://cs.nginx.com)
8
9
# and copy to the build context
@@ -33,6 +34,7 @@ RUN set -x \
33
34
&& echo "Acquire::https::plus-pkgs.nginx.com::Verify-Host \"true\";" >> /etc/apt/apt.conf.d/90nginx \
34
35
&& echo "Acquire::https::plus-pkgs.nginx.com::SslCert \"/etc/ssl/nginx/nginx-repo.crt\";" >> /etc/apt/apt.conf.d/90nginx \
35
36
&& 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 \
36
38
&& printf "deb https://plus-pkgs.nginx.com/debian stretch nginx-plus\n" > /etc/apt/sources.list.d/nginx-plus.list \
37
39
&& apt-get update && apt-get install -y nginx-plus=${NGINX_PLUS_VERSION} \
38
40
&& apt-get remove --purge --auto-remove -y gnupg1 \
You can’t perform that action at this time.
0 commit comments