diff options
author | 2022-01-20 17:36:45 +0700 | |
---|---|---|
committer | 2022-01-20 17:36:45 +0700 | |
commit | 33d52b5770c54f485df8d23c62fdf2637b4bee43 (patch) | |
tree | 7a8984320ceeda4078315d83c659fd7e275b40af | |
parent | 424e1d3fda3c9e1764b567a3b05d33a9ed589fda (diff) | |
download | iced-33d52b5770c54f485df8d23c62fdf2637b4bee43.tar.gz iced-33d52b5770c54f485df8d23c62fdf2637b4bee43.tar.bz2 iced-33d52b5770c54f485df8d23c62fdf2637b4bee43.zip |
Move files in `docker` directory to `iced-rs/docker` repository
-rw-r--r-- | docker/Dockerfile.aarch64-unknown-linux-gnu | 31 | ||||
-rw-r--r-- | docker/Dockerfile.armv7-unknown-linux-gnueabihf | 31 | ||||
-rw-r--r-- | docker/README.md | 17 |
3 files changed, 0 insertions, 79 deletions
diff --git a/docker/Dockerfile.aarch64-unknown-linux-gnu b/docker/Dockerfile.aarch64-unknown-linux-gnu deleted file mode 100644 index afcdc39d..00000000 --- a/docker/Dockerfile.aarch64-unknown-linux-gnu +++ /dev/null @@ -1,31 +0,0 @@ -FROM debian:buster - -RUN dpkg --add-architecture arm64 && \ - apt-get update && \ - apt-get install --assume-yes \ - curl \ - build-essential \ - cmake \ - g++-aarch64-linux-gnu \ - git \ - pkg-config \ - libdbus-1-dev:arm64 \ - libudev-dev:arm64 \ - libxkbcommon-dev:arm64 \ - libfontconfig1-dev:arm64 - -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \ - --default-toolchain stable \ - --no-modify-path \ - --profile minimal - -ENV RUSTUP_HOME=/root/.rustup \ - CARGO_HOME=/root/.cargo \ - PATH=/root/.cargo/bin:$PATH \ - PKG_CONFIG_ALLOW_CROSS=1 \ - PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig \ - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ - CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \ - RUST_TEST_THREADS=1 - -RUN rustup target add aarch64-unknown-linux-gnu
\ No newline at end of file diff --git a/docker/Dockerfile.armv7-unknown-linux-gnueabihf b/docker/Dockerfile.armv7-unknown-linux-gnueabihf deleted file mode 100644 index 35008acd..00000000 --- a/docker/Dockerfile.armv7-unknown-linux-gnueabihf +++ /dev/null @@ -1,31 +0,0 @@ -FROM debian:buster - -RUN dpkg --add-architecture armhf && \ - apt-get update && \ - apt-get install --assume-yes \ - curl \ - build-essential \ - cmake \ - g++-arm-linux-gnueabihf \ - git \ - pkg-config \ - libdbus-1-dev:armhf \ - libudev-dev:armhf \ - libxkbcommon-dev:armhf \ - libfontconfig1-dev:armhf - -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \ - --default-toolchain stable \ - --no-modify-path \ - --profile minimal - -ENV RUSTUP_HOME=/root/.rustup \ - CARGO_HOME=/root/.cargo \ - PATH=/root/.cargo/bin:$PATH \ - PKG_CONFIG_ALLOW_CROSS=1 \ - PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig \ - CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ - CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \ - RUST_TEST_THREADS=1 - -RUN rustup target add armv7-unknown-linux-gnueabihf
\ No newline at end of file diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index cfb4bab1..00000000 --- a/docker/README.md +++ /dev/null @@ -1,17 +0,0 @@ -## Build -To use `cross` to compile for Raspberry Pi you first need to build the docker image. -Use these commands to build the images needed. - -**NOTE:** Run these commands inside the `docker` folder. This is needed since `docker` -uses surrounding directories as "context" for building the image, which means it'll -copy the entire `target` directory. - -### Raspberry Pi 2/3/4 (32 bits) -``` -$ docker build -t iced-rs/armv7 -f Dockerfile.armv7-unknown-linux-gnueabihf . -``` - -### Raspberry Pi 3/4 (64 bits) -``` -$ docker build -t iced-rs/aarch64 -f Dockerfile.aarch64-unknown-linux-gnu . -```
\ No newline at end of file |