LogoLogo
Run to Console
  • ClawCloud Run
    • Document
    • Getting Started
      • Create a DevBox
      • Deploy Database
      • Deploy from Docker
      • Deploy from Template
    • Guide
      • App Launchpad
        • Install Application
        • Update Application
        • Custom Domain
        • Exposing Multiple Ports
        • Environment Variables
        • Configuration Files
        • Auto Scaling
        • Persistent Storage
        • Custom Domain Certificates
      • Devbox
        • Devbox List
        • Devbox Details
        • Devbox Release
      • Database
        • PostgreSQL
        • MySQL
        • Redis
        • MongoDB
        • Kafka
        • Milvus
      • Object Storage
      • Advanced
        • Workspace
        • Terminal
        • Cron Job
        • KubeConfig
    • Pricing
    • Billing & Usage
    • Migration
      • Migrate from Docker
      • Migrate from Docker Compose
    • Architecture
      • Devbox Architecture
      • System Architecture
      • User Architecture
    • Legal
      • Privacy Policy
      • Terms and Conditions
      • Data Processing Addendum
    • Changelog
    • Best Practice
    • FAQ
    • More
      • Abuse Complaint
    • Help
  • Blog
Powered by GitBook

Copyright @ 2023-Present CLAWCLOUD. All Rights Reserved.

On this page
  • Architectural Overview
  • Control Flow
  • State Persistence Mechanism

Was this helpful?

Export as PDF
  1. ClawCloud Run
  2. Architecture

Devbox Architecture

PreviousArchitectureNextSystem Architecture

Last updated 2 months ago

Was this helpful?

Clawcloud Run Devbox is an advanced development environment solution that leverages cloud-native containers and Kubernetes technology to deliver a unified and flexible development runtime. Its core feature lies in simulating a traditional virtual machine experience while retaining the advantages of containerization.

Architectural Overview

Clawcloud Run Devbox employs a layered architecture comprising the following core components:

  • Access Layer: Provides entry points via WebPage, VS Code Extension, JetBrains Gateway, and Direct API for seamless integration with developer workflows.

  • Manage Controller Layer: Orchestrates lifecycle operations (Create/Delete, TurnOn/Shutdown/Reboot), configuration management (Update/Commit), ingress access control, database metadata handling, and collaboration features (Release/Share).

  • Cluster Layer: Implements infrastructure abstractions through Kubernetes API Server, Container-Shim for runtime isolation, and a Devbox Registry interfacing with containerd and Object Storage for persistent artifact management.

Control Flow

Devbox implements a decoupled frontend-backend design:

  1. User Action: Operations are triggered by users via the web interface or IDE plugins (e.g., VS Code, JetBrains).

  2. Request Handling: The Devbox Controller receives and processes these requests.

  3. Kubernetes Integration: The controller translates processed instructions into Kubernetes API calls.

  4. Execution: Kubernetes executes corresponding container operations based on the API directives.

State Persistence Mechanism

Devbox implements an intelligent state preservation system to ensure user environment consistency:

Automatic Snapshotting

  • System automatically preserves environment changes under predefined conditions

  • Modifications are packaged as image layers

  • New layers are appended as commits to the base image

  • Updated images are securely stored in an isolated internal registry

Environment Restoration

  • During environment relaunch, the system initializes from the latest persisted image

  • Preserves the complete change history through incremental layer stacking

Optimization

Container-shim layer provides automated maintenance:

  • Periodically merges image layers for storage efficiency

  • Automatically purges redundant data artifacts

  • Optimizes image size and layer count to maintain optimal system performance

Devbox Architecture
Devbox Control Flow
Devbox State Persistence Mechanism