Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyang committed Jul 31, 2019
1 parent c3fa98b commit 6980c39
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,16 @@ docker {
username = "_args.reg_user"
password = "_args.reg_pass"
}
caporal {
host = "your deployed caporal host"
name = "container name your want to start or update"
opts {
// the -p flag of docker run
publish = ["8080:8080"]
// the network flag of docker run
network = ""
}
}
}
```

Expand All @@ -206,6 +216,9 @@ In a further version, i will integrate a remote api-server for scheduling contai
module.For teams already built there k8s cluster, there is no need, but for some small teams
a strong and simple docker scheduler is necessary.

[caporal](https://github.com/deoops-net/caporal) is an early version of container scheduling api server, basiclly it's now only support simple jobs
like run or update a container remotely.but it will be under development for more features.

### Plugin

**Not Implemented**
Expand All @@ -219,5 +232,5 @@ For some advanced template features, you can follow the [pongo2](https://github.

### Get Support

* if you have questions when using this tool, feel free to send me a email: `[email protected].`
* if you have questions when using this tool, feel free to send me an email: `[email protected].`

13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,26 @@ docker {
username = "_args.reg_user"
password = "_args.reg_pass"
}
caporal {
host = "your deployed caporal host"
name = "container name your want to start or update"
opts {
// the -p flag of docker run
publish = ["8080:8080"]
// the network flag of docker run
network = ""
}
}
}
```

这里我们引入了一个新的内置变量`_args`,此变量用于获取从命令行传递的参数并传递给模板。由于一些敏感信息不适合在
文档中记录,所以我们可以把这些数据通过命令行参数隐式的传递给dotam,dotam将会通过内置对象_args向下传递。所以
上面的配置的命令行命令看起来应该是这样:

[caporal](https://github.com/deoops-net/caporal)目前还是一个早期的版本,主要用来提供一个远程的api server来帮助我们运行和更新我们的容器服务,虽然
现在功能还比较简单,但是这个项目还在持续的开发中,相信越来越多的功能将会集成进来。

```bash
$ dotam build reg_user=tom reg_pass=password
```
Expand Down

0 comments on commit 6980c39

Please sign in to comment.