Skip to content

Commit

Permalink
VZ-11614: Build ingress-controller v1.3.1 using Go 1.20.12 (#20)
Browse files Browse the repository at this point in the history
* Build using Go 1.20.12
  • Loading branch information
bhatpmk authored Jan 10, 2024
1 parent 9e99d0c commit 0df4948
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CONTROLLER_IMAGE=${DOCKER_REPO}/${DOCKER_NAMESPACE}/${CONTROLLER_IMAGE_NAME}
WEBHOOK_CERTGEN_IMAGE=${DOCKER_REPO}/${DOCKER_NAMESPACE}/${WEBHOOK_CERTGEN_IMAGE_NAME}

# Define custom Golang image
GO_CONTAINER_IMAGE=${GOLANG_IMAGE_NAME:-ghcr.io/verrazzano/golang:v1.20.10}
GO_CONTAINER_IMAGE=${GOLANG_IMAGE_NAME:-ghcr.io/verrazzano/golang:v1.20.12}

# Use the latest runner image from controller-v1.9.4, as a workaround to build cmd/dbg, cmd/waitshutdown and cmd/waitshutdown with Go 1.21.3
RUNNER_IMAGE=registry.k8s.io/ingress-nginx/e2e-test-runner:v20231011-8b53cabe0@sha256:ed0dad805c635e66469b4ac376010eebdd0b3fe62d753f58db1632d6f12f451d
Expand Down
6 changes: 4 additions & 2 deletions images/nginx/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ ENV LUA_CPATH="/usr/local/lib/lua/?/?.so;/usr/local/lib/lua/?.so;;"

COPY oracle-epel-ol8.repo /etc/yum.repos.d/
COPY addgroup /usr/sbin/
COPY adduser /usr/sbin/
COPY dumb-init /usr/bin/

# Copy adduser to avoid conflict with /usr/sbin/adduser being a symlink to /usr/sbin/useradd
COPY adduser /tmp/

COPY --from=builder /usr/local /usr/local
COPY --from=builder /opt /opt
COPY --from=builder /etc/nginx /etc/nginx
Expand All @@ -56,7 +58,7 @@ RUN microdnf update -y && \
&& ln -s /usr/local/nginx/sbin/nginx /sbin/nginx \
&& ln -s /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2 \
&& addgroup -Sg 101 www-data \
&& adduser -S -D -H -u 101 -h /usr/local/nginx \
&& /tmp/adduser -S -D -H -u 101 -h /usr/local/nginx \
-s /sbin/nologin -G www-data -g www-data www-data \
&& bash -eu -c ' \
writeDirs=( \
Expand Down

0 comments on commit 0df4948

Please sign in to comment.