|
|
@ -1,9 +1,28 @@ |
|
|
|
# opencv |
|
|
|
# rust |
|
|
|
|
|
|
|
Lightweight ready-to use OpenCV image |
|
|
|
Lightweight nightly Rust build including Cargo and GDB |
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
```sh |
|
|
|
$ docker run --rm -it -v $(pwd):/source schickling/opencv |
|
|
|
$ docker run --rm -it -v $(pwd):/source schickling/rust |
|
|
|
``` |
|
|
|
|
|
|
|
Mount your local source folder to the container and compile & run code inside. |
|
|
|
|
|
|
|
#### Compiling code |
|
|
|
|
|
|
|
```sh |
|
|
|
$ rustc hello-world.rs |
|
|
|
$ ./hello-world |
|
|
|
> Hello World! |
|
|
|
``` |
|
|
|
|
|
|
|
#### Environment variables |
|
|
|
|
|
|
|
The `$USER` environment variable can be specified, which is used by `cargo`. The default is `root`. |
|
|
|
|
|
|
|
```sh |
|
|
|
$ docker run --rm -it -e USER="John Doe" -v $(pwd):/source schickling/rust |
|
|
|
``` |
|
|
|
|