packer-cn/website/source/docs/post-processors/compress.html.markdown

32 lines
740 B
Markdown
Raw Normal View History

---
layout: "docs"
page_title: "compress Post-Processor"
description: |-
The Packer compress post-processor takes an artifact with files (such as from VMware or VirtualBox) and gzip compresses the artifact into a single archive.
---
# Compress Post-Processor
Type: `compress`
The Packer compress post-processor takes an artifact with files (such as from
VMware or VirtualBox) and gzip compresses the artifact into a single
archive.
## Configuration
The configuration for this post-processor is extremely simple.
* `output` (string) - The path to save the compressed archive.
## Example
An example is shown below, showing only the post-processor configuration:
```javascript
{
"type": "compress",
"output": "foo.tar.gz"
}
```