Skip to content

Commit

Permalink
Experimental Helm Application container
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller committed Jul 5, 2023
1 parent 963c64e commit dcf3ad7
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/bci_build/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,38 @@ def _create_php_bci(
for os_version in ALL_NONBASE_OS_VERSIONS
]

HELM_CONTAINERS = [
ApplicationStackContainer(
name="helm",
pretty_name="Kubernetes Package Manager",
package_name="helm-image",
from_image=f"{_build_tag_prefix(os_version)}/bci-micro:{OsContainer.version_to_container_os_version(os_version)}",
os_version=os_version,
is_latest=os_version in CAN_BE_LATEST_OS_VERSION,
version="%%helm_version%%",
version_in_uid=False,
replacements_via_service=[
Replacement(
regex_in_build_description="%%helm_version%%",
package_name="helm",
parse_version="minor",
)
],
license="Apache-2.0",
package_list=[
Package(name, pkg_type=PackageType.BOOTSTRAP)
for name in (
"ca-certificates-mozilla",
"helm",
)
],
entrypoint=["/usr/bin/helm"],
cmd=[""],
build_recipe_type=BuildType.KIWI,
)
for os_version in ALL_NONBASE_OS_VERSIONS
]

ALL_CONTAINER_IMAGE_NAMES: Dict[str, BaseContainerImage] = {
f"{bci.uid}-{bci.os_version.pretty_print.lower()}": bci
for bci in (
Expand All @@ -2403,6 +2435,7 @@ def _create_php_bci(
*NGINX_CONTAINERS,
*PCP_CONTAINERS,
*REGISTRY_CONTAINERS,
*HELM_CONTAINERS,
*RMT_CONTAINERS,
*RUST_CONTAINERS,
*GOLANG_IMAGES,
Expand Down

0 comments on commit dcf3ad7

Please sign in to comment.