# scenario字段定义 | 字段 | 类型 | 默认值 | 说明 | | ---- | ---- | ---- | ---- | | title | string | "" | 场景打开时显示的标题 | | description | string | "" | 场景的描述 | | shell | string | "/bin/sh" | 指定终端使用*/bin/sh*还是*/bin/bash* | | docker_endpoint | string | "" | 所使用的docker容器服务的提供方,不指定则使用当前gitcourse服务方所提供的全局地址 | | environment | string | "null" | 本场景所使用的docker容器镜像 | | steps | array | [] | 场景的步骤,将会按顺序逐个进行解析,以供学员分步骤完成本场景的学习 | 在本章的GitCourse示例中,其基础字段的填写方法为: ``` { "title": "Gitcours配置文件详解:基础部分", "shell":"/bin/bash", "environment": "registry.cn-hangzhou.aliyuncs.com/envs/gitcourse:test", "description": "接下来,将学习如何填写gitcourse的配置文件。首先是基础部分", "steps": [...(略)...] } ``` 其中steps是一个列表,定义了本场景所具有的步骤,将在下一节进行详细说明