Testing vbatts/tar-split
vbatts@valse ~/tmp/010494540a4d46e2f516 (master) $ go build app.go
vbatts@valse ~/tmp/010494540a4d46e2f516 (master) $ ./app
Starting Sum on "/tmp/tar-split-test.160191501": 2b1c1c203e6bb0ab10c14db7361ede2402ef27468f901f979fb7e8ff8cf3d8c5
Ending Sum on "/tmp/tar-split-test.160191501": 2b1c1c203e6bb0ab10c14db7361ede2402ef27468f901f979fb7e8ff8cf3d8c5
This application is using the golang library github.com/vbatts/tar-split
to dissamble and reassemble the intermediate TAR archive.
This process is reproducible, but there was question regarding compression.
In this example, a TAR archive is created with the file contents of this executable itself, the "app.go" source, and "README.md".
This archive is gzip compressed, using golang's stdlib compress/gzip
.
The sha256
checksum of this tar.gz is displayed.
Then from this decomposed archive, it is reassembled, and then compressed with compress/gzip
at the same compression level.
The resulting reassembled tar.gz's sha256
checksum is displayed.
To inspect the files, pass the flag -keep
and the temporary files will be left for you to review.
You can then see the tar.gz tempfile produced, as well as the packer json document that is created during disassembly, and used for reassembly.