balena-io-examples / balena-rust-hello-world

Example of how to deploy Rust code on a balena supported device.
https://www.balena.io/docs/learn/getting-started/raspberrypi3/rust/
Apache License 2.0
20 stars 8 forks source link

Single Dockerfile.template by using the RESIN_ARCH template variable #12

Closed majorz closed 5 years ago

majorz commented 5 years ago

It is possible to provide a single Dockerfile.template instead of three almost identical files by using RESIN_ARCH and modifying the uname trick we are using for armv7 and armv6.

cyplo commented 5 years ago

Very good point !

majorz commented 5 years ago

I will PR this in a bit. There was a bug with not starting the real hello application the first time (but the fake for dependencies), and it took me some time to figure it out.