File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11# Base image to use at runtime
2- ARG base_image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2024-04-01-1711929684.2
2+ ARG base_image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot
33
44# Golang image to use for compiling the manager
55ARG builder_image=public.ecr.aws/docker/library/golang
66
77# Version of Golang
88ARG golang_version
9+ # Version of eks-distro
10+ ARG eks_distro_version
911
1012# Build the manager binary
1113FROM $builder_image:$golang_version as builder
@@ -49,7 +51,7 @@ RUN GIT_VERSION=$service_controller_git_version && \
4951 -X ${VERSION_PKG}.BuildDate=${BUILD_DATE}" \
5052 -a -o $work_dir/bin/controller $work_dir/cmd/controller/main.go
5153
52- FROM $base_image
54+ FROM $base_image:$eks_distro_version
5355ARG base_image
5456LABEL org.opencontainers.image.base.name=$base_image
5557ARG service_alias
Original file line number Diff line number Diff line change 11# Base image to use at runtime
2- ARG base_image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2023-09-06-1694026927.2
2+ ARG base_image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot
33
44# Golang image to use for compiling the manager
55ARG builder_image=public.ecr.aws/docker/library/golang
66
77# Version of Golang
88ARG golang_version
99
10+ # Version of eks-distro
11+ ARG eks_distro_version
12+
1013# Build the manager binary
1114FROM $builder_image:$golang_version as builder
1215
@@ -68,7 +71,7 @@ RUN GIT_VERSION=$service_controller_git_version && \
6871 -X ${VERSION_PKG}.BuildDate=${BUILD_DATE}" \
6972 -a -o $work_dir/bin/controller $work_dir/cmd/controller/main.go
7073
71- FROM $base_image
74+ FROM $base_image:$eks_distro_version
7275ARG base_image
7376LABEL org.opencontainers.image.base.name=$base_image
7477ARG service_alias
Original file line number Diff line number Diff line change 9191pushd " $ROOT_DIR " 1> /dev/null
9292 # Get the golang version from the code-generator
9393 GOLANG_VERSION=${GOLANG_VERSION:- " $( go list -f {{.GoVersion}} -m) " }
94+ BASE_IMAGE_VERSION=${BASE_IMAGE_VERSION:- " $( echo 2024-08-13-1723575672.2) " }
9495popd 1> /dev/null
9596
9697# if local build
@@ -109,6 +110,7 @@ if ! docker build \
109110 --build-arg service_controller_git_commit=" $SERVICE_CONTROLLER_GIT_COMMIT " \
110111 --build-arg build_date=" $BUILD_DATE " \
111112 --build-arg golang_version=" ${GOLANG_VERSION} " \
113+ --build-arg eks_distro_version=" ${BASE_IMAGE_VERSION} " \
112114 --build-arg go_arch=" $GOARCH " \
113115 --progress plain \
114116 " ${DOCKER_BUILD_CONTEXT} " ; then
You can’t perform that action at this time.
0 commit comments