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
8f2a9de2
Commit
8f2a9de2
authored
Aug 04, 2015
by
Chris Bednarski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation explaining how to use variables in compress post-processor filenames
parent
4ef3baa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
website/source/docs/post-processors/compress.html.markdown
website/source/docs/post-processors/compress.html.markdown
+9
-12
No files found.
website/source/docs/post-processors/compress.html.markdown
View file @
8f2a9de2
...
@@ -15,10 +15,11 @@ VMware or VirtualBox) and compresses the artifact into a single archive.
...
@@ -15,10 +15,11 @@ VMware or VirtualBox) and compresses the artifact into a single archive.
## Configuration
## Configuration
###
Required
:
###
Optional
:
You must specify the output filename. The archive format is derived from the
By default, packer will build archives in
`.tar.gz`
format with the following
filename.
filename:
`packer_{{.BuildName}}_{{.BuilderType}}`
. If you want to change this
you will need to specify the
`output`
option.
-
`output`
(string) - The path to save the compressed archive. The archive
-
`output`
(string) - The path to save the compressed archive. The archive
format is inferred from the filename. E.g.
`.tar.gz`
will be a
format is inferred from the filename. E.g.
`.tar.gz`
will be a
...
@@ -26,13 +27,9 @@ filename.
...
@@ -26,13 +27,9 @@ filename.
detected packer defaults to
`.tar.gz`
behavior but will not change
detected packer defaults to
`.tar.gz`
behavior but will not change
the filename.
the filename.
If you are executing multiple builders in parallel you should make sure
`output`
You can use `{{.BuildName}}` and ``{{.BuilderType}}` in your output path.
is unique for each one. For example
`packer_{{.BuildName}}_{{.Provider}}.zip`
.
If you are executing multiple builders in parallel you should make sure
`output` is unique for each one. For example `packer_{{.BuildName}}.zip`.
### Optional:
If you want more control over how the archive is created you can specify the
following settings:
-
`compression_level`
(integer) - Specify the compression level, for
-
`compression_level`
(integer) - Specify the compression level, for
algorithms that support it, from 1 through 9 inclusive. Typically higher
algorithms that support it, from 1 through 9 inclusive. Typically higher
...
@@ -61,14 +58,14 @@ configuration:
...
@@ -61,14 +58,14 @@ configuration:
```
{.json}
```
{.json}
{
{
"type": "compress",
"type": "compress",
"output": "
archiv
e.zip"
"output": "
{{.BuildName}}_bundl
e.zip"
}
}
```
```
```
{.json}
```
{.json}
{
{
"type": "compress",
"type": "compress",
"output": "
archive
.gz",
"output": "
log_{{.BuildName}}
.gz",
"compression": 9
"compression": 9
}
}
```
```
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