post-processor/compress: style
This commit is contained in:
parent
b5f9528738
commit
b2255751a1
|
@ -8,6 +8,7 @@ BACKWARDS INCOMPATIBILITIES:
|
||||||
|
|
||||||
FEATURES:
|
FEATURES:
|
||||||
|
|
||||||
|
* **New Post-Processor: `compress`** - Gzip compresses artifacts with files.
|
||||||
* **New Post-Processor: `docker-save`** - Save an image. This is similar to
|
* **New Post-Processor: `docker-save`** - Save an image. This is similar to
|
||||||
export, but preserves the image hierarchy.
|
export, but preserves the image hierarchy.
|
||||||
* **New Post-Processor: `docker-tag`** - Tag a created image.
|
* **New Post-Processor: `docker-tag`** - Tag a created image.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
|
|
||||||
const BuilderId = "johnbellone.compress"
|
const BuilderId = "packer.post-processor.compress"
|
||||||
|
|
||||||
type Artifact struct {
|
type Artifact struct {
|
||||||
Path string
|
Path string
|
||||||
|
|
|
@ -4,10 +4,11 @@ import (
|
||||||
"archive/tar"
|
"archive/tar"
|
||||||
"compress/gzip"
|
"compress/gzip"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mitchellh/packer/common"
|
|
||||||
"github.com/mitchellh/packer/packer"
|
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/mitchellh/packer/common"
|
||||||
|
"github.com/mitchellh/packer/packer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
|
Loading…
Reference in New Issue