[info=cee648f674be440bbfd0953b192e821e]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rust-oldstable-image?expand=0&rev=195
This commit is contained in:
Dan Čermák 2024-11-06 08:46:46 +00:00 committed by Git OBS Bridge
parent 23654b5196
commit 5e45d99c56
5 changed files with 17 additions and 12 deletions

View File

@ -19,19 +19,19 @@
#!BuildTag: opensuse/bci/rust:oldstable #!BuildTag: opensuse/bci/rust:oldstable
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-2.%RELEASE% #!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-2.%RELEASE%
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%% #!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
#!BuildTag: opensuse/bci/rust:1.80 #!BuildTag: opensuse/bci/rust:1.81
FROM opensuse/tumbleweed:latest FROM opensuse/tumbleweed:latest
RUN set -euo pipefail; \ RUN set -euo pipefail; \
zypper -n install --no-recommends rust1.80 cargo1.80; \ zypper -n install --no-recommends rust1.81 cargo1.81; \
zypper -n clean; \ zypper -n clean; \
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
# Define labels according to https://en.opensuse.org/Building_derived_containers # Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.bci.rust # labelprefix=org.opensuse.bci.rust
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.80" LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.81"
LABEL org.opencontainers.image.description="Rust 1.80 container based on the openSUSE Tumbleweed Base Container Image." LABEL org.opencontainers.image.description="Rust 1.81 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="%%RUST_VERSION%%" LABEL org.opencontainers.image.version="%%RUST_VERSION%%"
LABEL org.opencontainers.image.url="https://www.opensuse.org" LABEL org.opencontainers.image.url="https://www.opensuse.org"
LABEL org.opencontainers.image.created="%BUILDTIME%" LABEL org.opencontainers.image.created="%BUILDTIME%"

View File

@ -1,4 +1,4 @@
# Rust 1.80 Container Image # Rust 1.81 Container Image
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green) ![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
@ -11,8 +11,8 @@
To compile and deploy an application, copy the sources, fetch dependencies, and build the binary: To compile and deploy an application, copy the sources, fetch dependencies, and build the binary:
```Dockerfile ```Dockerfile
# Build the application using the Rust 1.80 container image # Build the application using the Rust 1.81 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.80 as build FROM registry.opensuse.org/opensuse/bci/rust:1.81 as build
WORKDIR /app WORKDIR /app
@ -40,7 +40,7 @@ There are situations, where you don't want to run an application inside a contai
To compile the application, without running it inside a container instance, use the following command: To compile the application, without running it inside a container instance, use the following command:
```ShellSession ```ShellSession
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.80 cargo build --release $ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.81 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`. **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`.

View File

@ -4,11 +4,11 @@
<service name="replace_using_package_version" mode="buildtime"> <service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param> <param name="file">Dockerfile</param>
<param name="regex">%%RUST_VERSION%%</param> <param name="regex">%%RUST_VERSION%%</param>
<param name="package">rust1.80</param> <param name="package">rust1.81</param>
</service> </service>
<service name="replace_using_package_version" mode="buildtime"> <service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param> <param name="file">Dockerfile</param>
<param name="regex">%%CARGO_VERSION%%</param> <param name="regex">%%CARGO_VERSION%%</param>
<param name="package">cargo1.80</param> <param name="package">cargo1.81</param>
</service> </service>
</services> </services>

View File

@ -1,2 +1,2 @@
requires:cargo1.80 requires:cargo1.81
requires:rust1.80 requires:rust1.81

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 4 13:48:16 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- Bump Rust version to 1.81
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de> Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>