From a1189ad16d406cde4d3e2fd0dddb1318a38e16bf Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 9 Oct 2024 20:22:19 +0200 Subject: [PATCH] chore(deps): update docker (#1481) * chore(deps): update docker * Use python:3.11.10-alpine --------- Co-authored-by: Nim Jayawardena --- ai-ml/gke-a100-jax/Dockerfile | 2 +- ai-ml/llm-finetuning-gemma/Dockerfile | 2 +- ai-ml/llm-serving-gemma/gradio/Dockerfile | 2 +- ai-ml/maxdiffusion-tpu/build/server/Dockerfile | 2 +- ai-ml/maxdiffusion-tpu/build/webapp/Dockerfile | 2 +- ai-ml/t5-model-serving/client-app/Dockerfile | 2 +- ai-ml/t5-model-serving/model/Dockerfile | 2 +- batch/aiml-workloads/src/Dockerfile | 2 +- cost-optimization/gke-scheduled-autoscaler/Dockerfile | 2 +- cost-optimization/gke-shift-left-cost/Dockerfile | 4 ++-- .../gke-vpa-recommendations/metrics-exporter/Dockerfile | 2 +- databases/cloud-pubsub/Dockerfile | 2 +- management/gitops-style-delivery/Dockerfile | 2 +- .../custom-metrics-autoscaling/direct-to-sd/Dockerfile | 2 +- .../google-managed-prometheus/Dockerfile | 2 +- observability/distributed-tracing/Dockerfile | 2 +- observability/workload-metrics/Dockerfile | 2 +- quickstarts/guestbook/redis-follower/Dockerfile | 2 +- quickstarts/hello-app-cdn/Dockerfile | 2 +- quickstarts/hello-app-redis/Dockerfile | 2 +- quickstarts/hello-app-tls/Dockerfile | 2 +- quickstarts/hello-app/Dockerfile | 2 +- quickstarts/languages/go/Dockerfile | 2 +- quickstarts/languages/java/Dockerfile | 2 +- quickstarts/languages/php/Dockerfile | 2 +- quickstarts/whereami/Dockerfile | 2 +- security/wi-secrets/Dockerfile | 2 +- workloads/migrate-x86-app-to-multi-arch/Dockerfile | 2 +- workloads/migrate-x86-app-to-multi-arch/Dockerfile_arm | 2 +- 29 files changed, 30 insertions(+), 30 deletions(-) diff --git a/ai-ml/gke-a100-jax/Dockerfile b/ai-ml/gke-a100-jax/Dockerfile index 9f74559360..32c4805337 100644 --- a/ai-ml/gke-a100-jax/Dockerfile +++ b/ai-ml/gke-a100-jax/Dockerfile @@ -1,4 +1,4 @@ -FROM nvcr.io/nvidia/tensorflow:22.11-tf2-py3 +FROM nvcr.io/nvidia/tensorflow:22.12-tf2-py3 # Install the latest jax RUN pip install --upgrade pip diff --git a/ai-ml/llm-finetuning-gemma/Dockerfile b/ai-ml/llm-finetuning-gemma/Dockerfile index 102d8f2ae0..cb88bdce80 100644 --- a/ai-ml/llm-finetuning-gemma/Dockerfile +++ b/ai-ml/llm-finetuning-gemma/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # [START gke_aiml_llm_finetune_gemma_single_node_docker] -FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 +FROM nvidia/cuda:12.6.1-runtime-ubuntu22.04 RUN apt-get update && \ apt-get -y --no-install-recommends install python3-dev gcc python3-pip git && \ diff --git a/ai-ml/llm-serving-gemma/gradio/Dockerfile b/ai-ml/llm-serving-gemma/gradio/Dockerfile index ad4a632f05..fdc870bc1b 100644 --- a/ai-ml/llm-serving-gemma/gradio/Dockerfile +++ b/ai-ml/llm-serving-gemma/gradio/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:3.12.1-alpine3.19 +FROM python:3.12.7-alpine3.19 ADD app/ . RUN pip install -r requirements.txt CMD ["python", "./app.py"] diff --git a/ai-ml/maxdiffusion-tpu/build/server/Dockerfile b/ai-ml/maxdiffusion-tpu/build/server/Dockerfile index 64251e570e..65bc8be48b 100644 --- a/ai-ml/maxdiffusion-tpu/build/server/Dockerfile +++ b/ai-ml/maxdiffusion-tpu/build/server/Dockerfile @@ -1,5 +1,5 @@ -FROM python:3.11-slim +FROM python:3.12-slim WORKDIR /app RUN apt-get -y update RUN apt-get -y install git diff --git a/ai-ml/maxdiffusion-tpu/build/webapp/Dockerfile b/ai-ml/maxdiffusion-tpu/build/webapp/Dockerfile index 5a4f9cdabe..cf7472ab1c 100644 --- a/ai-ml/maxdiffusion-tpu/build/webapp/Dockerfile +++ b/ai-ml/maxdiffusion-tpu/build/webapp/Dockerfile @@ -1,5 +1,5 @@ -FROM python:3.10-slim +FROM python:3.12-slim WORKDIR /app COPY requirements.txt ./ RUN python -m pip install --upgrade pip diff --git a/ai-ml/t5-model-serving/client-app/Dockerfile b/ai-ml/t5-model-serving/client-app/Dockerfile index dd5b502773..e54c9c27fb 100644 --- a/ai-ml/t5-model-serving/client-app/Dockerfile +++ b/ai-ml/t5-model-serving/client-app/Dockerfile @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:3.11.5-alpine +FROM python:3.11.10-alpine ARG PORT=8050 ENV PORT=${PORT} diff --git a/ai-ml/t5-model-serving/model/Dockerfile b/ai-ml/t5-model-serving/model/Dockerfile index 4bc3a35f88..c3d4021fce 100644 --- a/ai-ml/t5-model-serving/model/Dockerfile +++ b/ai-ml/t5-model-serving/model/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -ARG BASE_IMAGE=pytorch/torchserve:0.7.1-cpu +ARG BASE_IMAGE=pytorch/torchserve:0.12.0-cpu FROM alpine/git diff --git a/batch/aiml-workloads/src/Dockerfile b/batch/aiml-workloads/src/Dockerfile index 02eae2e14c..083219f4be 100644 --- a/batch/aiml-workloads/src/Dockerfile +++ b/batch/aiml-workloads/src/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # [START gke_batch_aiml_workload_dockerfile] -FROM python:3.10-slim +FROM python:3.12-slim COPY ./requirements.txt /requirements.txt RUN pip install -r requirements.txt diff --git a/cost-optimization/gke-scheduled-autoscaler/Dockerfile b/cost-optimization/gke-scheduled-autoscaler/Dockerfile index 98f2ab65e9..f98b9239d8 100644 --- a/cost-optimization/gke-scheduled-autoscaler/Dockerfile +++ b/cost-optimization/gke-scheduled-autoscaler/Dockerfile @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /go/src/custom-metric-exporter COPY * ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /export . diff --git a/cost-optimization/gke-shift-left-cost/Dockerfile b/cost-optimization/gke-shift-left-cost/Dockerfile index 1da6c9043c..2a7d4c1fbb 100644 --- a/cost-optimization/gke-shift-left-cost/Dockerfile +++ b/cost-optimization/gke-shift-left-cost/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.15.1-alpine3.12 AS builder +FROM golang:1.16.5-alpine3.12 AS builder WORKDIR /app # Install dependencies in go.mod and go.sum COPY go.mod go.sum ./ @@ -23,7 +23,7 @@ COPY . ./ RUN go build -mod=readonly -v -o /k8s-cost-estimator -FROM alpine:3.12 +FROM alpine:3.20 WORKDIR /app # Install utilities needed durin ci/cd process RUN apk update && apk upgrade && \ diff --git a/cost-optimization/gke-vpa-recommendations/metrics-exporter/Dockerfile b/cost-optimization/gke-vpa-recommendations/metrics-exporter/Dockerfile index 40f9db523a..a2ad9e6a35 100644 --- a/cost-optimization/gke-vpa-recommendations/metrics-exporter/Dockerfile +++ b/cost-optimization/gke-vpa-recommendations/metrics-exporter/Dockerfile @@ -1,5 +1,5 @@ -FROM python:3.9 +FROM python:3.12 WORKDIR /app COPY requirements.txt requirements.txt RUN pip install -r requirements.txt diff --git a/databases/cloud-pubsub/Dockerfile b/databases/cloud-pubsub/Dockerfile index 6da381798a..1a373fa592 100644 --- a/databases/cloud-pubsub/Dockerfile +++ b/databases/cloud-pubsub/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-slim +FROM python:3.12-slim COPY . . RUN pip install -r requirements.txt ENTRYPOINT ["python", "-u", "main.py"] diff --git a/management/gitops-style-delivery/Dockerfile b/management/gitops-style-delivery/Dockerfile index 1de60f1219..86fd152d74 100644 --- a/management/gitops-style-delivery/Dockerfile +++ b/management/gitops-style-delivery/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # [START gke_management_gitops_delivery_dockerfile] -FROM python:3.7-slim +FROM python:3.12-slim RUN pip install flask WORKDIR /app COPY app.py /app/app.py diff --git a/observability/custom-metrics-autoscaling/direct-to-sd/Dockerfile b/observability/custom-metrics-autoscaling/direct-to-sd/Dockerfile index cb86c633c2..d2d6c091de 100644 --- a/observability/custom-metrics-autoscaling/direct-to-sd/Dockerfile +++ b/observability/custom-metrics-autoscaling/direct-to-sd/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app COPY * ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /sd-dummy-exporter diff --git a/observability/custom-metrics-autoscaling/google-managed-prometheus/Dockerfile b/observability/custom-metrics-autoscaling/google-managed-prometheus/Dockerfile index aeb1a2eea4..a9531d0e77 100644 --- a/observability/custom-metrics-autoscaling/google-managed-prometheus/Dockerfile +++ b/observability/custom-metrics-autoscaling/google-managed-prometheus/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app COPY * ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /prometheus-dummy-exporter diff --git a/observability/distributed-tracing/Dockerfile b/observability/distributed-tracing/Dockerfile index 0a5fc8de79..f31f795d88 100644 --- a/observability/distributed-tracing/Dockerfile +++ b/observability/distributed-tracing/Dockerfile @@ -9,7 +9,7 @@ #See the License for the specific language governing permissions and #limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /crud COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o /http-app diff --git a/observability/workload-metrics/Dockerfile b/observability/workload-metrics/Dockerfile index e014c8be63..2f30ea6c92 100644 --- a/observability/workload-metrics/Dockerfile +++ b/observability/workload-metrics/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app COPY * ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /workload-metrics diff --git a/quickstarts/guestbook/redis-follower/Dockerfile b/quickstarts/guestbook/redis-follower/Dockerfile index 528433c951..3e72d5556c 100644 --- a/quickstarts/guestbook/redis-follower/Dockerfile +++ b/quickstarts/guestbook/redis-follower/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM redis:6.0.5 +FROM redis:6.2.14 ADD run.sh /run.sh diff --git a/quickstarts/hello-app-cdn/Dockerfile b/quickstarts/hello-app-cdn/Dockerfile index 99d6f75831..fa9cc69c63 100644 --- a/quickstarts/hello-app-cdn/Dockerfile +++ b/quickstarts/hello-app-cdn/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app RUN go mod init hello-app-cdn COPY *.go ./ diff --git a/quickstarts/hello-app-redis/Dockerfile b/quickstarts/hello-app-redis/Dockerfile index 3efdf47c55..8656ea5156 100644 --- a/quickstarts/hello-app-redis/Dockerfile +++ b/quickstarts/hello-app-redis/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app RUN go mod init hello-app-redis COPY * ./ diff --git a/quickstarts/hello-app-tls/Dockerfile b/quickstarts/hello-app-tls/Dockerfile index ee77665a49..18c1b94c98 100644 --- a/quickstarts/hello-app-tls/Dockerfile +++ b/quickstarts/hello-app-tls/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app RUN go mod init hello-app-tls COPY *.go ./ diff --git a/quickstarts/hello-app/Dockerfile b/quickstarts/hello-app/Dockerfile index ea1f22b21e..49695e6668 100644 --- a/quickstarts/hello-app/Dockerfile +++ b/quickstarts/hello-app/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. # [START gke_quickstarts_hello_app_dockerfile] -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app RUN go mod init hello-app COPY *.go ./ diff --git a/quickstarts/languages/go/Dockerfile b/quickstarts/languages/go/Dockerfile index 43f25b9a1d..12ac1c9da2 100644 --- a/quickstarts/languages/go/Dockerfile +++ b/quickstarts/languages/go/Dockerfile @@ -16,7 +16,7 @@ # Use the offical Go image to create a build artifact. # This is based on Debian and sets the GOPATH to /go. # https://hub.docker.com/_/golang -FROM golang:1.22.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app # Initialize a new Go module. diff --git a/quickstarts/languages/java/Dockerfile b/quickstarts/languages/java/Dockerfile index c8017b4463..b749d9cd8e 100644 --- a/quickstarts/languages/java/Dockerfile +++ b/quickstarts/languages/java/Dockerfile @@ -15,7 +15,7 @@ # [START gke_quickstarts_languages_java_dockerfile] # Use the official maven/Java 8 image to create a build artifact. # https://hub.docker.com/_/maven -FROM maven:3.5-jdk-8-alpine as builder +FROM maven:3.6-jdk-8-alpine as builder # Copy local code to the container image. WORKDIR /app diff --git a/quickstarts/languages/php/Dockerfile b/quickstarts/languages/php/Dockerfile index 339565347e..13ec95cdb5 100644 --- a/quickstarts/languages/php/Dockerfile +++ b/quickstarts/languages/php/Dockerfile @@ -15,7 +15,7 @@ # [START gke_quickstarts_languages_php_dockerfile] # Use the official PHP 7.4 image. # https://hub.docker.com/_/php -FROM php:8.2-apache +FROM php:8.3-apache # Copy local code to the container image. COPY index.php /var/www/html/ diff --git a/quickstarts/whereami/Dockerfile b/quickstarts/whereami/Dockerfile index 6003baa43c..f275c63526 100644 --- a/quickstarts/whereami/Dockerfile +++ b/quickstarts/whereami/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12.1-slim +FROM python:3.12.7-slim #MAINTAINER Alex Mattson "alex.mattson@gmail.com" diff --git a/security/wi-secrets/Dockerfile b/security/wi-secrets/Dockerfile index 5a74687201..b88fbfc761 100644 --- a/security/wi-secrets/Dockerfile +++ b/security/wi-secrets/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.21.0 as builder +FROM golang:1.23.2 as builder WORKDIR /app COPY *.go go.mod go.sum ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /wi-secrets diff --git a/workloads/migrate-x86-app-to-multi-arch/Dockerfile b/workloads/migrate-x86-app-to-multi-arch/Dockerfile index c25b2e8e87..21e3c6973d 100644 --- a/workloads/migrate-x86-app-to-multi-arch/Dockerfile +++ b/workloads/migrate-x86-app-to-multi-arch/Dockerfile @@ -19,7 +19,7 @@ # # Build: 1st stage # -FROM golang:1.18-alpine as builder +FROM golang:1.23-alpine as builder ARG BUILDPLATFORM ARG TARGETPLATFORM RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" diff --git a/workloads/migrate-x86-app-to-multi-arch/Dockerfile_arm b/workloads/migrate-x86-app-to-multi-arch/Dockerfile_arm index 4ed4aaf69f..25c0d78d5e 100644 --- a/workloads/migrate-x86-app-to-multi-arch/Dockerfile_arm +++ b/workloads/migrate-x86-app-to-multi-arch/Dockerfile_arm @@ -19,7 +19,7 @@ # # Build: 1st stage # -FROM golang:1.18-alpine as builder +FROM golang:1.23-alpine as builder WORKDIR /app COPY go.mod . COPY hello.go .