Skip to content

Commit eb0932f

Browse files
authored
Install rustup from apk on alpine (#731)
* Install rustup from apk on alpine * for fedora as well * Remove armv7l Alpine runner image from workflow the rust in it doesn't work
1 parent 63ea746 commit eb0932f

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/build-docker-images.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373

7474
# armv7l distro images
7575
- {TAG_NAME: "cryptography-runner-ubuntu-rolling:armv7l", DOCKERFILE_PATH: "runners/ubuntu", DOCKER_PLATFORM: "linux/arm/v7", BUILD_ARGS: "RELEASE=rolling", RUNNER: "ubuntu-24.04-arm"}
76-
- {TAG_NAME: "cryptography-runner-alpine:armv7l", DOCKERFILE_PATH: "runners/alpine", DOCKER_PLATFORM: "linux/arm/v7", RUNNER: "ubuntu-24.04-arm"}
7776

7877
# armv7l manylinux images
7978
- {TAG_NAME: "cryptography-manylinux_2_31:armv7l", DOCKERFILE_PATH: "cryptography-linux", DOCKER_PLATFORM: "linux/arm/v7", BUILD_ARGS: "PYCA_RELEASE=manylinux_2_31_armv7l", RUNNER: "ubuntu-24.04-arm"}

runners/alpine/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ ENV CACHE_BUSTER=1
1313
ENV LANG=C.UTF-8
1414

1515
RUN apk add --no-cache git libffi-dev curl \
16-
python3-dev openssl-dev bash gcc musl-dev tar pkgconfig zstd make
16+
python3-dev openssl-dev bash gcc musl-dev tar pkgconfig zstd make rustup
1717

1818
COPY --from=staticnodejs20 /out/ /staticnode/20/
1919
COPY --from=staticnodejs24 /out/ /staticnode/24/
2020

21-
RUN python3 -m venv /venv && /venv/bin/pip install -U pip wheel --no-cache-dir
22-
23-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal --component llvm-tools-preview
21+
RUN rustup-init -y --default-toolchain stable --profile minimal --component llvm-tools-preview
2422
ENV PATH="/root/.cargo/bin:$PATH"
23+
24+
RUN python3 -m venv /venv && /venv/bin/pip install -U pip wheel --no-cache-dir

runners/fedora/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ FROM registry.fedoraproject.org/fedora:latest
55
ENV LANG=C.UTF-8
66

77
RUN dnf install -y gcc redhat-rpm-config libffi-devel python3 \
8-
python3-devel openssl-devel git findutils which pkg-config zstd && \
8+
python3-devel openssl-devel git findutils which pkg-config zstd rustup && \
99
dnf clean all
1010

11-
RUN python3 -m venv /venv && /venv/bin/pip install -U pip wheel --no-cache-dir
12-
13-
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal --component llvm-tools-preview
11+
RUN rustup-init -y --default-toolchain stable --profile minimal --component llvm-tools-preview
1412
ENV PATH="/root/.cargo/bin:$PATH"
13+
14+
RUN python3 -m venv /venv && /venv/bin/pip install -U pip wheel --no-cache-dir

0 commit comments

Comments
 (0)