Skip to content

Commit c3532d5

Browse files
committed
chore: Get Renovate to look deeper into Dockerfile
1 parent c6f8ead commit c3532d5

File tree

2 files changed

+49
-16
lines changed

2 files changed

+49
-16
lines changed

Dockerfile

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,25 @@ FROM ubuntu:noble AS build
55

66
SHELL ["sh", "-exc"]
77

8+
# renovate: suite=noble depName=build-essential
9+
ARG BUILD_ESSENTIAL_VERSION="12.10ubuntu1"
10+
# renovate: suite=noble depName=ca-certificates
11+
ARG CA_CERTIFICATES_VERSION="20240203"
12+
# renovate: suite=noble depName=python3-setuptools
13+
ARG PYTHON3_SETUPTOOLS_VERSION="68.1.2-2ubuntu1.2"
14+
# renovate: suite=noble depName=python3.12-dev
15+
ARG PYTHON3_12_DEV_VERSION="3.12.3-1ubuntu0.5"
16+
817
## Start Build Prep
918
RUN <<EOT
1019
apt-get update -qy
1120
apt-get install -qyy \
1221
-o APT::Install-Recommends=false \
1322
-o APT::Install-Suggests=false \
14-
build-essential \
15-
ca-certificates \
16-
python3-setuptools \
17-
python3.12-dev
23+
build-essential="${BUILD_ESSENTIAL_VERSION}" \
24+
ca-certificates="${CA_CERTIFICATES_VERSION}" \
25+
python3-setuptools="${PYTHON3_SETUPTOOLS_VERSION}" \
26+
python3.12-dev="${PYTHON3_12_DEV_VERSION}"
1827
apt-get clean
1928
EOT
2029

@@ -82,18 +91,29 @@ ENTRYPOINT ["aoc"]
8291
# See <https://hynek.me/articles/docker-signals/>.
8392
STOPSIGNAL SIGINT
8493

94+
# renovate: suite=noble depName=python3.12
95+
ARG PYTHON3_12_VERSION="3.12.3-1ubuntu0.5"
96+
# renovate: suite=noble depName=libpython3.12t64
97+
ARG LIBPYTHON3_12_VERSION="3.12.3-1ubuntu0.5"
98+
# renovate: suite=noble depName=ca-certificates
99+
ARG CA_CERTIFICATES_VERSION="20240203"
100+
# renovate: suite=noble depName=libpcre3
101+
ARG LIBPCRE3_VERSION="2:8.39-15build1"
102+
# renovate: suite=noble depName=libxml2
103+
ARG LIBXML2_VERSION="2.9.14+dfsg-1.3ubuntu3.3"
104+
85105
# Note how the runtime dependencies differ from build-time ones.
86106
# Notably, there is no uv either!
87107
RUN <<EOT
88108
apt-get update -qy
89109
apt-get install -qyy \
90110
-o APT::Install-Recommends=false \
91111
-o APT::Install-Suggests=false \
92-
python3.12 \
93-
libpython3.12 \
94-
ca-certificates \
95-
libpcre3 \
96-
libxml2
112+
python3.12="${PYTHON3_12_VERSION}" \
113+
libpython3.12="${LIBPYTHON3_12_VERSION}" \
114+
ca-certificates="${CA_CERTIFICATES_VERSION}" \
115+
libpcre3="${LIBPCRE3_VERSION}" \
116+
libxml2="${LIBXML2_VERSION}"
97117

98118
apt-get clean
99119
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

renovate.json

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
],
6-
"pre-commit": {
7-
"enabled": true
8-
}
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"customManagers": [
4+
{
5+
"customType": "regex",
6+
"datasourceTemplate": "deb",
7+
"managerFilePatterns": [
8+
"/^Dockerfile$/"
9+
],
10+
"matchStrings": [
11+
"#\\s*renovate:\\s*?(suite=(?<suite>.*?))?\\s*depName=(?<depName>.*?)?\\sARG .*?_VERSION=\"(?<currentValue>.*)\""
12+
],
13+
"registryUrlTemplate": "https://archive.ubuntu.com/ubuntu?suite={{suite}}&components=universe,multiverse,main,restricted&binaryArch=amd64"
14+
}
15+
],
16+
"extends": [
17+
"config:best-practices"
18+
],
19+
"pre-commit": {
20+
"enabled": true
21+
}
922
}

0 commit comments

Comments
 (0)