-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfull.yaml
More file actions
74 lines (65 loc) · 2.48 KB
/
full.yaml
File metadata and controls
74 lines (65 loc) · 2.48 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
# templates/full.yaml
# This template covers all the features available in dv templates.
# Use it as a reference when creating your own templates.
# 1. Discourse Foundation
# You can specify a branch, a PR, or even a custom repository.
discourse:
branch: main
# pr: 12345 # PR number to checkout (mutually exclusive with branch)
# repo: https://github.com/discourse/discourse.git
# 2. Git Configuration
git:
# Enable SSH agent forwarding so the container can access your private repos.
# Requires SSH_AUTH_SOCK to be set on your host.
ssh_forward: true
# allows cloning of repos at: git@github.com:your-org/private-plugin.git
# 3. Environment Variables
# These will be set inside the container for all future commands.
env:
MY_CUSTOM_VAR: "hello world"
ANOTHER_VAR: "true"
# 4. Copy Rules
# Map host files or directories into the container.
# Paths are expanded (e.g., ~) and can be relative to the workspace.
copy:
- host: "~/.gitconfig"
container: "/home/discourse/.gitconfig"
- host: "./README.md"
container: "/home/discourse/README-from-host.md"
# 5. Plugins
# Specify additional plugins to be cloned into the container.
plugins:
- repo: https://github.com/discourse/discourse-solved.git
branch: main
# path: plugins/discourse-solved # Default: plugins/<repo-name>
- repo: https://github.com/discourse/discourse-voting.git
# 6. Themes
# Install themes or theme components.
themes:
- repo: https://github.com/discourse/discourse-canvas-theme.git
name: "Canvas Theme"
auto_watch: true # Automatically start the theme watcher service
# path: /home/discourse/canvas-theme # Custom path in container
# 7. Site Settings
# Automatically set Discourse site settings after the container is ready.
# Values can be strings, numbers, or booleans.
settings:
title: "My Provisoned Discourse"
site_description: "Created via dv template"
enable_experimental_features: true
max_topic_title_length: 255
# 8. Post-Creation Commands
# Arbitrary bash commands to run inside the container during provisioning.
on_create:
- "echo 'Provisioning in progress...'"
- "sudo apt-get update && sudo apt-get install -y htop"
# 9. MCP (Model Context Protocol) Servers
# Register MCP servers for use with AI agents inside the container.
mcp:
# Stock MCP servers: "playwright", "discourse", "chrome-devtools"
- name: "playwright"
- name: "discourse"
# Custom MCP server registration
- name: "my-custom-tool"
command: "/usr/local/bin/my-mcp-server"
args: ["--option", "value"]