SLE BCI Rust (stable)

Rust 1.78 container based on the SLE Base Container Image.

Get Image
Digest:
sha256:f9e8d3364cf22469c8db19c2bd2f48da2b9f4643de0e0de6e042bbf4c7f2eeeb
f9e8d3364
Repository:
registry.suse.com/bci/rust:latest

Rust 1.78 Container Image

Redistributable SLSA Provenance: Available

Description

Rust is a systems programming language sponsored by Mozilla Research. It is designed to be a safe, concurrent, practical language, supporting functional and imperative-procedural paradigms. While syntactically similar to C++, Rust is designed for better memory safety without performance penalty.

Usage

To compile and deploy an application, copy the sources, fetch dependencies, and build the binary:

# Build the application using the Rust 1.78 container image
FROM registry.suse.com/bci/rust:1.78 as build

WORKDIR /app

COPY . ./

RUN cargo build --release

# Bundle the application into a BCI micro (or other BCI image)
FROM registry.suse.com/bci/bci-micro

COPY --from=build /app/target/release/hello /usr/local/bin/hello

CMD ["hello"]

Build and run the container image:

$ podman build -t my-rust-app .
$ podman run -it --rm my-rust-app

There are situations, where you don't want to run an application inside a container.

To compile the application, without running it inside a container instance, use the following command:

$ podman run --rm -v "$PWD":/app:Z -w /app registry.suse.com/bci/rust:1.78 cargo build --release

Note: The Rust image is intended to be used as a build environment. For runtime, use smaller images such as bci-base, bci-micro, or bci-minimal.

Licensing

SPDX-License-Identifier: MIT

This documentation and the build recipe are licensed as MIT. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).

This image is based on SLE BCI, a stable and redistributable foundation for software innovation. SLE BCI is enterprise-ready, and it comes with an option for support.

See the SLE BCI EULA for further information.

  • Image Data

    Last Built: 13 Jun 15:52 UTC

    Size: 304.2 MB

    Support Level: L3

    Supported until: 15 Aug 2024


  • Health Index
    A

    No vulnerabilities found

    Last Scan:

    about 19 hours ago