docker-rust-crosscompile (armv7-unknown-linux-gnueabihf)
Published 2023-06-13 22:47:19 +02:00 by pfzetto
Installation
docker pull git.pfzetto.de/pfzetto/docker-rust-crosscompile:armv7-unknown-linux-gnueabihf
sha256:ba5d007550e11cd07ffb99dbcf205c2b4afc8dab015e2fbdb6a3fea94554fbfb
Image Layers
ADD file:5ab44909c2983e19ab6596e7e4ee9ad80e48afeb9dfe0e7224afdae7cafd25ef in / |
CMD ["bash"] |
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.70.0 |
/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates gcc libc6-dev wget ; dpkgArch="$(dpkg --print-architecture)"; case "${dpkgArch##*-}" in amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db' ;; armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='f21c44b01678c645d8fbba1e55e4180a01ac5af2d38bcbd14aa665e0d96ed69a' ;; arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800' ;; i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='e7b0f47557c1afcd86939b118cbcf7fb95a5d1d917bdd355157b63ca00fc4333' ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac; url="https://static.rust-lang.org/rustup/archive/1.26.0/${rustArch}/rustup-init"; wget "$url"; echo "${rustupSha256} *rustup-init" | sha256sum -c -; chmod +x rustup-init; ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; rm rustup-init; chmod -R a+w $RUSTUP_HOME $CARGO_HOME; rustup --version; cargo --version; rustc --version; apt-get remove -y --auto-remove wget ; rm -rf /var/lib/apt/lists/*; |
/bin/sh -c dpkg --add-architecture armhf |
/bin/sh -c apt update && apt install -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf |
/bin/sh -c rustup target add armv7-unknown-linux-gnueabihf |
LABEL org.opencontainers.image.created=2023-06-13T20:44:39Z |
LABEL org.opencontainers.image.revision=d776908e82cd87acdc9322d8f1ec470acca27fb0 |
LABEL org.opencontainers.image.source=https://git2.zettoit.eu/pfz4/docker-rust-crosscompile.git |
LABEL org.opencontainers.image.url=https://git2.zettoit.eu/pfz4/docker-rust-crosscompile |
Labels
Key | Value |
---|---|
org.opencontainers.image.created | 2023-06-13T20:44:39Z |
org.opencontainers.image.revision | d776908e82cd87acdc9322d8f1ec470acca27fb0 |
org.opencontainers.image.source | https://git2.zettoit.eu/pfz4/docker-rust-crosscompile.git |
org.opencontainers.image.url | https://git2.zettoit.eu/pfz4/docker-rust-crosscompile |
Details
2023-06-13 22:47:19 +02:00
Versions (1)
View all
Container
1
OCI / Docker
linux/amd64
478 MiB
armv7-unknown-linux-gnueabihf
2023-06-13