From f5fad9a3bcff0a4435bfaf49d001320411296da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Pol=C3=A1=C4=8Dek?= Date: Sat, 30 Mar 2024 12:24:29 +0100 Subject: [PATCH] Use manylinux Dockefile --- Dockerfile | 7 ++++--- conf/sources.list | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 conf/sources.list diff --git a/Dockerfile b/Dockerfile index eaa7837..e931aa9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,14 @@ -FROM ubuntu:noble +FROM ghcr.io/rust-cross/manylinux_2_28-cross:armv7 COPY conf/sources.list /etc/apt/sources.list RUN apt update RUN dpkg --add-architecture armhf -RUN apt install -y gcc-arm-linux-gnueabihf rustup build-essential -RUN apt install -y pkg-config python3 python3-pip python3-venv protobuf-compiler +RUN apt install -y gcc-arm-linux-gnueabihf pkg-config python3 python3-pip python3-venv protobuf-compiler RUN apt install -y libudev-dev:armhf libdbus-1-dev:armhf +RUN curl https://sh.rustup.rs -sSf | sh -s -- -y +ENV PATH="/root/.cargo/bin:${PATH}" RUN rustup default stable && rustup target add armv7-unknown-linux-gnueabihf WORKDIR /app diff --git a/conf/sources.list b/conf/sources.list new file mode 100644 index 0000000..2d82e2d --- /dev/null +++ b/conf/sources.list @@ -0,0 +1,46 @@ +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to +# newer versions of the distribution. +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted +# deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted + +## Major bug fix updates produced after the final release of the +## distribution. +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted +# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted + +deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted +deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted + +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu +## team. Also, please note that software in universe WILL NOT receive any +## review or updates from the Ubuntu security team. +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy universe +# deb-src http://archive.ubuntu.com/ubuntu/ jammy universe +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates universe +# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates universe + +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu +## team, and may not be under a free licence. Please satisfy yourself as to +## your rights to use the software. Also, please note that software in +## multiverse WILL NOT receive any review or updates from the Ubuntu +## security team. +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy multiverse +# deb-src http://archive.ubuntu.com/ubuntu/ jammy multiverse +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse +# deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse + +## N.B. software from this repository may not have been tested as +## extensively as that contained in the main release, although it includes +## newer versions of some applications which may provide useful features. +## Also, please note that software in backports WILL NOT receive any review +## or updates from the Ubuntu security team. +deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse +# deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse + +deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security main restricted +# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted +deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security universe +# deb-src http://security.ubuntu.com/ubuntu/ jammy-security universe +deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security multiverse +# deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse +