Commit Graph

610 Commits

Author SHA1 Message Date
dependabot-preview[bot] cd0656ad1b
Bump github.com/klauspost/compress from 1.9.3 to 1.9.4
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.9.3...v1.9.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-04 07:31:16 -06:00
dependabot-preview[bot] e744609919
Bump github.com/Microsoft/hcsshim from 0.8.6 to 0.8.7
Bumps [github.com/Microsoft/hcsshim](https://github.com/Microsoft/hcsshim) from 0.8.6 to 0.8.7.
- [Release notes](https://github.com/Microsoft/hcsshim/releases)
- [Commits](https://github.com/Microsoft/hcsshim/compare/v0.8.6...v0.8.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-03 15:14:30 +01:00
Valentin Rothberg 54d76b16f1 revert golang.org/x/sys
Revert golang.org/x/sys to a known-to-work version.  Recent breaking
changes in this package introduce build regressions.  Thoss have already
been fixed in containers/storage but other (transitive) dependencies of
consumers of c/storage are not, and hence break builds.

See https://github.com/containers/libpod/pull/4598#issuecomment-560304335
as an example.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-12-02 11:03:55 +01:00
dependabot-preview[bot] 2a6397967b
Bump github.com/klauspost/compress from 1.9.2 to 1.9.3
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.9.2...v1.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-11-28 06:14:06 -05:00
Valentin Rothberg fae1939e83 remove pkg/system/filesys*
This API caused build regressions as golang.org/x dependencies
introduced breaking changes.  We don't have any callers in our
projects and I consider it a bug that those APIs were there,
which might prevent us from causing a major bump.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-11-27 13:31:52 +01:00
dependabot-preview[bot] b10bb250c6
Bump github.com/klauspost/compress from 1.9.1 to 1.9.2
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.9.1 to 1.9.2.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.9.1...v1.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-11-16 10:18:58 -05:00
dependabot-preview[bot] 0986ab66c5 Bump github.com/mattn/go-shellwords from 1.0.5 to 1.0.6
Bumps [github.com/mattn/go-shellwords](https://github.com/mattn/go-shellwords) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/mattn/go-shellwords/releases)
- [Commits](https://github.com/mattn/go-shellwords/compare/v1.0.5...v1.0.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-11-05 12:13:54 +01:00
Daniel J Walsh 9563c65985
Bump github.com/opencontainers/runc from 1.0.0-rc8 to 1.0.0-rc9
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.0.0-rc8 to 1.0.0-rc9.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Commits](https://github.com/opencontainers/runc/compare/v1.0.0-rc8...v1.0.0-rc9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-11-01 20:35:19 -04:00
Daniel J Walsh 5ce9b77313
Merge pull request #457 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.3.0
Bump github.com/opencontainers/selinux from 1.2.2 to 1.3.0
2019-11-01 15:33:55 -04:00
Daniel J Walsh 83f98178f8
Merge pull request #456 from containers/dependabot/go_modules/github.com/Microsoft/go-winio-0.4.14
Bump github.com/Microsoft/go-winio from 0.4.12 to 0.4.14
2019-11-01 15:33:20 -04:00
Daniel J Walsh 1560ffd51c
Merge pull request #455 from containers/dependabot/go_modules/github.com/stretchr/testify-1.4.0
Bump github.com/stretchr/testify from 1.3.0 to 1.4.0
2019-11-01 13:41:19 -04:00
dependabot-preview[bot] cbc26f5abe Bump github.com/opencontainers/selinux from 1.2.2 to 1.3.0
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.2.2...1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-11-01 13:20:57 +01:00
dependabot-preview[bot] 03570c96bc Bump github.com/Microsoft/go-winio from 0.4.12 to 0.4.14
Bumps [github.com/Microsoft/go-winio](https://github.com/Microsoft/go-winio) from 0.4.12 to 0.4.14.
- [Release notes](https://github.com/Microsoft/go-winio/releases)
- [Commits](https://github.com/Microsoft/go-winio/compare/v0.4.12...v0.4.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-11-01 13:20:09 +01:00
dependabot-preview[bot] 5b68d9a33c Bump github.com/stretchr/testify from 1.3.0 to 1.4.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.3.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-11-01 13:19:22 +01:00
dependabot-preview[bot] c37735e479
Bump github.com/klauspost/compress from 1.7.2 to 1.9.1
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.7.2 to 1.9.1.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.7.2...v1.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-11-01 08:18:42 -04:00
Valentin Rothberg c677b7d069 Move opts to internal/opts and fork docker filters
The dependency on docker's filter package prevents us from using newer
versions of docker/moby where the package's API has changed.  The filter
package is small enough to justify maintaining a small fork of it. Also,
since the opts package is only used for the `containers-storage` binary
and is not part of the actual storage library, move it to the ./internal
directory to make it clearer that this is an internal API.

Fixes: #450
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-10-29 13:12:13 +01:00
Daniel J Walsh ad54e947c0
Add make vendor-in-container
In order to always run vendor with the latest supported version of golang,
add the ability to run the vendor command within a podman container.

After running the command include vendor changes.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-10-25 11:09:29 -04:00
Giuseppe Scrivano 7a0d58dab5
storage: drop ostree deduplication
it was an attempt to use OSTree to deduplicate files, at the time we
already had a dependency on OSTree for system containers in
containers/image.  Since the feature never really took off, let's just
drop it.

Closes: https://github.com/containers/storage/issues/419

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-10-05 20:27:45 +02:00
Valentin Rothberg fada7dd6e2 vendor ffjson deps required during generation
ffjson requires some packages during intermediate go generation steps
that are not present in the `./vendor` directory since the final files
do not require it.  To trick go modules into believing that we need
those dependencies, add a `ffjson_deps.go` file referencing them.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-08-05 10:43:25 +02:00
Valentin Rothberg d85da313ef pkg/tarlog: use io.Pipe()
Using `os.Pipe()` has a side effect when writing tar files surfacing in
differing digests (see [1] for reference).  Instead use `io.Pipe()` with
a workaround to avoid writes after the reader has been closed - which is
supported by `os.Pipe()` and causes the tar package to error otherwise.

[1] https://github.com/containers/libpod/pull/3705#issuecomment-517954910

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-08-05 10:37:41 +02:00
Valentin Rothberg 895d59cf18 zstd: use github.com/klauspost/compress directly
The DataDog/zstd package added more than 2MB to the binary size.
Reduce that by using the github.com/klauspost/compress directly
from 11MB to 8.7MB.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-07-22 16:19:07 +02:00
Sascha Grunert 5ce139d37d
Switch to go modules
Remove the old vendor approach in replacement of go module support.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-07-09 08:32:22 +02:00
Daniel J Walsh 4105670a2b
Merge pull request #363 from giuseppe/zstd
compression: add support for the zstd algorithm
2019-06-20 05:26:59 -04:00
Giuseppe Scrivano 49190329b6
compression: add support for the zstd algorithm
zstd is a compression algorithm that has a very fast decoder, while
providing also good compression ratios.  The fast decoder makes it
suitable for container images, as decompressing the tarballs is a very
expensive operation.  This is a first step at supporting zstd as we We
don't yet generate zstd layers.

In my testing, copying the Fedora image from a local dir: repository,
the wall clock time passed from ~8s with gzip compression to ~4.5s
with zstd.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2019-06-19 23:04:19 +02:00
Daniel J Walsh f71306a490
Fixes to allow unit test to pass on fedora 30
Fix unit test to ignore relatime
Update vendor to fix unit tests

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-05-16 21:34:23 -04:00
Nalin Dahyabhai 01246ff403 Drop github.com/containers/image from vendor.conf
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-03-06 15:06:35 -05:00
Nalin Dahyabhai a6ca4fc7b4 Vendor github.com/containers/image
We use the image library's reference parser and manifest digester.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-02-06 10:04:37 -05:00
Daniel J Walsh 7deefec3d2
vndr opencontainers/selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-01-18 15:09:39 -05:00
Giuseppe Scrivano fe775d42b0
vendor: use github.com/klauspost/pgzip instead of compress/gzip
from my tests, I've seen a net improvement of around 30% on the wall
clock time in decompressing layers.

These additional packages will need to be re-vendored:

github.com/klauspost/pgzip v1.2.1
github.com/klauspost/compress v1.4.1
github.com/klauspost/cpuid v1.2.0

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-12-13 16:14:54 +01:00
Daniel J Walsh 6c86fe70d3
Rebase vfs code to use Moby definition of copy driver
This new version of copy will attempt to use reflinks
if the underlying file system supports reflink, which
should optimize the vfs storage driver for rootless
podman and buildah.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-12-05 10:16:19 -05:00
Daniel J Walsh 972408a488
Vendor in latest ostree to remove compiler warnings
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-12-04 13:24:12 -05:00
Vincent Demeester 6c11e7a4a6
Adding github.com/docker/docker dependency
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2018-10-23 16:01:05 +02:00
Vincent Demeester 8cac1d50b0
fix: Update vendor folder base on vendor.conf
and removed unused `engine-api` dependency

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2018-10-23 14:50:29 +02:00
Daniel J Walsh 26936d7dd5
Vendor in latest go-selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-18 14:06:34 -04:00
Giuseppe Scrivano eca8a17927
storage: add ostree files
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-06-29 17:58:49 +02:00
Nalin Dahyabhai be319bfc1a Vendor github.com/syndtr/gocapability
Use gocapability for checking if we have particular capabilities, and
re-sort the vendor.conf list.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2018-05-21 14:54:59 -04:00
Lou Yihua 11a751f6d5 Replace deprecated repo 'github.com/docker/engine-api'
Since this repo is marked deprecated, we should import types from
'github.com/docker/docker/api' instead.

Signed-off-by: Lou Yihua <supermouselyh@hotmail.com>
2018-01-17 21:31:21 +08:00
Vincent Batts c4b35372c6
vendor: update tar-split to v1.0.2 release
Fixes: CVE-2017-1499

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2017-11-08 07:54:02 -05:00
Antonio Murdaca c59c6a878c use ffjson to encode/decode layer structs
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-10-13 13:59:22 -04:00
Daniel J Walsh f39066fe1b Update packages to match latest code in moby/pkg
Had to vendor in a new version of golang.org/x/net to build
Also had to make some changes to drivers to handle
archive.Reader -> io.Reader
archive.Archive -> io.ReadCloser

Also update .gitingore to ignore emacs files, containers-storage.*
and generated man pages.

Also no longer test travis against golang 1.7, cri-o, moby have also
done this.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-12 18:00:29 +00:00
Daniel J Walsh b3bf8e33e1 Vendor in latest packages for updating storage driver
updating
golang.org/x/sys 07c182904dbd53199946ba614a412c61d3c548f5

Adding
github.com/stretchr/testify 4d4bfba8f1d1027c4fdbe371823030df51419987
github.com/davecgh/go-spew 346938d642f2ec3594ed81d874461961cd0faa76
github.com/pmezard/go-difflib v1.0.0

Removing
github.com/vdemeester/shakers
github.com/go-check/check

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-08 07:07:48 -04:00
Mrunal Patel 59da502256 Update deps to github.com/sirupsen/logrus v1.0.0
Also updates github.com/Microsoft/hcsshim
and github.com/docker/go-connections so they work
with the newer version of logrus.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-08-01 07:25:56 -07:00
Nalin Dahyabhai ace592f983 Vendor github.com/opencontainers/go-digest
Add go-digest to our list of vendored dependencies.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-06-19 11:57:19 -04:00
Dan Walsh ae965ad5b5 Add better error reporting when layers are in use
We need to inform user what object is using a layer when returning and
error.

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2017-06-06 15:53:27 -04:00
Dan Walsh 119beac58d Add support for a toml config file
Container Storage is going to be shared by multiple tools.  Therefore
we don't want each one of these tools setting up its own container
storage.  This storage config can be shared between multiple users.
Signed-off-by: Dan Walsh <dwalsh@redhat.com>
2017-05-24 15:14:38 -04:00
Nalin Dahyabhai 5f85280056 Merge pull request #6 from nalind/truncindex
Add truncindex to stores, to allow use of truncated IDs
2017-04-19 08:20:53 -04:00
Daniel J Walsh 1d91b1c904 Vendor in opencontainers/selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-03-22 15:57:53 -04:00
Nalin Dahyabhai bfecb4d138 Remove pkg/ioutils.cancelReadCloser
Remove pkg/ioutils's cancelReadCloser type and the vendored copy of
golang.org/x/net/context which it needed, neither of which was used
anywhere else in here.  This should let us sidestep any potential
incompatibilities with the standard library's context package, which was
introduced in golang 1.7.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-03-06 14:00:16 -05:00
Nalin Dahyabhai cc9add4855 Vendor go-patricia, used by pkg/truncindex
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-03-06 13:56:31 -05:00
Erik Hollensbe 1fbbbe0b54 Use github.com/LK4D4/vndr and update vendored deps
Signed-off-by: Erik Hollensbe <github@hollensbe.org>
2017-01-30 08:44:12 -08:00