Skip to content

Commit

Permalink
Test build for #2146
Browse files Browse the repository at this point in the history
  • Loading branch information
SUSE Update Bot committed Dec 19, 2024
1 parent 3c1099e commit f124377
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions rust-oldstable-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
#!BuildTag: opensuse/bci/rust:oldstable
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-2.%RELEASE%
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
#!BuildTag: opensuse/bci/rust:1.81
#!BuildTag: opensuse/bci/rust:1.82

FROM opensuse/tumbleweed:latest

RUN set -euo pipefail; \
zypper -n install --no-recommends rust1.81 cargo1.81; \
zypper -n install --no-recommends rust1.82 cargo1.82; \
zypper -n clean; \
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
# labelprefix=org.opensuse.bci.rust
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.81"
LABEL org.opencontainers.image.description="Rust 1.81 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.82"
LABEL org.opencontainers.image.description="Rust 1.82 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="%%RUST_VERSION%%"
LABEL org.opencontainers.image.url="https://www.opensuse.org"
LABEL org.opencontainers.image.created="%BUILDTIME%"
Expand Down
8 changes: 4 additions & 4 deletions rust-oldstable-image/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rust 1.81 Container Image
# Rust 1.82 Container Image

![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)

Expand All @@ -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.81 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.81 as build
# Build the application using the Rust 1.82 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.82 as build

WORKDIR /app

Expand Down Expand Up @@ -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.81 cargo build --release
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.82 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`.
Expand Down
4 changes: 2 additions & 2 deletions rust-oldstable-image/_service
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<service mode="buildtime" name="replace_using_package_version">
<param name="file">Dockerfile</param>
<param name="regex">%%RUST_VERSION%%</param>
<param name="package">rust1.81</param>
<param name="package">rust1.82</param>
</service>
<service mode="buildtime" name="replace_using_package_version">
<param name="file">Dockerfile</param>
<param name="regex">%%CARGO_VERSION%%</param>
<param name="package">cargo1.81</param>
<param name="package">cargo1.82</param>
</service>
</services>
4 changes: 2 additions & 2 deletions rust-oldstable-image/rust-and-cargo-pin.check
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requires:cargo1.81
requires:rust1.81
requires:cargo1.82
requires:rust1.82
8 changes: 4 additions & 4 deletions rust-stable-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
#!BuildTag: opensuse/bci/rust:stable
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-1.%RELEASE%
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
#!BuildTag: opensuse/bci/rust:1.82
#!BuildTag: opensuse/bci/rust:1.83
#!BuildTag: opensuse/bci/rust:latest

FROM opensuse/tumbleweed:latest

RUN set -euo pipefail; \
zypper -n install --no-recommends rust1.82 cargo1.82; \
zypper -n install --no-recommends rust1.83 cargo1.83; \
zypper -n clean; \
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
# labelprefix=org.opensuse.bci.rust
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.82"
LABEL org.opencontainers.image.description="Rust 1.82 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.83"
LABEL org.opencontainers.image.description="Rust 1.83 container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="%%RUST_VERSION%%"
LABEL org.opencontainers.image.url="https://www.opensuse.org"
LABEL org.opencontainers.image.created="%BUILDTIME%"
Expand Down
8 changes: 4 additions & 4 deletions rust-stable-image/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Rust 1.82 Container Image
# Rust 1.83 Container Image

![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)

Expand All @@ -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.82 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.82 as build
# Build the application using the Rust 1.83 container image
FROM registry.opensuse.org/opensuse/bci/rust:1.83 as build

WORKDIR /app

Expand Down Expand Up @@ -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.82 cargo build --release
$ podman run --rm -v "$PWD":/app:Z -w /app registry.opensuse.org/opensuse/bci/rust:1.83 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`.
Expand Down
4 changes: 2 additions & 2 deletions rust-stable-image/_service
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<service mode="buildtime" name="replace_using_package_version">
<param name="file">Dockerfile</param>
<param name="regex">%%RUST_VERSION%%</param>
<param name="package">rust1.82</param>
<param name="package">rust1.83</param>
</service>
<service mode="buildtime" name="replace_using_package_version">
<param name="file">Dockerfile</param>
<param name="regex">%%CARGO_VERSION%%</param>
<param name="package">cargo1.82</param>
<param name="package">cargo1.83</param>
</service>
</services>
4 changes: 2 additions & 2 deletions rust-stable-image/rust-and-cargo-pin.check
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
requires:cargo1.82
requires:rust1.82
requires:cargo1.83
requires:rust1.83

0 comments on commit f124377

Please sign in to comment.