Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark more images as singleton image #2302

Merged
merged 6 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bci_build/package/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ def build_name(self) -> str | None:
if self.stability_tag:
build_name = f"{self.registry_prefix}/{self.name}-{self.stability_tag}"
if self.is_singleton_image:
build_name = build_name.partition(":")[0]
build_name = build_name.rpartition("-")[0]
return build_name.replace("/", ":").replace(":", "-")

return None
Expand Down
1 change: 1 addition & 0 deletions src/bci_build/package/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
custom_description="A micro environment with Git {based_on_container}.",
from_target_image=generate_from_image_tag(os_version, "bci-micro"),
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
is_singleton_image=True,
version="%%git_version%%",
tag_version=format_version(
git_version := get_pkg_version("git", os_version), ParseVersion.MINOR
Expand Down
1 change: 1 addition & 0 deletions src/bci_build/package/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
exclusive_arch=[Arch.AARCH64, Arch.PPC64LE, Arch.S390X, Arch.X86_64],
os_version=os_version,
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
is_singleton_image=True,
version="%%helm_version%%",
tag_version=format_version(
helm_ver := get_pkg_version("helm", os_version), ParseVersion.MINOR
Expand Down
1 change: 1 addition & 0 deletions src/bci_build/package/kiwi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def generate_kiwi_10_config():
custom_description="{pretty_name} container {based_on_container}. {privileged_only}",
os_version=os_version,
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
is_singleton_image=True,
# kiwi is not L3 supported
# support_level=SupportLevel.L3,
version="%%kiwi_version%%",
Expand Down
1 change: 1 addition & 0 deletions src/bci_build/package/spack.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
custom_description="{pretty_name} container for building containerized HPC solution stacks, {based_on_container}.",
os_version=os_version,
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
is_singleton_image=True,
logo_url="https://spack.io/assets/images/spack-logo-white.svg",
version=(spack_pkg_version := get_pkg_version("spack", os_version)),
tag_version=format_version(spack_pkg_version, ParseVersion.MINOR),
Expand Down
1 change: 1 addition & 0 deletions src/bci_build/package/stunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
from_target_image=generate_from_image_tag(os_version, "bci-micro"),
version=(stunnel_version_re := "%%stunnel_re%%"),
is_singleton_image=True,
pretty_name="Stunnel",
package_list=["stunnel"],
replacements_via_service=[
Expand Down
Loading