Files
Tomas DvorakandDevin 3664eaed1a feat(services): clone/move ops + owner-scoped registry credentials (C4)
Service lifecycle: POST /services/:id/clone duplicates config, volumes,
domains, access gates, builder settings, and variables (secret ciphertext
copied verbatim); POST /services/:id/move re-parents to another owned
project. Both enforce ownership, reject name conflicts, and audit.

Registries: CRUD at /registries — host-matched pull credentials for
prebuilt-image deploys, encrypted at rest via secrets pkg, never returned
(has_password flag). Empty password on update keeps the stored credential;
host normalized (scheme/case/trailing slash). Credentials thread through
BuildConfig → BuildRequest → pull auth config, used only for the pull.

Surfaces: CLI services clone|move + registries group, 7 MCP tools,
OpenAPI paths/schemas, frontend Lifecycle card (clone/move/delete) and
Settings registries section, llms.txt + CLI.md.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-08 17:21:27 +02:00
..
2026-09-17 20:32:22 +02:00

Railpack Integration

This directory contains the build system for Containr, with Railpack as the primary build method.

Build Types

Railpack (Primary)

  • Detection: Automatically detects supported frameworks (Node.js, Python, Go, Rust, Java, Ruby, PHP, Static)
  • API: Uses https://api.railpack.app/v1/ for Dockerfile generation
  • Fallback: Falls back to Nixpacks if Railpack cannot build the project

Nixpacks (Secondary)

  • Detection: Used as fallback when Railpack detection fails
  • Local: Runs locally without external API calls

Dockerfile

  • Detection: Checks for existing Dockerfile in repository
  • Priority: Highest priority if Dockerfile exists

Prebuilt

  • Usage: For pre-built container images
  • Configuration: Specified in service configuration

Supported Frameworks

Railpack supports the following frameworks:

  • Node.js - package.json detection
  • Python - requirements.txt detection
  • Go - go.mod detection
  • Rust - Cargo.toml detection
  • Java - pom.xml or build.gradle detection
  • Ruby - Gemfile detection
  • PHP - composer.json detection
  • Static - Static site detection

Usage

// Create build manager
buildManager := build.NewBuildManager("/tmp/builds", dockerClient)

// Build a project
response, err := buildManager.Build(ctx, &types.BuildRequest{
    SourcePath: "/path/to/project",
    ImageName:  "my-app",
    ImageTag:   "latest",
})

API Endpoints

Configuration

Railpack can be configured with:

  • Custom build commands
  • Custom start commands
  • Environment variables
  • Build root directory

References