[info=3146c995f0c9340471af1415e829d38e]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rust-oldstable-image?expand=0&rev=110
This commit is contained in:
Dan Čermák 2024-06-25 07:44:49 +00:00 committed by Git OBS Bridge
parent a27e84dd71
commit be75a00342
5 changed files with 20 additions and 15 deletions

View File

@ -16,8 +16,8 @@
#!BuildTag: opensuse/bci/rust:oldstable #!BuildTag: opensuse/bci/rust:oldstable
#!BuildTag: opensuse/bci/rust:oldstable-2.%RELEASE% #!BuildTag: opensuse/bci/rust:oldstable-2.%RELEASE%
#!BuildTag: opensuse/bci/rust:1.77 #!BuildTag: opensuse/bci/rust:1.78
#!BuildTag: opensuse/bci/rust:1.77-2.%RELEASE% #!BuildTag: opensuse/bci/rust:1.78-2.%RELEASE%
FROM opensuse/tumbleweed:latest FROM opensuse/tumbleweed:latest
@ -25,21 +25,21 @@ MAINTAINER openSUSE (https://www.opensuse.org/)
# 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.77" LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.78"
LABEL org.opencontainers.image.description="Rust 1.77 container based on the openSUSE Tumbleweed Base Container Image." LABEL org.opencontainers.image.description="Rust 1.78 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="1.77" LABEL org.opencontainers.image.version="1.78"
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%"
LABEL org.opencontainers.image.vendor="openSUSE Project" LABEL org.opencontainers.image.vendor="openSUSE Project"
LABEL org.opencontainers.image.source="%SOURCEURL%" LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.77-2.%RELEASE%" LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.78-2.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%" LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime" LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime"
LABEL org.opensuse.release-stage="released" LABEL org.opensuse.release-stage="released"
# endlabelprefix # endlabelprefix
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/rust-oldstable-image/README.md" LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/rust-oldstable-image/README.md"
RUN set -euo pipefail; zypper -n in --no-recommends rust1.77 cargo1.77; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} RUN set -euo pipefail; zypper -n in --no-recommends rust1.78 cargo1.78; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
ENV RUST_VERSION="%%RUST_VERSION%%" ENV RUST_VERSION="%%RUST_VERSION%%"
ENV CARGO_VERSION="%%CARGO_VERSION%%" ENV CARGO_VERSION="%%CARGO_VERSION%%"
ENV CC="/usr/local/bin/gcc" ENV CC="/usr/local/bin/gcc"

View File

@ -1,4 +1,4 @@
# Rust 1.77 Container Image # Rust 1.78 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.77 container image # Build the application using the Rust 1.78 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.77 as build FROM registry.opensuse.org/opensuse/bci/rust:1.78 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.77 cargo build --release $ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/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`. **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.77</param> <param name="package">rust1.78</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.77</param> <param name="package">cargo1.78</param>
</service> </service>
</services> </services>

View File

@ -1,2 +1,2 @@
requires:cargo1.77 requires:cargo1.78
requires:rust1.77 requires:rust1.78

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 25 07:39:04 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- rust 1.79 for stable, rust 1.78 for oldstable
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 11 17:30:19 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com> Tue Jun 11 17:30:19 UTC 2024 - Alexandre Vicenzi <alexandre.vicenzi@suse.com>