driver/pot: Added extra_hosts and args commands (#6577)

This commit is contained in:
ebarriosjr 2019-12-12 22:29:45 +01:00 committed by Tim Gross
parent 09067b4eb7
commit b953239227
1 changed files with 12 additions and 1 deletions

View File

@ -23,7 +23,10 @@ task "nginx-pot" {
image = "https://pot-registry.zapto.org/registry/"
pot = "FBSD120-nginx"
tag = "1.0"
command = "nginx -g 'daemon off;'"
command = "nginx"
args = [
"-g 'daemon off;'"
]
network_mode = "public-bridge"
port_map = {
http = "80"
@ -38,6 +41,10 @@ task "nginx-pot" {
mount_read_only = [
"/tmp/test2:/root/test2"
]
extra_hosts = [
"artifactory.yourdomain.com:192.168.0.1",
"mail.yourdomain.com:192.168.0.2"
]
}
}
```
@ -52,6 +59,8 @@ The pot task driver supports the following parameters:
* `command` - Command that is going to be executed once the jail is started.
* `args` - (Optional) List of options for the command executed on the command argument.
* `network_mode` - (Optional) Defines the network mode of the pot. Default: **"public-bridge"**
Possible values are:
@ -68,6 +77,8 @@ The pot task driver supports the following parameters:
* `mount_read_only` - (Optional) Mounts a read only directory inside the pot jail.
* `extra_hosts` - (Optional) A list of hosts, given as host:IP, to be added to /etc/hosts
## Client Requirements
`pot Task Driver` requires the following: