1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Embedded Dockerfile content
//!
//! This module contains the Dockerfile for building the opencode-cloud-sandbox
//! container image, embedded at compile time for distribution with the CLI.
//!
//! Note: The image is named "opencode-cloud-sandbox" (not "opencode-cloud") to
//! clearly indicate this is the sandboxed container environment that the
//! opencode-cloud CLI deploys, not the CLI tool itself.
/// The Dockerfile for building the opencode-cloud-sandbox container image
pub const DOCKERFILE: &str = include_str!;
// =============================================================================
// Docker Image Naming
// =============================================================================
//
// Docker images follow the naming convention: [registry/]namespace/image[:tag]
//
// - Registry: The server hosting the image (e.g., ghcr.io, gcr.io, docker.io)
// When omitted, Docker Hub (docker.io) is assumed.
// - Namespace: Usually the username or organization (e.g., prizz)
// - Image: The image name (e.g., opencode-cloud-sandbox)
// - Tag: Version identifier (e.g., latest, v1.0.0). Defaults to "latest" if omitted.
//
// Examples:
// ghcr.io/prizz/opencode-cloud-sandbox:latest - GitHub Container Registry
// prizz/opencode-cloud-sandbox:latest - Docker Hub (registry omitted)
// gcr.io/my-project/myapp:v1.0 - Google Container Registry
//
// We publish to both GHCR (primary) and Docker Hub for maximum accessibility.
// =============================================================================
/// Docker image name for GitHub Container Registry (primary registry)
///
/// Format: `ghcr.io/{github-username}/{image-name}`
pub const IMAGE_NAME_GHCR: &str = "ghcr.io/prizz/opencode-cloud-sandbox";
/// Docker image name for Docker Hub (secondary registry)
///
/// Format: `{dockerhub-username}/{image-name}` (registry prefix omitted for Docker Hub)
pub const IMAGE_NAME_DOCKERHUB: &str = "prizz/opencode-cloud-sandbox";
/// Default image tag
pub const IMAGE_TAG_DEFAULT: &str = "latest";