capsule AI-native Unix-like composition layer

capsule.yaml

1,850 bytes · 45 lines · capsule://quake0day/[email protected] raw on github

apiVersion: capsule.dev/v0.1
kind: Capsule
name: cverse-deployment-templates
version: 0.1.0
type: template
purpose:
  summary: 'Provides Dockerfiles, Docker Compose configurations, and Nginx configurations
    for deploying the CyberVerse application. This capsule serves as a starting point
    for setting up the production environment.

    '
  owns:
  - Dockerfiles for frontend, Go server, and Python inference
  - Docker Compose setup for multi-service deployment
  - Nginx configurations for reverse proxy and static file serving
  - Example environment and configuration files
  does_not_own:
  - The application code itself
  - Runtime configuration values (only examples)
agent:
  summary_for_ai: 'An AI agent working on this capsule would focus on adapting deployment
    configurations for different cloud providers, optimizing Docker images, or integrating
    with CI/CD pipelines. It requires knowledge of Docker, Nginx, and cloud infrastructure.

    '
  avoid:
  - Modifying application code within this capsule.
  - Hardcoding sensitive credentials.
verification:
  invariants:
  - Dockerfiles must be buildable and produce functional images.
  - Docker Compose must correctly orchestrate services.
  - Nginx configuration must correctly route traffic and serve static files.
x-reuse:
  notes: '`infra/cyberverse_config.example.yaml` contains all project-specific configuration
    examples that need to be replaced with actual values. `infra/nginx.www.cyberverse.cc.conf`
    has hardcoded domain `www.cyberverse.cc` and assumes Let''s Encrypt certificate
    paths, which need to be updated for a new domain or certificate provider. Dockerfiles
    are specific to the current project''s build processes and dependencies and may
    need adjustments for different project structures.

    '
x-reconstruct:
  install: install.json