Porter enables you to package your application artifact, client tools, configuration and deployment logic together as an installer that you can distribute, and install with a single command.
This adds an extra command line flag for the archive command that allows configuring the level of compression to use when creating the gzipped tar archive.
If the flag is omitted the gzipped tar archive will be compressed with DefaultCompression - this is equivalent to the pre-configurable-compression behavior of Porter.
Possible values for the --compression flag is listed in the help text.
$ porter archive -h
[snipped]
Flags:
-c, --compression string Compression level to use when creating the gzipped tar archive. Allowed values are: BestCompression, BestSpeed, DefaultCompression, HuffmanOnly, NoCompression (default "DefaultCompression")
publish appears to not care about the compression level of the gzipped tar archive.
What issue does it fix
Closes #3083
Notes for the reviewer
I opted to expose all compression levels for the gzip/flate go module - keeping the case intact. We can elect to exclude some and/or adjust the casing.
Checklist
[x] Did you write tests?
[x] Did you write documentation?
[ ] Did you change porter.yaml or a storage document record? Update the corresponding schema file.
[ ] If this is your first pull request, please add your name to the bottom of our Contributors list.
What does this change
This adds an extra command line flag for the
archive
command that allows configuring the level of compression to use when creating the gzipped tar archive.If the flag is omitted the gzipped tar archive will be compressed with
DefaultCompression
- this is equivalent to the pre-configurable-compression behavior of Porter.Possible values for the
--compression
flag is listed in the help text.publish
appears to not care about the compression level of the gzipped tar archive.What issue does it fix
Closes #3083
Notes for the reviewer
I opted to expose all compression levels for the
gzip/flate
go module - keeping the case intact. We can elect to exclude some and/or adjust the casing.Checklist