Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
d2e24a4e
Commit
d2e24a4e
authored
Sep 04, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document the new docker post-processors
parent
dfae0d26
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
0 deletions
+85
-0
website/source/docs/post-processors/docker-save.html.markdown
...ite/source/docs/post-processors/docker-save.html.markdown
+35
-0
website/source/docs/post-processors/docker-tag.html.markdown
website/source/docs/post-processors/docker-tag.html.markdown
+48
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+2
-0
No files found.
website/source/docs/post-processors/docker-save.html.markdown
0 → 100644
View file @
d2e24a4e
---
layout
:
"
docs"
page_title
:
"
docker-save
Post-Processor"
---
# Docker Save Post-Processor
Type:
`docker-save`
The Docker Save post-processor takes an artifact from the
[
docker builder
](
/docs/builders/docker.html
)
that was committed
and saves it to a file. This is similar to exporting the Docker image
directly from the builder, except that it preserves the hierarchy of
images and metadata.
We understand the terminology can be a bit confusing, but we've
adopted the terminology from Docker, so if you're familiar with that, then
you'll be familiar with this and vice versa.
## Configuration
The configuration for this post-processor is extremely simple.
*
`path`
(string) - The path to save the image.
## Example
An example is shown below, showing only the post-processor configuration:
<pre
class=
"prettyprint"
>
{
"type": "docker-save",
"path": "foo.tar"
}
</pre>
website/source/docs/post-processors/docker-tag.html.markdown
0 → 100644
View file @
d2e24a4e
---
layout
:
"
docs"
page_title
:
"
docker-tag
Post-Processor"
---
# Docker Tag Post-Processor
Type:
`docker-tag`
The Docker Tag post-processor takes an artifact from the
[
docker builder
](
/docs/builders/docker.html
)
that was committed
and tags it into a repository. This allows you to use the other
Docker post-processors such as
[
docker-push
](
/docs/post-processors/docker-push.html
)
to push the image
to a registry.
This is very similar to the
[
docker-import
](
/docs/post-processors/docker-import.html
)
post-processor except that this works with committed resources, rather
than exported.
## Configuration
The configuration for this post-processor is extremely simple. At least
a repository is required.
*
`repository`
(string) - The repository of the image.
*
`tag`
(string) - The tag for the image. By default this is not
set.
## Example
An example is shown below, showing only the post-processor configuration:
<pre
class=
"prettyprint"
>
{
"type": "docker-tag",
"repository": "mitchellh/packer",
"tag": "0.7"
}
</pre>
This example would take the image created by the Docker builder
and tag 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.
website/source/layouts/docs.erb
View file @
d2e24a4e
...
@@ -60,6 +60,8 @@
...
@@ -60,6 +60,8 @@
<li><h4>
Post-Processors
</h4></li>
<li><h4>
Post-Processors
</h4></li>
<li><a
href=
"/docs/post-processors/docker-import.html"
>
docker-import
</a></li>
<li><a
href=
"/docs/post-processors/docker-import.html"
>
docker-import
</a></li>
<li><a
href=
"/docs/post-processors/docker-push.html"
>
docker-push
</a></li>
<li><a
href=
"/docs/post-processors/docker-push.html"
>
docker-push
</a></li>
<li><a
href=
"/docs/post-processors/docker-save.html"
>
docker-save
</a></li>
<li><a
href=
"/docs/post-processors/docker-tag.html"
>
docker-tag
</a></li>
<li><a
href=
"/docs/post-processors/vagrant.html"
>
Vagrant
</a></li>
<li><a
href=
"/docs/post-processors/vagrant.html"
>
Vagrant
</a></li>
<li><a
href=
"/docs/post-processors/vagrant-cloud.html"
>
Vagrant Cloud
</a></li>
<li><a
href=
"/docs/post-processors/vagrant-cloud.html"
>
Vagrant Cloud
</a></li>
<li><a
href=
"/docs/post-processors/vsphere.html"
>
vSphere
</a></li>
<li><a
href=
"/docs/post-processors/vsphere.html"
>
vSphere
</a></li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment