diff --git a/scripts/README.md b/scripts/README.md index 1e90e7f18..8025a08dc 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -48,19 +48,3 @@ the build machine (ask your friendly sysadmin on #deltachat Libera Chat) to type This will **rsync** your current checkout to the remote build machine (no need to commit before) and then run either rust or python tests. - -# coredeps Dockerfile - -`coredeps/Dockerfile` specifies an image that contains all -of Delta Chat's core dependencies. It is used to -build python wheels (binary packages for Python). - -You can build the docker images yourself locally -to avoid the relatively large download: - - cd scripts # where all CI things are - docker build -t deltachat/coredeps coredeps - -Additionally, you can install qemu and build arm64 docker image on x86\_64 machine: - apt-get install qemu binfmt-support qemu-user-static - docker build -t deltachat/coredeps-arm64 --build-arg BASEIMAGE=quay.io/pypa/manylinux2014_aarch64 coredeps diff --git a/scripts/coredeps/Dockerfile b/scripts/coredeps/Dockerfile deleted file mode 100644 index 55b90d9f6..000000000 --- a/scripts/coredeps/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -ARG BASEIMAGE=quay.io/pypa/manylinux2014_x86_64 -#ARG BASEIMAGE=quay.io/pypa/musllinux_1_1_x86_64 -#ARG BASEIMAGE=quay.io/pypa/manylinux2014_aarch64 - -FROM $BASEIMAGE -RUN pipx install tox -COPY install-rust.sh /scripts/ -RUN /scripts/install-rust.sh -RUN if command -v yum; then yum install -y perl-IPC-Cmd; fi diff --git a/scripts/coredeps/install-rust.sh b/scripts/coredeps/install-rust.sh deleted file mode 100755 index 6425626b5..000000000 --- a/scripts/coredeps/install-rust.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Install Rust -# -# Path from https://forge.rust-lang.org/infra/other-installation-methods.html -# -# Avoid using rustup here as it depends on reading /proc/self/exe and -# has problems running under QEMU. -RUST_VERSION=1.94.0 - -ARCH="$(uname -m)" -test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu - -curl "https://static.rust-lang.org/dist/rust-${RUST_VERSION}-$ARCH-unknown-linux-$LIBC.tar.gz" | tar xz -cd "rust-${RUST_VERSION}-$ARCH-unknown-linux-$LIBC" -./install.sh --prefix=/usr --components=rustc,cargo,"rust-std-$ARCH-unknown-linux-$LIBC" -rustc --version -cd .. -rm -fr "rust-${RUST_VERSION}-$ARCH-unknown-linux-$LIBC"