From 60c4ed3c02d69fa9856918ca98fb38bea5416c01 Mon Sep 17 00:00:00 2001 From: Michael Trip Date: Wed, 24 Jun 2026 12:42:34 +0200 Subject: [PATCH] Refactor Dockerfile ARG declarations for better organization and add renovate configuration for automated dependency updates --- Dockerfile | 16 +++++++++++----- renovate.json | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 renovate.json diff --git a/Dockerfile b/Dockerfile index 6e0d6b8..fe36d91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,19 @@ FROM ${NODE_IMAGE} AS webssh2-builder ENV DEBIAN_FRONTEND=noninteractive +# renovate: datasource=github-releases depName=janosmiko/lfk +ARG LFK_VERSION=0.14.9 +# renovate: datasource=github-releases depName=kubernetes/kubectl +ARG KUBECTL_VERSION=1.31.0 +# renovate: datasource=github-releases depName=helm/helm +ARG HELM_VERSION=3.16.2 +# renovate: datasource=github-releases depName=derailed/k9s +ARG K9S_VERSION=0.40.10 +# renovate: datasource=github-releases depName=billchurch/webssh2 ARG WEBSSH2_VERSION=5.0.1 + + RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl \ && rm -rf /var/lib/apt/lists/* \ @@ -21,11 +32,6 @@ RUN apt-get update \ FROM debian:trixie-slim -ARG LFK_VERSION=0.14.9 -ARG KUBECTL_VERSION=1.31.0 -ARG HELM_VERSION=3.16.2 -ARG K9S_VERSION=0.40.10 -ARG WEBSSH2_VERSION=5.0.1 ENV DEBIAN_FRONTEND=noninteractive \ WEB_SSH_PORT=3000 \ diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5e4291b --- /dev/null +++ b/renovate.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ], + "customManagers": [ + { + "customType": "regex", + "managerFilePatterns": ["/^Dockerfile$/", "/Dockerfile.*/"], + "matchStrings": [ + "# renovate: datasource=(?.*?) depName=(?.*?)\\s+ARG .*?_VERSION=(?.*)\\s" + ], + "datasourceTemplate": "{{{datasource}}}" + } + ] +} \ No newline at end of file