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

Better workflow - release vs debug, caching, ...

zrzka opened this issue · 1 comments

zrzka commented

I think that this example should be updated, because Rust popularity is growing. I'd add following things.

Building

Sample scripts

  • local-push.sh
    • generates Dockerfile from Dockerfile.template
    • pushes debug by default

Final image

  • do not include source code
  • do not include build tools
  • just final binary (+ assets, ...)
  • again, see Dockerfile.template

To sum it up, show users the complete workflow. Development -> production.

zrzka commented

#8 merged.