# --- Image / build ---
# Override prefix when pushing to a private registry (e.g. registry.example.com/)
GLOBAL_REGISTRY=
# Tag of the locally built image
CUBE_SANDBOX_VERSION=0.1.7
# Base image for the wrapper container.
# Default works globally. In mainland China, override with a regional mirror:
#   UBUNTU_IMAGE=docker.m.daocloud.io/library/ubuntu:22.04
#   UBUNTU_IMAGE=ccr.ccs.tencentyun.com/library/ubuntu:22.04
UBUNTU_IMAGE=ubuntu:22.04

# --- Runtime ---
# Timezone inside the container
TZ=Asia/Shanghai

# Mirror used by the upstream installer:
#   cn  -> https://cnb.cool/CubeSandbox + Tencent Cloud container registry (recommended in China)
#   gh  -> https://github.com (slower in China but works elsewhere)
CUBE_MIRROR=cn

# Size of the XFS-formatted loop file mounted at /data/cubelet inside the
# container. install.sh hard-requires XFS; the file lives on the cube_data
# named volume so it persists across container restarts.
CUBE_XFS_SIZE=50G

# Set to 1 to force re-running install.sh on next start
CUBE_FORCE_REINSTALL=0

# --- Resources ---
# CubeSandbox runs MySQL + Redis + CubeProxy + CoreDNS + CubeMaster + CubeAPI +
# Cubelet + network-agent inside the wrapper container, then spawns MicroVMs.
# Give it enough headroom; 16 GiB / 8 vCPU is a comfortable single-node default.
CUBE_CPU_LIMIT=8.0
CUBE_MEMORY_LIMIT=16G
CUBE_CPU_RESERVATION=0.1
CUBE_MEMORY_RESERVATION=8G