Skip to content

Commit ae425f0

Browse files
akramelezar
authored andcommitted
feat(sandbox): default to official Alpine sandbox image
default_sandbox_image() now returns docker.io/library/alpine:3.22, a generic version-qualified official image, so a fresh install no longer depends on the community sandbox image catalog. All compute drivers (docker, podman, kubernetes, vm) inherit this fallback. Part of #3116. Signed-off-by: Akram Signed-off-by: Akram <[email protected]>
1 parent 251f77e commit ae425f0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎crates/openshell-core/src/image.rs‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@
1313
/// Override at runtime with the `OPENSHELL_COMMUNITY_REGISTRY` env var.
1414
pub const DEFAULT_COMMUNITY_REGISTRY: &str = "ghcr.io/nvidia/openshell-community/sandboxes";
1515

16-
/// Return the default sandbox image reference (`{registry}/base:latest`).
16+
/// Default sandbox base image reference.
17+
///
18+
/// A generic, version-qualified official Alpine image so a fresh install does
19+
/// not depend on the community image catalog.
20+
pub const DEFAULT_SANDBOX_BASE_IMAGE: &str = "docker.io/library/alpine:3.22";
21+
22+
/// Return the default sandbox image reference.
1723
///
1824
/// Used by all compute drivers as the fallback image when none is specified in
1925
/// the sandbox spec.
2026
#[must_use]
2127
pub fn default_sandbox_image() -> String {
22-
format!("{DEFAULT_COMMUNITY_REGISTRY}/base:latest")
28+
DEFAULT_SANDBOX_BASE_IMAGE.to_string()
2329
}
2430

2531
/// Resolve a user-supplied image string into a fully-qualified reference.

0 commit comments

Comments
 (0)