Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit 917d654

Browse files
Privacy Sandbox Teamcopybara-github
authored andcommitted
feat!: Upgrade build-system to 2.0.0
Upgrade to build-system with ubunbu 22.04 (debian 12) Bug: b/373923491 Change-Id: I2bee71b44c252895a1063e128a2a81f07f485bbd GitOrigin-RevId: bac0b0ce36b0291aed4f092213c25d071b9ea3e1
1 parent 0a183a3 commit 917d654

11 files changed

Lines changed: 63 additions & 53 deletions

File tree

builders/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5+
## 2.0.0 (2025-04-25)
6+
7+
8+
### ⚠ BREAKING CHANGES
9+
10+
* Upgrade build-debian to ubunbu 22 (debian 12)
11+
512
## 1.0.0 (2025-04-24)
613

714

builders/bazel/container_deps.bzl

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,60 +14,56 @@
1414

1515
load("@rules_oci//oci:pull.bzl", "oci_pull")
1616

17-
# All container images must be compatible with the `build-debian` image.
1817
_images = {
1918
"runtime-debian-debug-nonroot": {
2019
"arch_hashes": {
21-
# Feb 28, 2024
22-
"amd64": "72b9108b17a4ef0398998d45cbc14af2f3270af374fc2aa2c74823c6c7054fac",
23-
# Feb 28, 2024
24-
"arm64": "623676598d55f93ff93ea3b9d95f3cb5a379eca66dfcf9b2734f2cc3e5f34666",
20+
# Mar 28, 2025
21+
"amd64": "0a8aecaca4eec99be3b8034bcbd4a7541c6dc27c5a1eb9c80b0ba2f597c1e3f1",
22+
# Mar 28, 2025
23+
"arm64": "e5e85d96a09bef71cf1b6a1b21eadfb7d64f5e1c9bd4222d6762f7464f0e72f4",
2524
},
2625
"registry": "gcr.io",
27-
"repository": "distroless/cc-debian11",
26+
"repository": "distroless/cc-debian12",
2827
},
2928
"runtime-debian-debug-root": {
30-
# debug build so we can use 'sh'. Root, for gcp coordinators
29+
# Debug build so we can use 'sh'. Root, for GCP coordinators
3130
# auth to work
3231
"arch_hashes": {
33-
# Feb 28, 2024
34-
"amd64": "d5a2169bc2282598f0cf886a3d301269d0ee5bf7f7392184198dd41d36b70548",
35-
# Feb 28, 2024
36-
"arm64": "6449313a9a80b2758f505c81462c492da87f76954d319f2adb55401177798cce",
32+
# Mar 28, 2025
33+
"amd64": "5d6d0b2f650f41ec0ed490f7b12f3e326af5964517a8a8dc8c65e9dfa4bd8008",
34+
# Mar 28, 2025
35+
"arm64": "11e03b8351fa3dc15cea2a97a3484617adeadab37045f77d5328046f0fbd9544",
3736
},
3837
"registry": "gcr.io",
39-
"repository": "distroless/cc-debian11",
38+
"repository": "distroless/cc-debian12",
4039
},
4140
"runtime-debian-nondebug-nonroot": {
42-
# cc-debian11:nonroot
4341
# This image contains a minimal Linux, glibc runtime for
4442
# "mostly-statically compiled" languages like Rust and D.
4543
# https://github.com/GoogleContainerTools/distroless/blob/main/cc/README.md
4644
"arch_hashes": {
47-
# Jul 4, 2024
48-
"amd64": "5a9e854bab8498a61a66b2cfa4e76e009111d09cb23a353aaa8d926e29a653d9",
49-
# Jul 4, 2024
50-
"arm64": "3122cd55375a0a9f32e56a18ccd07572aeed5682421432701a03c335ab79c650",
45+
"amd64": "acf6c2fe4179cd5da18bcf433f0b62467c40f2a42dc821c08cc4ce2f7037813b",
46+
"arm64": "4e6bf5546fc17c9d434b3975daa5dbdb0e4411db4db5e96b122ba8f697f14810",
5147
},
5248
"registry": "gcr.io",
53-
"repository": "distroless/cc-debian11",
49+
"repository": "distroless/cc-debian12",
5450
},
5551
"runtime-debian-nondebug-root": {
5652
"arch_hashes": {
57-
# Jul 29, 2024
58-
"amd64": "72f2f861fdc130b1b083f3f055bbe84b73eec8c8c48f16a435194b41feedc674",
59-
# Jul 4, 2024
60-
"arm64": "74bbfb32c5341d7abc6de0379ffe330a9aec2819c5145c4c71917975c93b83e5",
53+
# Mar 28, 2025
54+
"amd64": "dc7acdb6300eaa99ae93621b0f033237ae1284fdd5ab323b4d90ba8359c55854",
55+
# Mar 28, 2025
56+
"arm64": "b97c1911753fbbdf557e5994a5930de9233f9eec7fd0b773f6624c77b01b76db",
6157
},
6258
"registry": "gcr.io",
63-
"repository": "distroless/cc-debian11",
59+
"repository": "distroless/cc-debian12",
6460
},
6561
# Non-distroless; only for debugging purposes
6662
"runtime-ubuntu-fulldist-debug-root": {
67-
# Ubuntu 20.04 ubuntu:focal-20240530
63+
# Ubuntu 22.04 ubuntu:jammy-20250404
6864
"arch_hashes": {
69-
"amd64": "d86db849e59626d94f768c679aba441163c996caf7a3426f44924d0239ffe03f",
70-
"arm64": "6edb9576e2a2080a42e4e0e9a6bc0bd91a2bf06375f9832d400bf33841d35ece",
65+
"amd64": "a76d0e9d99f0e91640e35824a6259c93156f0f07b7778ba05808c750e7fa6e68",
66+
"arm64": "04c0fd7fceedf5c0fe69ec1685c37cf270f03ae424322a58548b095528f4a3c3",
7167
},
7268
"registry": "docker.io",
7369
"repository": "library/ubuntu",

builders/images/build-debian/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# limitations under the License.
1414

1515
# Use fixed manifest digest to ensure reproducible.
16-
# https://hub.docker.com/layers/library/ubuntu/focal-20240530/images/sha256-85c08a37b74bc18a7b3f8cf89aabdfac51c525cdbc193a753f7907965e310ec2
17-
# ubuntu v20.04, focal-20240530
18-
ARG BASE_IMAGE=ubuntu@sha256:fa17826afb526a9fc7250e0fbcbfd18d03fe7a54849472f86879d8bf562c629e
16+
# https://hub.docker.com/layers/library/ubuntu/jammy-20240911.1/images/sha256-3d1556a8a18cf5307b121e0a98e93f1ddf1f3f8e092f1fddfd941254785b95d7?context=explore
17+
# ubuntu v22.04, jammy-20240911.1
18+
ARG BASE_IMAGE=ubuntu@sha256:58b87898e82351c6cf9cf5b9f3c20257bb9e2dcf33af051e12ce532d7f94e3fe
1919

2020
# ignore this hadolint error as BASE_IMAGE contains an image tag
2121
# hadolint ignore=DL3006

builders/images/build-debian/compile_libprofiler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function install_build_tools() {
1515
lsb-release="11.1.*" \
1616
make="4.*" \
1717
software-properties-common="0.99.*" \
18-
wget="1.20.*"
18+
wget="1.21.*"
1919
}
2020

2121
function install_clang() {

builders/images/build-debian/install_apps

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,50 +44,52 @@ function apt_update() {
4444
}
4545

4646
function install_python() {
47+
local -r ver="3.10"
4748
apt-get --quiet install -y --no-install-recommends \
48-
python3.9-venv="3.9.*" python3.9-dev
49+
python${ver}-venv="${ver}.*" python${ver}-dev
4950
mkdir -p /opt/bin
5051
update-alternatives \
5152
--force \
52-
--install /opt/bin/python3 python3-opt /usr/bin/python3.9 100 \
53-
--slave /usr/bin/python3 python3-usr /usr/bin/python3.9 \
54-
--slave /usr/bin/python python-usr /usr/bin/python3.9 \
55-
--slave /opt/bin/python python /usr/bin/python3.9
53+
--install /opt/bin/python3 python3-opt /usr/bin/python${ver} 100 \
54+
--slave /usr/bin/python3 python3-usr /usr/bin/python${ver} \
55+
--slave /usr/bin/python python-usr /usr/bin/python${ver} \
56+
--slave /opt/bin/python python /usr/bin/python${ver}
5657
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
5758
/usr/bin/python3 /tmp/get-pip.py
5859
rm -f /tmp/get-pip.py
5960
/usr/bin/python3 -m pip --version
6061
/usr/bin/python3 -m pip install \
6162
"libclang~=${CLANG_VER}.0" \
62-
"numpy~=1.25" \
63+
"numpy~=1.26.4" \
6364
"keyring~=25.6.0" \
6465
"keyrings.google-artifactregistry-auth~=1.1.2"
6566
}
6667

6768
function install_misc() {
6869
declare -r arch="$1"
6970
apt-get --quiet install -y --no-install-recommends \
70-
apt-transport-https="2.0.*" \
71+
apt-transport-https="2.4.*" \
7172
bsdmainutils \
73+
bzip2="1.0.8-*" \
7274
ca-certificates \
7375
chrpath="0.16-*" \
74-
curl="7.68.*" \
76+
curl="7.81.*" \
7577
file="1:5.*" \
7678
gawk="1:5.*" \
77-
gettext="0.19.*" \
78-
git="1:2.25.*" \
79+
gettext="0.21*" \
80+
git="1:2.34.*" \
7981
gnupg="2.2.*" \
8082
google-perftools="2.*" \
8183
jq="1.6-*" \
82-
libcurl4="7.68.*" \
83-
locales="2.31-*" \
84+
libcurl4="7.81.*" \
85+
locales="2.35-*" \
8486
lsb-release="11.1.*" \
85-
openssh-client="1:8.2*" \
87+
openssh-client="1:8.9*" \
8688
patch="2.7.*" \
87-
rename="1.10-*" \
89+
rename="1.30-*" \
8890
software-properties-common="0.99.*" \
8991
unzip="6.0-*" \
90-
wget="1.20.*" \
92+
wget="1.21.*" \
9193
xz-utils="5.2.*" \
9294
zip="3.0-*" \
9395
graphviz=2.*
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f0c18dc58423ebf994f30ca936fe4dc3e5ee3a3c7f4237dcdf819058efe839e5
1+
a39144af81a6ac8fbc1402b77524147b9dd6090b6714fa156e9bd918ceae8233

builders/tools/get-architecture

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ function _cleanup() {
2727
if [[ -n ${BUILD_ARCH} ]]; then
2828
printf "%s\n" "${BUILD_ARCH}"
2929
else
30-
docker run --rm --entrypoint=/usr/bin/dpkg ubuntu:20.04 --print-architecture
30+
docker run --rm --entrypoint=/usr/bin/dpkg ubuntu:22.04 --print-architecture
3131
fi

builders/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
2.0.0

src/public/cpio/validator/testdata/version.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
schemaVersion: 2.0.0
1818

1919
commandTests:
20-
- name: 'Ubuntu version is 20'
20+
- name: 'Ubuntu version is not 20'
2121
command: '/usr/bin/cat'
2222
args: ['/etc/debian_version']
23-
expectedOutput: ['bullseye/sid']
23+
excludedOutput: ['bullseye/sid']
2424

25-
- name: 'Ubuntu version is not 22'
25+
- name: 'Ubuntu version is 22'
2626
command: '/usr/bin/cat'
2727
args: ['/etc/debian_version']
28-
excludedOutput: ['bookworm/sid']
28+
expectedOutput: ['bookworm/sid']

src/roma/byob/container/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ cp --dereference \
286286
rm -rf "$${{ROOT_DIR}}/usr/lib"
287287
if [[ -d $${{ROOT_DIR}}/lib64 ]]; then
288288
# move ld.so to /lib64
289-
mv "$${{ROOT_DIR}}/lib/$${{MACHINE}}-linux-gnu"/ld-2.31.so "$${{ROOT_DIR}}/lib64/ld-linux-$${{MACHINE/_/-}}.so.2"
289+
mv "$${{ROOT_DIR}}/lib/$${{MACHINE}}-linux-gnu"/* "$${{ROOT_DIR}}"/lib64
290290
rm -rf "$${{ROOT_DIR}}/lib"
291291
fi
292292
cp --dereference $(execpath :nsjail) "$${{ROOT_DIR}}/usr/bin/"

0 commit comments

Comments
 (0)