Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.13 KB

readme.md

File metadata and controls

24 lines (18 loc) · 1.13 KB

Dockerfiles

This repository hosts our Dockerfiles.

RTU Compiler

The RTUs right now are raspberry Pis, and RPis don't compile Rust very well due to their low memory and CPU power. The Dockerfile in the rtu-compiler/ directory is the source for navasotabrewing/bcs-rtu-compiler on Dockerhub.

Cross compiling for RTUs

You can use cross to cross compile Rust easily, using our Docker container.

The only rust packages in our organization that run on RTUs are NavasotaBrewing/cli and NavasotaBrewing/network. For both projects, be sure the Cross.toml is present with the following

# Cross.toml
[target.armv7-unknown-linux-gnueabihf]
# You may want to update this to the latest version, if available
image = "navasotabrewing/bcs-rtu-compiler:1.0.0"

then run

$ cross build --target armv7-unknown-linux-gnueabihf

The compiled binary will be in the target/ directory, you can send it over to the RTUs.