-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hatchery/swarm): --add-host options (#2422)
- Loading branch information
Showing
19 changed files
with
140 additions
and
65 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
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
18 changes: 0 additions & 18 deletions
18
docs/content/workflows/pipelines/requirements/worker-model/docker-simple.md
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
docs/content/workflows/pipelines/requirements/worker-model/docker/_index.md
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,36 @@ | ||
+++ | ||
title = "Docker Worker Model" | ||
weight = 1 | ||
|
||
+++ | ||
|
||
A worker model of type `docker` can be spawned by a Hatchery Docker Swarm or a Hatchery Marathon. | ||
|
||
## Register a worker Model from an existing Docker Image | ||
|
||
Docker Image *golang:1.8.1* have a "curl" in $PATH, so it can be used as it is. | ||
|
||
* In the UI, click on the wheel on the hand right top corner and select *workers" (or go the the route *#/worker*) | ||
* At the bottom of the page, fill the form | ||
* Name of your worker *Golang-1.8.1* | ||
* type *docker* | ||
* image *golang:1.8.1* | ||
* Click on *Add* button and that's it | ||
|
||
![Add worker model](/images/workflows.pipelines.requirements.docker.worker-model.docker.add.png) | ||
|
||
## Worker Model Docker on Hatchery Swarm | ||
|
||
This hatchery offers some features on job pre-requisites, usable only on user's hatchery (ie. not a shared.infra hatchery). | ||
|
||
* [Service Link]({{< relref "workflows/pipelines/requirements/service/_index.md" >}}) | ||
* options on worker model prerequisite | ||
* Port mapping: `--port=8080:8081/tcp --port=9080:9081/tcp` | ||
* Priviledge flag: `--privileged` | ||
* Add host flag: `--add-host=aaa:1.2.3.4 --add-host=bbb:5.6.7.8` | ||
* Use all: `--port=8080:8081/tcp --privileged --port=9080:9081/tcp --add-host=aaa:1.2.3.4 --add-host=bbb:5.6.7.8` | ||
* options on volume prerequisite | ||
* Bind: `type=bind,source=/hostDir/sourceDir,destination=/dirInJob,readonly` | ||
|
||
![Job Prerequisites](/images/workflows.pipelines.requirements.docker.worker-model.docker.png) | ||
|
File renamed without changes.
Binary file added
BIN
+245 KB
...atic/images/workflows.pipelines.requirements.docker.worker-model.docker.add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+174 KB
docs/static/images/workflows.pipelines.requirements.docker.worker-model.docker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.