[!CAUTION]
This repository has been in-lined (using git-subtree) into winc-release. Please make any
future contributions directly to winc-release.
diff-exporter
The diff-exporter extracts (exports) the diff layer given a running container ID and a bundle path (that contains the config.json). The layer is saved to the location provided by the -outputFile parameter. The output layer is of tar.gz mediatype and the filename is the sha256 of its contents.
Building
Make sure GOPATH is set. Then run:
go build
It generates a diff-exporter.exe in the current directory.
diff-exporter
The
diff-exporterextracts (exports) the diff layer given a running container ID and a bundle path (that contains the config.json). The layer is saved to the location provided by the-outputFileparameter. The output layer is oftar.gzmediatype and the filename is thesha256of its contents.Building
Make sure
GOPATHis set. Then run:It generates a
diff-exporter.exein the current directory.Usage
Testing
Requirements
To run the entire suite of tests, do
ginkgo -r .The tests require the following env variables to be set:
GROOT_BINARYGROOT_IMAGE_STOREWINC_BINARYWINC_TEST_ROOTFS