Skip to content

Commit b9077ce

Browse files
authored
Merge pull request #3127 from saschagrunert/bookworm
debian-base: switch to debian bookworm
2 parents ace8654 + 8227bf2 commit b9077ce

File tree

7 files changed

+37
-43
lines changed

7 files changed

+37
-43
lines changed

dependencies.yaml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,11 @@ dependencies:
417417
match: OS_CODENAME\ \?=\ bullseye
418418
- path: images/build/cross/variants.yaml
419419
match: "OS_CODENAME: 'bullseye'"
420-
- path: images/build/debian-base/Makefile
421-
match: CONFIG\ \?=\ bullseye
422-
- path: images/build/debian-base/variants.yaml
423-
match: "CONFIG: 'bullseye'"
420+
# TODO: revert once all images are on bookworm
421+
# - path: images/build/debian-base/Makefile
422+
# match: CONFIG\ \?=\ bullseye
423+
# - path: images/build/debian-base/variants.yaml
424+
# match: "CONFIG: 'bullseye'"
424425
- path: images/build/debian-iptables/Makefile
425426
match: CONFIG\ \?=\ bullseye
426427
- path: images/build/debian-iptables/variants.yaml
@@ -444,26 +445,27 @@ dependencies:
444445
match: FROM golang:\d+.\d+(alpha|beta|rc)?\.?(\d+)-bullseye
445446

446447
- name: "Debian: codename (next candidate)"
447-
version: bullseye
448+
version: bookworm
448449
refPaths:
449-
- path: images/build/cross/variants.yaml
450-
match: "OS_CODENAME: 'bullseye'"
450+
# TODO: revert once all images are on bookworm
451+
# - path: images/build/cross/variants.yaml
452+
# match: "OS_CODENAME: 'bullseye'"
451453
- path: images/build/debian-base/variants.yaml
452-
match: "CONFIG: 'bullseye'"
453-
- path: images/build/go-runner/variants.yaml
454-
match: "OS_CODENAME: 'bullseye'"
455-
- path: images/releng/ci/variants.yaml
456-
match: "OS_CODENAME: 'bullseye'"
457-
- path: images/releng/k8s-ci-builder/variants.yaml
458-
match: "OS_CODENAME: 'bullseye'"
454+
match: "CONFIG: 'bookworm'"
455+
# - path: images/build/go-runner/variants.yaml
456+
# match: "OS_CODENAME: 'bullseye'"
457+
# - path: images/releng/ci/variants.yaml
458+
# match: "OS_CODENAME: 'bullseye'"
459+
# - path: images/releng/k8s-ci-builder/variants.yaml
460+
# match: "OS_CODENAME: 'bullseye'"
459461

460462
- name: "registry.k8s.io/build-image/debian-base"
461-
version: bullseye-v1.4.3
463+
version: bookworm-v1.0.0
462464
refPaths:
463465
- path: images/build/debian-base/Makefile
464-
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-]+)*))?)
466+
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-]+)*))?)
465467
- path: images/build/debian-base/variants.yaml
466-
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-]+)*))?)'"
468+
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-]+)*))?)'"
467469

468470
- name: "registry.k8s.io/build-image/debian-base: dependents"
469471
version: bullseye-v1.4.3
@@ -509,10 +511,10 @@ dependencies:
509511

510512
# Base images (next candidate)
511513
- name: "registry.k8s.io/build-image/debian-base (next candidate)"
512-
version: bullseye-v1.4.3
514+
version: bookworm-v1.0.0
513515
refPaths:
514516
- path: images/build/debian-base/variants.yaml
515-
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-]+)*))?)'"
517+
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-]+)*))?)'"
516518

517519
- name: "registry.k8s.io/build-image/debian-base: dependents (next candidate)"
518520
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: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,18 @@ 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
6255

6356
# No-op stubs replace some unnecessary binaries that may be depended on in the install process (in
6457
# 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)