From e095a70bd60245f1c64f19df61e15efa312203d5 Mon Sep 17 00:00:00 2001 From: kobayashi Date: Tue, 21 Jul 2020 14:54:31 -0400 Subject: [PATCH] Add capabilities to task drivers' pages (#8476) --- website/pages/docs/drivers/docker.mdx | 13 +++++++++++++ website/pages/docs/drivers/exec.mdx | 13 +++++++++++++ website/pages/docs/drivers/java.mdx | 12 ++++++++++++ website/pages/docs/drivers/qemu.mdx | 12 ++++++++++++ website/pages/docs/drivers/raw_exec.mdx | 12 ++++++++++++ 5 files changed, 62 insertions(+) diff --git a/website/pages/docs/drivers/docker.mdx b/website/pages/docs/drivers/docker.mdx index 52037b633..9b2375ac8 100644 --- a/website/pages/docs/drivers/docker.mdx +++ b/website/pages/docs/drivers/docker.mdx @@ -627,6 +627,19 @@ Some networking modes like `container` or `none` will require coordination outside of Nomad. First-class support for these options may be improved later through Nomad plugins or dynamic job configuration. +## Capabilities + +The `docker` driver implements the following [capabilities](/docs/internals/plugins/task-drivers#capabilities-capabilities-error) + +| Feature | Implementation | +| --- | --- | +| SendSignals | true | +| Exec | true | +| FSIsolation | image | +| NetIsolationModes | host, group, task | +| MustInitiateNetwork | true | +| MountConfigs | all | + ## Client Requirements Nomad requires Docker to be installed and running on the host alongside the diff --git a/website/pages/docs/drivers/exec.mdx b/website/pages/docs/drivers/exec.mdx index 8aaa71979..b1a32cff6 100644 --- a/website/pages/docs/drivers/exec.mdx +++ b/website/pages/docs/drivers/exec.mdx @@ -77,6 +77,19 @@ task "example" { } ``` +## Capabilities + +The `exec` driver implements the following [capabilities](/docs/internals/plugins/task-drivers#capabilities-capabilities-error) + +| Feature | Implementation | +| --- | --- | +| SendSignals | true | +| Exec | true | +| FSIsolation | chroot | +| NetIsolationModes | host, group | +| MustInitiateNetwork | false | +| MountConfigs | all | + ## Client Requirements The `exec` driver can only be run when on Linux and running Nomad as root. diff --git a/website/pages/docs/drivers/java.mdx b/website/pages/docs/drivers/java.mdx index 06f9ea5ef..3917c28d1 100644 --- a/website/pages/docs/drivers/java.mdx +++ b/website/pages/docs/drivers/java.mdx @@ -97,6 +97,18 @@ task "web" { } ``` +## Capabilities + +The `java` driver implements the following [capabilities](/docs/internals/plugins/task-drivers#capabilities-capabilities-error) + +| Feature | Implementation | +| --- | --- | +| SendSignals | false | +| Exec | false | +| FSIsolation | none, chroot (only for linux) | +| NetIsolationModes | host, group | +| MountConfigs | none, all (only for linux) | + ## Client Requirements The `java` driver requires Java to be installed and in your system's `$PATH`. On diff --git a/website/pages/docs/drivers/qemu.mdx b/website/pages/docs/drivers/qemu.mdx index 43b476920..f4c0184f6 100644 --- a/website/pages/docs/drivers/qemu.mdx +++ b/website/pages/docs/drivers/qemu.mdx @@ -101,6 +101,18 @@ task "virtual" { } ``` +## Capabilities + +The `qemu` driver implements the following [capabilities](/docs/internals/plugins/task-drivers#capabilities-capabilities-error) + +| Feature | Implementation | +| --- | --- | +| SendSignals | false | +| Exec | false | +| FSIsolation | image | +| NetIsolationModes | none | +| MountConfigs | none | + ## Client Requirements The `qemu` driver requires Qemu to be installed and in your system's `$PATH`. diff --git a/website/pages/docs/drivers/raw_exec.mdx b/website/pages/docs/drivers/raw_exec.mdx index 581b3b3ec..0520bb1ed 100644 --- a/website/pages/docs/drivers/raw_exec.mdx +++ b/website/pages/docs/drivers/raw_exec.mdx @@ -73,6 +73,18 @@ task "example" { } ``` +## Capabilities + +The `raw_exec` driver implements the following [capabilities](/docs/internals/plugins/task-drivers#capabilities-capabilities-error) + +| Feature | Implementation | +| --- | --- | +| SendSignals | true | +| Exec | true | +| FSIsolation | none | +| NetIsolationModes | host, group | +| MountConfigs | none | + ## Client Requirements The `raw_exec` driver can run on all supported operating systems. For security