Skip to content

Commit

Permalink
driver/pot: Added extra_hosts and args commands (#6577)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebarriosjr authored and tgross committed Dec 12, 2019
1 parent 83d9225 commit ba1e66c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion website/source/docs/drivers/external/pot.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
]
}
}
```
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit ba1e66c

Please sign in to comment.