Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/docker-rust
DEPRECATED. Use https://hub.docker.com/_/rust/ instead.
https://github.com/jimmycuadra/docker-rust
docker docker-image rust
Last synced: 26 days ago
JSON representation
DEPRECATED. Use https://hub.docker.com/_/rust/ instead.
- Host: GitHub
- URL: https://github.com/jimmycuadra/docker-rust
- Owner: jimmycuadra
- License: mit
- Created: 2015-04-10T05:18:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T19:28:11.000Z (over 7 years ago)
- Last Synced: 2024-04-09T16:26:19.829Z (9 months ago)
- Topics: docker, docker-image, rust
- Homepage:
- Size: 12.7 KB
- Stars: 48
- Watchers: 3
- Forks: 31
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**DEPRECATION NOTICE**
There is now an official Docker image for Rust, so this one is no longer maintained.
* [Rust image on Docker Hub](https://hub.docker.com/_/rust/)
* [Rust image source on GitHub](https://github.com/rust-lang-nursery/docker-rust)# docker-rust
Public trusted images available on:
* [Docker Hub](https://hub.docker.com/r/jimmycuadra/rust/)
* [Quay.io](https://quay.io/repository/jimmycuadra/rust)This repository is used to build a Docker image for the Rust programming language and a few supporting tools.
The image includes `rustc`, `rustdoc`, `cargo`, `git`, SSL certificates, and build essentials, so it should be able to run `cargo build` on most projects out of the box.
The working directory inside the container is `/source`.
You can use this path to mount a Cargo project from the host machine.## Usage
The following command will drop you into a Bash shell with the current directory on the host shared. From there you can run `rustc`, `rustdoc`, and `cargo` as you please.
``` bash
docker run -it --rm -v $(pwd):/source jimmycuadra/rust
```Build a release without an interactive shell:
``` bash
docker run --rm -v $(pwd):/source jimmycuadra/rust cargo build --release
```## License
[MIT](http://opensource.org/licenses/MIT)