Skip to content

Commit 630512d

Browse files
committed
Bump rust to 1.92.0
1 parent c5eefc5 commit 630512d

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

rust/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rust is a systems programming language sponsored by Mozilla Research. It is desi
44

55
This image packages releases from https://github.com/rust-lang/docker-rust
66

7-
Image source: https://github.com/polymathrobotics/oci/tree/main/rust
7+
Image source: https://github.com/boxcutter/oci/tree/main/rust
88

99
## Using rust
1010

rust/noble/slim/Containerfile

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
ARG BASE_IMAGE=docker.io/ubuntu:noble-20250127
2+
ARG BASE_IMAGE=docker.io/ubuntu:noble-20251013
33
# hadolint ignore=DL3006
44
FROM $BASE_IMAGE AS base
55

@@ -19,18 +19,41 @@ RUN set -eux; \
1919
wget \
2020
; \
2121
dpkgArch="$(dpkg --print-architecture)"; \
22-
case "${dpkgArch##*-}" in \
23-
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='a3339fb004c3d0bb9862ba0bce001861fe5cbde9c10d16591eb3f39ee6cd3e7f' ;; \
24-
armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='62cfed758140f94a75074fb350e287dd26d1b6c9a4d6a18616757fb344720bcb' ;; \
25-
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='c64b33db2c6b9385817ec0e49a84bcfe018ed6e328fe755c3c809580cc70ce7a' ;; \
26-
i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='fec8226fede82b4b886855e4f1b69cdd17a6f60afdddb17f9a814b743c2d5c47' ;; \
27-
ppc64el) rustArch='powerpc64le-unknown-linux-gnu'; rustupSha256='b1ef09a734ece551456635b25c91a97770392b74c7f793fbc58575ddf0442645' ;; \
28-
s390x) rustArch='s390x-unknown-linux-gnu'; rustupSha256='8e4e8d5ffd3e6996303faf45670009388f73a4796264230f04f5c29809620c20' ;; \
29-
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
22+
case "$arch" in \
23+
'amd64') \
24+
rustArch='x86_64-unknown-linux-gnu'; \
25+
rustupSha256='20a06e644b0d9bd2fbdbfd52d42540bdde820ea7df86e92e533c073da0cdd43c'; \
26+
;; \
27+
'armhf') \
28+
rustArch='armv7-unknown-linux-gnueabihf'; \
29+
rustupSha256='3b8daab6cc3135f2cd4b12919559e6adaee73a2fbefb830fadf0405c20231d61'; \
30+
;; \
31+
'arm64') \
32+
rustArch='aarch64-unknown-linux-gnu'; \
33+
rustupSha256='e3853c5a252fca15252d07cb23a1bdd9377a8c6f3efa01531109281ae47f841c'; \
34+
;; \
35+
'i386') \
36+
rustArch='i686-unknown-linux-gnu'; \
37+
rustupSha256='a5db2c4b29d23e9b318b955dd0337d6b52e93933608469085c924e0d05b1df1f'; \
38+
;; \
39+
'ppc64el') \
40+
rustArch='powerpc64le-unknown-linux-gnu'; \
41+
rustupSha256='acd89c42b47c93bd4266163a7b05d3f26287d5148413c0d47b2e8a7aa67c9dc0'; \
42+
;; \
43+
's390x') \
44+
rustArch='s390x-unknown-linux-gnu'; \
45+
rustupSha256='726b7fd5d8805e73eab4a024a2889f8859d5a44e36041abac0a2436a52d42572'; \
46+
;; \
47+
*) \
48+
echo >&2 "unsupported architecture: $arch"; \
49+
exit 1; \
50+
;; \
3051
esac; \
31-
url="https://static.rust-lang.org/rustup/archive/1.28.1/${rustArch}/rustup-init"; \
52+
\
53+
url="https://static.rust-lang.org/rustup/archive/1.28.2/${rustArch}/rustup-init"; \
3254
wget --progress=dot:giga "$url"; \
3355
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
56+
\
3457
chmod +x rustup-init; \
3558
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
3659
rm rustup-init; \

rust/noble/slim/docker-bake.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ variable "TAG_PREFIX" {
33
}
44

55
variable "VERSION" {
6-
default = "1.85.1"
6+
default = "1.92.0"
77
}
88

99
# There's no darwin-based Docker, so if we're running on macOS, change the platform to linux

0 commit comments

Comments
 (0)