1
0

Accepting request 1192731 from devel:BCI:Tumbleweed

🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1192731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust-stable-image?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2024-08-11 14:55:31 +00:00 committed by Git OBS Bridge
commit 86cea99876
5 changed files with 25 additions and 16 deletions

View File

@ -16,8 +16,8 @@
#!BuildTag: opensuse/bci/rust:stable
#!BuildTag: opensuse/bci/rust:stable-1.%RELEASE%
#!BuildTag: opensuse/bci/rust:1.79
#!BuildTag: opensuse/bci/rust:1.79-1.%RELEASE%
#!BuildTag: opensuse/bci/rust:1.80
#!BuildTag: opensuse/bci/rust:1.80-1.%RELEASE%
#!BuildTag: opensuse/bci/rust:latest
FROM opensuse/tumbleweed:latest
@ -25,22 +25,21 @@ FROM opensuse/tumbleweed:latest
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.bci.rust
LABEL org.opencontainers.image.authors="openSUSE (https://www.opensuse.org/)"
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.79"
LABEL org.opencontainers.image.description="Rust 1.79 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="1.79"
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.80"
LABEL org.opencontainers.image.description="Rust 1.80 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="1.80"
LABEL org.opencontainers.image.url="https://www.opensuse.org"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="openSUSE Project"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.79-1.%RELEASE%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.80-1.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
LABEL org.opensuse.release-stage="released"
# endlabelprefix
LABEL org.opencontainers.image.revision="%DISTURL%"
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/rust-stable-image/README.md"
RUN set -euo pipefail; zypper -n in --no-recommends rust1.79 cargo1.79; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
RUN set -euo pipefail; zypper -n in --no-recommends rust1.80 cargo1.80; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
ENV RUST_VERSION="%%RUST_VERSION%%"
ENV CARGO_VERSION="%%CARGO_VERSION%%"
ENV CC="/usr/local/bin/gcc"

View File

@ -1,4 +1,4 @@
# Rust 1.79 Container Image
# Rust 1.80 Container Image
![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:
```Dockerfile
# Build the application using the Rust 1.79 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.79 as build
# Build the application using the Rust 1.80 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.80 as build
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:
```ShellSession
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.79 cargo build --release
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.80 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`.

View File

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

View File

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

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 8 16:46:48 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- rust 1.80 for stable, rust 1.79 for oldstable
-------------------------------------------------------------------
Thu Aug 8 16:43:43 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- remove oci reference annotation again
-------------------------------------------------------------------
Mon Aug 5 11:38:13 UTC 2024 - Dirk Mueller <dmueller@suse.com>