Commit c184760
committed
docker: Add helper recipe
Using official rust's docker image as base.
Usage is straight forward:
```
docker run astarte-device-sdk-rust:latest run --example simple -- \
--credentials-secret $credentialssecret \
--device-id $deviceid \
--pairing-url $pairingurl \
--realm $realm
```
For the record it can be rebased on ubuntu:21.10
(and cargo should be added to base packages)
My distro RUST setup is not running it out of the box
so I used a more recent one.
For the record the observed error was:
error[E0599]: no variant or associated item named `OutOfMemory` found for enum `ErrorKind` in the current scope
-> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.5.10/src/sqlite/connection/establish.rs:107:32
Install example is needed because there is no default installation rule:
error: there is nothing to install in `astarte_sdk v0.1.0 (/local/src/astarte-device-sdk-rust)`, because it has no binaries
Forwarded: #31
Relate-to: #20
Signed-off-by: Philippe Coval <philippe.coval@astrolabe.coop>1 parent f0c6fe5 commit c184760
2 files changed
+47
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments