Accepting request 1245454 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS OBS-URL: https://build.opensuse.org/request/show/1245454 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust-stable-image?expand=0&rev=43
This commit is contained in:
commit
a8e39328d8
@ -19,20 +19,20 @@
|
|||||||
#!BuildTag: opensuse/bci/rust:stable
|
#!BuildTag: opensuse/bci/rust:stable
|
||||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-1.%RELEASE%
|
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-1.%RELEASE%
|
||||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
|
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
|
||||||
#!BuildTag: opensuse/bci/rust:1.83
|
#!BuildTag: opensuse/bci/rust:1.84
|
||||||
#!BuildTag: opensuse/bci/rust:latest
|
#!BuildTag: opensuse/bci/rust:latest
|
||||||
|
|
||||||
FROM opensuse/tumbleweed:latest
|
FROM opensuse/tumbleweed:latest
|
||||||
|
|
||||||
RUN set -euo pipefail; \
|
RUN set -euo pipefail; \
|
||||||
zypper -n install --no-recommends rust1.83 cargo1.83; \
|
zypper -n install --no-recommends rust1.84 cargo1.84; \
|
||||||
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.83"
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.84"
|
||||||
LABEL org.opencontainers.image.description="Rust 1.83 container based on the openSUSE Tumbleweed Base Container Image."
|
LABEL org.opencontainers.image.description="Rust 1.84 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%"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Rust 1.83 Container Image
|
# Rust 1.84 Container Image
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@ -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.83 container image
|
# Build the application using the Rust 1.84 container image
|
||||||
FROM registry.opensuse.org/opensuse/bci/rust:1.83 as build
|
FROM registry.opensuse.org/opensuse/bci/rust:1.84 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.83 cargo build --release
|
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.84 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`.
|
||||||
|
4
_service
4
_service
@ -4,11 +4,11 @@
|
|||||||
<service mode="buildtime" name="replace_using_package_version">
|
<service mode="buildtime" name="replace_using_package_version">
|
||||||
<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.83</param>
|
<param name="package">rust1.84</param>
|
||||||
</service>
|
</service>
|
||||||
<service mode="buildtime" name="replace_using_package_version">
|
<service mode="buildtime" name="replace_using_package_version">
|
||||||
<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.83</param>
|
<param name="package">cargo1.84</param>
|
||||||
</service>
|
</service>
|
||||||
</services>
|
</services>
|
@ -1,2 +1,2 @@
|
|||||||
requires:cargo1.83
|
requires:cargo1.84
|
||||||
requires:rust1.83
|
requires:rust1.84
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 12 17:29:25 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- rust 1.84 for stable, rust 1.83 to oldstable
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 9 10:02:30 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
|
Thu Jan 9 10:02:30 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user