forked from pool/rust-stable-image
Compare commits
92 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
a8e39328d8 | ||
16b2792b63 | |||
|
892fc929f4 | ||
6835c74a39 | |||
|
16dd9c57e6 | ||
530bbc9039 | |||
|
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 | |||
|
f457864130 | ||
86badeeb3f | |||
60207cc612 | |||
1fd7144098 | |||
86cea99876 | |||
55d8044c95 | |||
708139b78b | |||
f9c6d7a89d | |||
dddaa25726 | |||
44d704169e | |||
59ed32bf0f | |||
f77e14d660 | |||
a064a71c0a | |||
|
c26477cb78 | ||
6845813d58 | |||
|
23eaf7a62d | ||
224628571d | |||
|
402cdb43ec | ||
6d335a09b3 | |||
|
4cb681de16 | ||
72352b4623 | |||
|
9a966f3282 | ||
602fbb8913 | |||
|
4eae2a85ba | ||
d42975168f | |||
|
85bb4a1e64 | ||
957e671708 | |||
8bd773f033 | |||
c0293fc514 | |||
|
f24a6a09c4 | ||
|
a7ba35c073 | ||
29ca9b5188 | |||
cdfe4a255e | |||
|
7362199d68 | ||
66f5b50bc6 | |||
|
98a6f83420 | ||
2cb2b2adbb | |||
|
f123dd83a1 | ||
110faad1f9 | |||
|
8af32940c4 | ||
f5f98526c7 | |||
f3de1fd55f | |||
ee7ef7d691 | |||
|
71c484d018 | ||
274b39e786 | |||
|
5a4ed4a199 | ||
7a0f4162bb | |||
|
4a779c8b66 | ||
c1ca1d7fdc | |||
35b884ff29 | |||
9c96180346 | |||
41664167e4 | |||
|
abdd68d2fc | ||
22984dd27c | |||
dc4111e5a0 | |||
6b6b7058de | |||
8bfe5b797f | |||
96ccae113d | |||
5d66d3c3a5 | |||
34e4eedafa |
24
Dockerfile
24
Dockerfile
@ -1,6 +1,6 @@
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -13,31 +13,33 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
# 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:1.80
|
||||
#!BuildTag: opensuse/bci/rust:1.80-1.%RELEASE%
|
||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
|
||||
#!BuildTag: opensuse/bci/rust:stable
|
||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%-1.%RELEASE%
|
||||
#!BuildTag: opensuse/bci/rust:%%RUST_VERSION%%
|
||||
#!BuildTag: opensuse/bci/rust:1.84
|
||||
#!BuildTag: opensuse/bci/rust: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.84 cargo1.84; \
|
||||
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.authors="openSUSE (https://www.opensuse.org/)"
|
||||
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.title="openSUSE Tumbleweed BCI Rust 1.84"
|
||||
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.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.opencontainers.image.ref.name="1.80-1.%RELEASE%"
|
||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:1.80-1.%RELEASE%"
|
||||
LABEL org.opencontainers.image.ref.name="%%RUST_VERSION%%-1.%RELEASE%"
|
||||
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/bci/rust:%%RUST_VERSION%%-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"
|
||||
|
10
README.md
10
README.md
@ -1,4 +1,4 @@
|
||||
# Rust 1.80 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:
|
||||
|
||||
```Dockerfile
|
||||
# Build the application using the Rust 1.80 container image
|
||||
FROM registry.opensuse.org/opensuse/bci/rust:1.80 as build
|
||||
# Build the application using the Rust 1.84 container image
|
||||
FROM registry.opensuse.org/opensuse/bci/rust:1.84 as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -21,7 +21,7 @@ COPY . ./
|
||||
RUN cargo build --release
|
||||
|
||||
# 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
|
||||
|
||||
@ -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.80 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`.
|
||||
|
8
_service
8
_service
@ -1,14 +1,14 @@
|
||||
<services>
|
||||
<service mode="buildtime" name="docker_label_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="regex">%%RUST_VERSION%%</param>
|
||||
<param name="package">rust1.80</param>
|
||||
<param name="package">rust1.84</param>
|
||||
</service>
|
||||
<service name="replace_using_package_version" mode="buildtime">
|
||||
<service mode="buildtime" name="replace_using_package_version">
|
||||
<param name="file">Dockerfile</param>
|
||||
<param name="regex">%%CARGO_VERSION%%</param>
|
||||
<param name="package">cargo1.80</param>
|
||||
<param name="package">cargo1.84</param>
|
||||
</service>
|
||||
</services>
|
@ -1,2 +1,2 @@
|
||||
requires:cargo1.80
|
||||
requires:rust1.80
|
||||
requires:cargo1.84
|
||||
requires:rust1.84
|
||||
|
@ -1,3 +1,78 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- 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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user