-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from sevensolutions/feature/website
Feature/website
- Loading branch information
Showing
18 changed files
with
321 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"label": "Features", | ||
"position": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
sidebar_position: 2 | ||
--- | ||
|
||
# 🌎 Environment Variables | ||
|
||
All System Environment Variables, available to the Nomad Client, will be applied to the Application Pool. | ||
You can supply additional ones by using the [`env` Block](https://developer.hashicorp.com/nomad/docs/job-specification/env) in the `task` stanza. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
sidebar_position: 5 | ||
--- | ||
|
||
# 🌐 Using an existing Website | ||
|
||
By specifying a *target_website* in the task configuration you can re-use an existing website managed outside of nomad. | ||
In this case the driver will not create a new website but instead use the existing one where it provisions the virtual applications only. | ||
|
||
Note that there're a few restrictions when using a target_website: | ||
|
||
- The feature [needs to be enabled](../getting-started/driver-configuration.md). | ||
- Re-using an existing website managed by nomad (owned by a different job or task), is not allowed. | ||
- Bindings and other website-related configuration will have no effect. | ||
- You need to make sure you constrain your jobs to nodes having this target_website available, otherwise the job will fail. | ||
- You cannot create a root-application when using a target_website. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
sidebar_position: 4 | ||
--- | ||
|
||
# 🛡 Filesystem Isolation | ||
|
||
Because there is no `chroot` on Windows, filesystem isolation is only handled via permissions. | ||
For every AppPool, IIS creates a dedicated AppPool Service Account which is only allowed to access it's own directories. See commits of [GH-5](https://github.com/sevensolutions/nomad-iis/issues/5) for details. | ||
|
||
Given a job spec with two tasks, the following table depicts the permissions for each AppPool *task1* and *task2* inside the [allocation directory](https://developer.hashicorp.com/nomad/docs/concepts/filesystem). | ||
|
||
| Directory | Access Level | | ||
|---|---| | ||
| `/alloc` | No Access | | ||
| `/alloc/data` | Full Access for *task1* and *task2* | | ||
| `/alloc/logs` | Full Access for *task1* and *task2* | | ||
| `/alloc/tmp` | Full Access for *task1* and *task2* | | ||
| `/task1/local` | Full Access for *task1* | | ||
| `/task1/private` | No Access | | ||
| `/task1/secrets` | Read Only for *task1*, No Access for *task2*, no file listing | | ||
| `/task1/tmp` | Full Access for *task1* | | ||
| `/task2/local` | Full Access for *task2* | | ||
| `/task2/private` | No Access | | ||
| `/task2/secrets` | Read Only for *task2*, No Access for *task1*, no file listing | | ||
| `/task2/tmp` | Full Access for *task2* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
|
||
# Features | ||
|
||
This section contains detailed information about all the features supported by *Nomad IIS*. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
sidebar_position: 3 | ||
--- | ||
|
||
# ✨ Signals | ||
|
||
The Nomad IIS driver supports the following signals: | ||
|
||
| Signal | Description | | ||
|---|---| | ||
| `SIGHUP` or `RECYCLE` | Recycles the Application Pool | | ||
| `SIGINT` or `SIGKILL` | Stops and removes the Application. Note: When sending this signal manually, the job gets re-scheduled. | | ||
|
||
To send a *RECYCLE* signal, run: | ||
|
||
``` | ||
nomad alloc signal -s RECYCLE <allocation> <task> | ||
``` | ||
|
||
Details about the command can be found [here](https://developer.hashicorp.com/nomad/docs/commands/alloc/signal). |
Oops, something went wrong.