Rust Tools for development in container
627
Start a Rust-tool instance running your app development.
The most straightforward way to use this image is to use a Rust container as both the build and runtime environment.
In your Dockerfile, writing something along the lines of the following will compile and run your project:
FROM ymk1/rust-tools
WORKDIR /app
COPY . .
RUN cargo build --release --path .
CMD ["/app/<>/target/<>"]
š ļø Then, build and run the Docker image:
docker run -it --name rust-tools ymk1/rust-tools --user "$(id -u)":"$(id -g)" -v "$PWD":/app -w /app
Or simply:
docker run -it --name rust-tools ymk1/rust-tools
This creates an image that has all of the Rust tooling preinstalled (approx. 3.2GB).
š” Note: Some shared libraries may need to be installed as shown above with extra-runtime-dependencies.
š See Docker multistage builds for more info.
š§° Compile your app inside the Docker container There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like:
š» Enjoy Rust dev!
š TODO
š¦ Rust is a systems programming language sponsored by Mozilla Research. It is designed to be a "safe, concurrent, practical language", supporting both functional and imperative-procedural paradigms. Rust is syntactically similar to C++, but is designed for better memory safety while maintaining performance.
āļø GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007
Ā© 2007 Free Software Foundation, Inc. https://fsf.org/ā Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program ā to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
š¤ Maintained by: Oumar Makan (papoo7jh) [email protected]ā
Enjoy Rusting! š¦āØ
Content type
Image
Digest
sha256:90cbe9b8eā¦
Size
772.7 MB
Last updated
over 1 year ago
docker pull ymk1/rust-tools