Skip to content

Commit 77659cb

Browse files
committed
debian-base: switch to bookworm
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 3ef59b5 commit 77659cb

File tree

7 files changed

+40
-43
lines changed

7 files changed

+40
-43
lines changed

dependencies.yaml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,11 @@ dependencies:
383383
match: OS_CODENAME\ \?=\ bullseye
384384
- path: images/build/cross/variants.yaml
385385
match: "OS_CODENAME: 'bullseye'"
386-
- path: images/build/debian-base/Makefile
387-
match: CONFIG\ \?=\ bullseye
388-
- path: images/build/debian-base/variants.yaml
389-
match: "CONFIG: 'bullseye'"
386+
# TODO: revert once all images are on bookworm
387+
# - path: images/build/debian-base/Makefile
388+
# match: CONFIG\ \?=\ bullseye
389+
# - path: images/build/debian-base/variants.yaml
390+
# match: "CONFIG: 'bullseye'"
390391
- path: images/build/debian-iptables/Makefile
391392
match: CONFIG\ \?=\ bullseye
392393
- path: images/build/debian-iptables/variants.yaml
@@ -410,26 +411,27 @@ dependencies:
410411
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-bullseye
411412

412413
- name: "Debian: codename (next candidate)"
413-
version: bullseye
414+
version: bookworm
414415
refPaths:
415-
- path: images/build/cross/variants.yaml
416-
match: "OS_CODENAME: 'bullseye'"
416+
# TODO: revert once all images are on bookworm
417+
# - path: images/build/cross/variants.yaml
418+
# match: "OS_CODENAME: 'bullseye'"
417419
- path: images/build/debian-base/variants.yaml
418-
match: "CONFIG: 'bullseye'"
419-
- path: images/build/go-runner/variants.yaml
420-
match: "OS_CODENAME: 'bullseye'"
421-
- path: images/releng/ci/variants.yaml
422-
match: "OS_CODENAME: 'bullseye'"
423-
- path: images/releng/k8s-ci-builder/variants.yaml
424-
match: "OS_CODENAME: 'bullseye'"
420+
match: "CONFIG: 'bookworm'"
421+
# - path: images/build/go-runner/variants.yaml
422+
# match: "OS_CODENAME: 'bullseye'"
423+
# - path: images/releng/ci/variants.yaml
424+
# match: "OS_CODENAME: 'bullseye'"
425+
# - path: images/releng/k8s-ci-builder/variants.yaml
426+
# match: "OS_CODENAME: 'bullseye'"
425427

426428
- name: "registry.k8s.io/build-image/debian-base"
427-
version: bullseye-v1.4.3
429+
version: bookworm-v1.0.0
428430
refPaths:
429431
- path: images/build/debian-base/Makefile
430-
match: IMAGE_VERSION\ \?=\ bullseye-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
432+
match: IMAGE_VERSION\ \?=\ bookworm-v((([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)
431433
- path: images/build/debian-base/variants.yaml
432-
match: "IMAGE_VERSION: 'bullseye-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
434+
match: "IMAGE_VERSION: 'bookworm-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
433435

434436
- name: "registry.k8s.io/build-image/debian-base: dependents"
435437
version: bullseye-v1.4.3
@@ -475,10 +477,10 @@ dependencies:
475477

476478
# Base images (next candidate)
477479
- name: "registry.k8s.io/build-image/debian-base (next candidate)"
478-
version: bullseye-v1.4.3
480+
version: bookworm-v1.0.0
479481
refPaths:
480482
- path: images/build/debian-base/variants.yaml
481-
match: "IMAGE_VERSION: 'bullseye-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
483+
match: "IMAGE_VERSION: 'bookworm-v((([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)'"
482484

483485
- name: "registry.k8s.io/build-image/debian-base: dependents (next candidate)"
484486
version: bullseye-v1.4.3

images/build/debian-base/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ IMAGE ?= $(REGISTRY)/debian-base
1919
BUILD_IMAGE ?= debian-build
2020

2121
TAG ?= $(shell git describe --tags --always --dirty)
22-
IMAGE_VERSION ?= bullseye-v1.4.3
23-
CONFIG ?= bullseye
22+
IMAGE_VERSION ?= bookworm-v1.0.0
23+
CONFIG ?= bookworm
2424

2525
TAR_FILE ?= rootfs.tar
2626
ARCH ?= amd64

images/build/debian-base/bullseye/Dockerfile.build renamed to images/build/debian-base/bookworm/Dockerfile.build

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,21 @@ RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split && \
4040
RUN apt-get update \
4141
&& apt-get dist-upgrade -y
4242

43-
# Hold required packages to avoid breaking the installation of packages
44-
RUN apt-mark hold apt gnupg adduser passwd libsemanage1 libcap2
45-
4643
# Remove unnecessary packages.
47-
# This list was generated manually by listing the installed packages (`apt list --installed`),
48-
# then running `apt-cache rdepends --installed --no-recommends` to find the "root" packages.
49-
# The root packages were evaluated based on whether they were needed in the container image.
50-
# Several utilities (e.g. ping) were kept for usefulness, but may be removed in later versions.
51-
RUN echo "Yes, do as I say!" | apt-get purge \
52-
bash \
53-
e2fsprogs \
54-
libcap2-bin \
55-
libmount1 \
56-
libsmartcols1 \
57-
libblkid1 \
58-
libss2 \
59-
ncurses-base \
60-
ncurses-bin \
61-
tzdata
44+
RUN dpkg --purge --force-remove-essential \
45+
bash \
46+
e2fsprogs \
47+
libss2 \
48+
libcom-err2 \
49+
libext2fs2 \
50+
logsave \
51+
ncurses-base \
52+
ncurses-bin \
53+
tzdata \
54+
&& apt-get autoremove --purge -y
55+
56+
# Hold required packages to avoid breaking the installation of packages
57+
RUN apt-mark hold apt gnupg adduser passwd libsemanage2 libcap2
6258

6359
# No-op stubs replace some unnecessary binaries that may be depended on in the install process (in
6460
# particular we don't run an init process).
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
variants:
2-
# Debian 11 - Kubernetes 1.23 and newer
3-
bullseye:
4-
CONFIG: 'bullseye'
5-
IMAGE_VERSION: 'bullseye-v1.4.3'
2+
bookworm:
3+
CONFIG: 'bookworm'
4+
IMAGE_VERSION: 'bookworm-v1.0.0'

0 commit comments

Comments
 (0)