forked from pool/rust-stable-image
Compare commits
26 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
8bf38327d7 | ||
6d885e701f | |||
|
25b62e19df | ||
450daa06c2 | |||
|
61cfe37af8 | ||
544db75253 | |||
|
29955afa03 | ||
78d0bbdcc1 | |||
|
dc7b90d16e | ||
|
739195397d | ||
f2168a2117 | |||
9495b0171c | |||
|
c1d1b8f1bc | ||
448bfdb6cb | |||
|
bbbcaecfdc | ||
8c4f1304bc | |||
|
14fb7a3b2e | ||
f108c43f37 | |||
|
b206981563 | ||
|
1e3e654159 | ||
83d8b4cec8 | |||
3b41eb70ba | |||
1ef523d9c5 | |||
820567265b | |||
|
c7a2e6d507 | ||
2233103ac1 |
24
Dockerfile
24
Dockerfile
@ -1,6 +1,6 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
|
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -13,31 +13,33 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
||||||
|
|
||||||
|
#!UseOBSRepositories
|
||||||
|
|
||||||
#!BuildTag: opensuse/bci/rust:stable
|
|
||||||
#!BuildTag: opensuse/bci/rust:stable-1.%RELEASE%
|
#!BuildTag: opensuse/bci/rust:stable-1.%RELEASE%
|
||||||
#!BuildTag: opensuse/bci/rust:1.80
|
#!BuildTag: opensuse/bci/rust:stable
|
||||||
#!BuildTag: opensuse/bci/rust:1.80-1.%RELEASE%
|
|
||||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
|
|
||||||
#!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:1.83
|
||||||
#!BuildTag: opensuse/bci/rust:latest
|
#!BuildTag: opensuse/bci/rust:latest
|
||||||
|
|
||||||
FROM opensuse/tumbleweed:latest
|
FROM opensuse/tumbleweed:latest
|
||||||
|
|
||||||
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}
|
RUN set -euo pipefail; \
|
||||||
|
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
|
# 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.authors="openSUSE (https://www.opensuse.org/)"
|
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.83"
|
||||||
LABEL org.opencontainers.image.title="openSUSE Tumbleweed BCI Rust 1.80"
|
LABEL org.opencontainers.image.description="Rust 1.83 container based on the openSUSE Tumbleweed Base Container Image."
|
||||||
LABEL org.opencontainers.image.description="Rust 1.80 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%"
|
||||||
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.opencontainers.image.ref.name="1.80-1.%RELEASE%"
|
LABEL org.opencontainers.image.ref.name="%%RUST_VERSION%%-1.%RELEASE%"
|
||||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.80-1.%RELEASE%"
|
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:%%RUST_VERSION%%-1.%RELEASE%"
|
||||||
LABEL org.openbuildservice.disturl="%DISTURL%"
|
LABEL org.openbuildservice.disturl="%DISTURL%"
|
||||||
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
|
LABEL org.opensuse.lifecycle-url="https://en.opensuse.org/Lifetime#openSUSE_BCI"
|
||||||
LABEL org.opensuse.release-stage="released"
|
LABEL org.opensuse.release-stage="released"
|
||||||
|
10
README.md
10
README.md
@ -1,4 +1,4 @@
|
|||||||
# Rust 1.80 Container Image
|
# Rust 1.83 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.83 container image
|
||||||
FROM registry.opensuse.org/opensuse/bci/rust:1.80 as build
|
FROM registry.opensuse.org/opensuse/bci/rust:1.83 as build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ COPY . ./
|
|||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
# Bundle the application into a BCI micro (or other BCI image)
|
# Bundle the application into a BCI micro (or other BCI image)
|
||||||
FROM registry.suse.com/bci/bci-micro:latest
|
FROM registry.opensuse.org/opensuse/bci/bci-micro:latest
|
||||||
|
|
||||||
COPY --from=build /app/target/release/hello /usr/local/bin/hello
|
COPY --from=build /app/target/release/hello /usr/local/bin/hello
|
||||||
|
|
||||||
@ -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.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`.
|
**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`.
|
||||||
|
8
_service
8
_service
@ -1,14 +1,14 @@
|
|||||||
<services>
|
<services>
|
||||||
<service mode="buildtime" name="docker_label_helper"/>
|
<service mode="buildtime" name="docker_label_helper"/>
|
||||||
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
||||||
<service name="replace_using_package_version" mode="buildtime">
|
<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.80</param>
|
<param name="package">rust1.83</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="replace_using_package_version" mode="buildtime">
|
<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.80</param>
|
<param name="package">cargo1.83</param>
|
||||||
</service>
|
</service>
|
||||||
</services>
|
</services>
|
@ -1,2 +1,2 @@
|
|||||||
requires:cargo1.80
|
requires:cargo1.83
|
||||||
requires:rust1.80
|
requires:rust1.83
|
||||||
|
@ -1,3 +1,73 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 10:02:30 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- rust 1.83 as stable, 1.82 as oldstable
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 1 14:13:48 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- update copyright year
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 3 13:26:38 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- Change attribute order in _service
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 4 13:48:26 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- Bump Rust version to 1.82
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- remove nonsensical org.opencontainers.image.authors - duplication of .vendor
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 29 15:23:20 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- drop tag_version-%RELEASE%
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 14 11:26:26 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- make the version-%release tag the first one listed; remove duplicates where they existed; update image.ref/reference to point to the version-%release(-) tag
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 11 15:12:52 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
|
||||||
|
|
||||||
|
- make the tag with -%RELEASE% the first tag listed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 28 08:15:08 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- fix registry references in READMEs
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 17:36:16 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- rerender installation step in multiple lines, allow uninstalling optional packages
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 25 17:12:11 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- improved log cleaning
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 20:00:32 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- remove release tags for additional_versions
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 24 13:14:58 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- rust 1.81 for stable, rust 1.80 for oldstable
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 12 10:37:22 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- set useobsrepositories explicitly
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 6 11:30:01 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
Fri Sep 6 11:30:01 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user