Capella Trainer is a tool for creating interactive training materials for the Capella modeling tool. It allows you to create lessons containing text, images, and interactive exercises (model checks using capellambse and quizzes).
- Make sure you have docker and make installed
- Clone the repository
- Get or create a training
- Put the training in the
training
folder - You can also edit the
docker-compose.yml
file to use a different training
- Put the training in the
- Download the Capella Dropin using
make download-capella-dropins
- Start the docker container:
docker-compose up
- Open http://localhost:8000 in your browser
- Make sure you have docker, make, python 3.12 and node 22 installed
- Enable corepack using
corepack enable
- Clone the repository
- Get or create a training
- Put the training in the
training
folder
- Put the training in the
- Install the dependencies:
make install
- Start the development server:
make dev
- Open http://localhost:5173 in your browser
Check the authoring guide for information on how to create your own training materials.
The Capella Trainer can be integrated into the Capella Collaboration Manager.
To do so, you have to be administrator in a running instance of the Capella Collaboration Manager.
Navigate to Menu
> Settings
> Tools
> Add a new tool
and fill in the following configuration:
name: Training Controller
config:
resources:
cpu:
requests: 0.4
limits: 2
memory:
requests: 1.6Gi
limits: 6Gi
environment: {}
connection:
methods:
- id: http
type: http
name: Browser Connection
ports:
metrics: 9118
http: 8000
environment:
API_BASE: "{CAPELLACOLLAB_SESSIONS_BASE_PATH}"
ROUTE_PREFIX: "{CAPELLACOLLAB_SESSIONS_BASE_PATH}"
TRAINING_DIR:
stage: before
value: "{CAPELLACOLLAB_SESSION_PROVISIONING[0][path]}"
HOST_FRONTEND: "TRUE"
sharing:
enabled: false
redirect_url: "{CAPELLACOLLAB_SESSIONS_SCHEME}://{CAPELLACOLLAB_SESSIONS_HOST}:{CAPELLACOLLAB_SESSIONS_PORT}{CAPELLACOLLAB_SESSIONS_BASE_PATH}/"
cookies: {}
monitoring:
prometheus:
path: /prometheus
provisioning:
directory: /models
max_number_of_models: 1
required: true
persistent_workspaces:
mounting_enabled: true
supported_project_types:
- training
After saving the configuration, you have to add a version for the new tool:
name: "Latest"
config:
is_recommended: true
is_deprecated: false
sessions:
persistent:
image: ghcr.io/dsd-dbs/capella-trainer/capella-trainer:main
backups:
image: null
We'd love to see your bug reports and improvement suggestions! Please take a look at our guidelines for contributors for details.
This project is compliant with the REUSE Specification Version 3.0.
Copyright DB InfraGO AG, licensed under Apache 2.0 (see full text in LICENSES/Apache-2.0.txt)
Dot-files are licensed under CC0-1.0 (see full text in LICENSES/CC0-1.0.txt)