forked from hashicorp/packer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: add docs for docker-import and docker-push
- Loading branch information
Showing
7 changed files
with
114 additions
and
11 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
44 changes: 44 additions & 0 deletions
44
website/source/docs/post-processors/docker-import.html.markdown
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,44 @@ | ||
--- | ||
layout: "docs" | ||
page_title: "docker-import Post-Processor" | ||
--- | ||
|
||
# Docker Import Post-Processor | ||
|
||
Type: `docker-import` | ||
|
||
The Docker import post-processor takes an artifact from the | ||
[docker builder](/docs/builders/docker.html) and imports it with Docker | ||
locally. This allows you to apply a repository and tag to the image | ||
and lets you use the other Docker post-processors such as | ||
[docker-push](/docs/post-processors/docker-push.html) to push the image | ||
to a registry. | ||
|
||
## Configuration | ||
|
||
The configuration for this post-processor is extremely simple. At least | ||
a repository is required. The tag is optional. | ||
|
||
* `repository` (string) - The repository of the imported image. | ||
|
||
* `tag` (string) - The tag for the imported image. By default this is not | ||
set. | ||
|
||
## Example | ||
|
||
An example is shown below, showing only the post-processor configuration: | ||
|
||
<pre class="prettyprint"> | ||
{ | ||
"type": "docker-import", | ||
"repository": "mitchellh/packer", | ||
"tag": "0.7" | ||
} | ||
</pre> | ||
|
||
This example would take the image created by the Docker builder | ||
and import it into the local Docker process with a name of `mitchellh/packer:0.7`. | ||
|
||
Following this, you can use the | ||
[docker-push](/docs/post-processors/docker-push.html) | ||
post-processor to push it to a registry, if you want. |
28 changes: 28 additions & 0 deletions
28
website/source/docs/post-processors/docker-push.html.markdown
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,28 @@ | ||
--- | ||
layout: "docs" | ||
page_title: "Docker Push Post-Processor" | ||
--- | ||
|
||
# Docker Push Post-Processor | ||
|
||
Type: `docker-push` | ||
|
||
The Docker push post-processor takes an artifact from the | ||
[docker-import](/docs/post-processors/docker-import.html) post-processor | ||
and pushes it to a Docker registry. | ||
|
||
<div class="alert alert-info alert-block"> | ||
<strong>Before you use this,</strong> you must manually <code>docker login</code> | ||
to the proper repository. A future version of Packer will automate this | ||
for you, but for now you must manually do this. | ||
</div> | ||
|
||
## Configuration | ||
|
||
This post-processor has no configuration! Simply add it to your chain | ||
of post-processors and the image will be uploaded. | ||
|
||
## Example | ||
|
||
For an example of using docker-push, see the section on using | ||
generated artifacts from the [docker builder](/docs/builders/docker.html). |
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