-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
86 lines (72 loc) · 2.67 KB
/
config.example.yaml
File metadata and controls
86 lines (72 loc) · 2.67 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# ditto Configuration
# Docker Image Tracking & Transfer Operation
# Copy this file to config.yaml and customize for your environment
# Registry configuration - where built images will be pushed
registry:
# Registry URL (without protocol)
# Examples:
# - Docker Hub: docker.io
# - GCP Artifact Registry: europe-west1-docker.pkg.dev/project-id/repository
# - AWS ECR: 123456789012.dkr.ecr.us-east-1.amazonaws.com
# - Azure ACR: myregistry.azurecr.io
url: your-registry.example.com
# Namespace/repository prefix for images
# Images will be pushed as: {url}/{namespace}/{image-name}:{tag}
namespace: "mirrors"
# Source repositories configuration
# Each source has its own repository URL and list of images to track
sources:
- name: "bigcorp"
repo_url: "https://github.com/bigcorp/containers.git"
# Optional: subdirectory in repo where images are located
# If omitted, images are expected at the repository root
base_path: "bigcorp"
images:
# Simple: monitor all versions and OS for an image
- name: "nginx"
- name: "elasticsearch"
# Advanced: specify exact versions and OS
- name: "postgresql"
# Optional: specific versions to build
# If omitted, all available versions will be built
versions: ["15", "16"]
# Optional: specific base OS to build
# If omitted, all available OS (debian-12, ubuntu-22.04, etc.) will be built
base_os: ["debian-12"]
# Second source example: Your custom containers
# - name: "custom"
# repo_url: "https://github.com/yourorg/containers.git"
# base_path: "" # Images at repository root (optional, can be omitted)
# images:
# - name: "myapp"
# versions: ["2.0", "2.1"]
# - name: "another-service"
# Monitoring configuration
monitoring:
# How often to check for new versions/changes
# Go duration format: 1h, 30m, 2h30m, etc.
# Default: 1h
check_interval: "1h"
# Build configuration
build:
# Number of parallel builds
# Default: 3
# Increase for faster processing, decrease if resource-constrained
parallel_builds: 3
# Maximum time allowed for a single build
# Go duration format: 30m, 1h, 2h, etc.
# Default: 30m
build_timeout: "30m"
# Cleanup local images after successful push
# Default: true
# Set to false if you want to keep images locally for inspection
cleanup_after_build: true
# Observability configuration
observability:
# HTTP port for health checks and metrics
# Default: 8080
# Endpoints:
# - /health : Liveness probe (healthy if no critical errors)
# - /ready : Readiness probe (ready if BuildKit + git available)
# - /metrics : Prometheus metrics
port: 8080