Add a TODO note that, once we can pull in a newer image-spec, make use
of its new media type to distinguish between compressed and uncompressed
layers in the output image.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When committing an image, default to compressing the layer using Gzip.
This can lead to problems pulling the image back out of
containers/storage if the package that pulls it out was built using a
different version of go, but it works around a problem where
containers/image might not be able to detect that an uncompressed layer
is actually a layer.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Do some symlink-based trickery to make sure that we can always set
GOPATH to a value that we expect to work.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Figure out the right build tags to use for btrfs and libdm support, and
make sure we tell Travis to install libgpgme11-dev, because we also
build against it.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
The github.com/gorilla/mux package requires github.com/gorilla/context,
so we need to vendor it, too.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Change the --signature-policy flag from being a global option to being
specific to the "from" command, which is the only place it's used.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Roll back to slightly older versions of some of our dependencies in
order to get them all to play well together.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Add the container's layer to the layer list in the image configuration,
along with a history entry for it.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Rough out simple image configuration edits, though apparently there's
more out there than just OCI v1.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Log a debug message when we're finished reading a layer, as we already
did for the configuration blob.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>