Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit311332e

Browse files
Add Alpine 3.22 variant
1 parent27696f2 commit311332e

File tree

5 files changed

+69
-1
lines changed

5 files changed

+69
-1
lines changed

‎.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
variant:alpine3.20
3737
-name:alpine3.21
3838
variant:alpine3.21
39+
-name:alpine3.22
40+
variant:alpine3.22
3941
#VERSIONS
4042
name:${{ matrix.name }}
4143
steps:

‎.github/workflows/nightly.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ jobs:
5353
platforms:linux/amd64,linux/arm64
5454
tags:|
5555
nightly-alpine3.21
56+
-name:alpine3.22
57+
context:nightly/alpine3.22
58+
platforms:linux/amd64,linux/arm64
59+
tags:|
60+
nightly-alpine3.22
5661
nightly-alpine
5762
#VERSIONS
5863
name:${{ matrix.name }}

‎nightly/alpine3.22/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM alpine:3.22
2+
3+
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
4+
5+
RUN apk add --no-cache \
6+
ca-certificates \
7+
gcc
8+
9+
ENV RUSTUP_HOME=/usr/local/rustup \
10+
CARGO_HOME=/usr/local/cargo \
11+
PATH=/usr/local/cargo/bin:$PATH \
12+
RUST_VERSION=nightly
13+
14+
RUN set -eux; \
15+
apkArch="$(apk --print-arch)"; \
16+
case"$apkArch" in \
17+
x86_64) rustArch='x86_64-unknown-linux-musl'; rustupSha256='e6599a1c7be58a2d8eaca66a80e0dc006d87bbcf780a58b7343d6e14c1605cb2' ;; \
18+
aarch64) rustArch='aarch64-unknown-linux-musl'; rustupSha256='a97c8f56d7462908695348dd8c71ea6740c138ce303715793a690503a94fc9a9' ;; \
19+
*) echo >&2"unsupported architecture: $apkArch"; exit 1 ;; \
20+
esac; \
21+
url="https://static.rust-lang.org/rustup/archive/1.28.2/${rustArch}/rustup-init"; \
22+
wget"$url"; \
23+
echo"${rustupSha256} *rustup-init" | sha256sum -c -; \
24+
chmod +x rustup-init; \
25+
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
26+
rm rustup-init; \
27+
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
28+
rustup --version; \
29+
cargo --version; \
30+
rustc --version;

‎stable/alpine3.22/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM alpine:3.22
2+
3+
LABEL org.opencontainers.image.source=https://github.com/rust-lang/docker-rust
4+
5+
RUN apk add --no-cache \
6+
ca-certificates \
7+
gcc
8+
9+
ENV RUSTUP_HOME=/usr/local/rustup \
10+
CARGO_HOME=/usr/local/cargo \
11+
PATH=/usr/local/cargo/bin:$PATH \
12+
RUST_VERSION=1.87.0
13+
14+
RUN set -eux; \
15+
apkArch="$(apk --print-arch)"; \
16+
case"$apkArch" in \
17+
x86_64) rustArch='x86_64-unknown-linux-musl'; rustupSha256='e6599a1c7be58a2d8eaca66a80e0dc006d87bbcf780a58b7343d6e14c1605cb2' ;; \
18+
aarch64) rustArch='aarch64-unknown-linux-musl'; rustupSha256='a97c8f56d7462908695348dd8c71ea6740c138ce303715793a690503a94fc9a9' ;; \
19+
*) echo >&2"unsupported architecture: $apkArch"; exit 1 ;; \
20+
esac; \
21+
url="https://static.rust-lang.org/rustup/archive/1.28.2/${rustArch}/rustup-init"; \
22+
wget"$url"; \
23+
echo"${rustupSha256} *rustup-init" | sha256sum -c -; \
24+
chmod +x rustup-init; \
25+
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \
26+
rm rustup-init; \
27+
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
28+
rustup --version; \
29+
cargo --version; \
30+
rustc --version;

‎x.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@
4949
alpine_versions= [
5050
"3.20",
5151
"3.21",
52+
"3.22",
5253
]
5354

54-
default_alpine_version="3.21"
55+
default_alpine_version="3.22"
5556

5657
defrustup_hash(arch):
5758
url=f"https://static.rust-lang.org/rustup/archive/{rustup_version}/{arch}/rustup-init.sha256"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp