Commit Graph

28921 Commits

Author SHA1 Message Date
flouthoc 998b8bf212
Merge pull request #1489 from giuseppe/idmap-unsupported
pkg/idmap: add boilerplate for unsupported
2023-01-31 08:40:22 +05:30
Chris Evich 158e3d036b
[CI:DOCS] Cirrus: Skipping some tests for docs-only PRs
Signed-off-by: Chris Evich <cevich@redhat.com>
2023-01-30 11:14:32 -05:00
renovate[bot] bd07ffe52d
Add renovate.json
Signed-off-by: Chris Evich <cevich@redhat.com>
2023-01-30 10:52:55 -05:00
Giuseppe Scrivano 04cf69a172
pkg/idmap: add boilerplate for unsupported
we need it to build on freebsd.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-01-30 12:39:12 +01:00
Daniel J Walsh e14503c40a
Merge pull request #1481 from nalind/makefile-updates
Makefile: remove vestiges of VMs, update $(sources)
2023-01-28 05:31:33 -05:00
Nalin Dahyabhai 380a915637 Makefile: remove vestiges of VMs, update $(sources)
Remove targets that reference Vagrant-specific setups that were removed
well over a year ago (!), and update $(sources) to include files in new
packages.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-01-27 14:43:18 -05:00
Daniel J Walsh 6a073bd678
Merge pull request #1482 from nalind/helper-args
test helper: maxArgs = 0 is actually a meaningful value
2023-01-27 14:42:46 -05:00
Daniel J Walsh 8619f5621a
Merge pull request #1487 from giuseppe/new-package-idmap
idmap: new package
2023-01-27 14:38:18 -05:00
Daniel J Walsh b2615c3605
Merge pull request #1485 from nalind/test-btrfs
Test btrfs in CI
2023-01-27 14:37:42 -05:00
Daniel J Walsh f793bae949
Merge pull request #1486 from containers/dependabot/go_modules/github.com/containerd/stargz-snapshotter/estargz-0.14.1
build(deps): bump github.com/containerd/stargz-snapshotter/estargz from 0.14.0 to 0.14.1
2023-01-27 13:12:02 -05:00
Giuseppe Scrivano 90a1a54933
idmap: new package
move the idmap utils from the overlay driver to a separate package.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-01-27 17:07:42 +01:00
dependabot[bot] 1dcc3c4dca
build(deps): bump github.com/containerd/stargz-snapshotter/estargz
Bumps [github.com/containerd/stargz-snapshotter/estargz](https://github.com/containerd/stargz-snapshotter) from 0.14.0 to 0.14.1.
- [Release notes](https://github.com/containerd/stargz-snapshotter/releases)
- [Commits](https://github.com/containerd/stargz-snapshotter/compare/v0.14.0...v0.14.1)

---
updated-dependencies:
- dependency-name: github.com/containerd/stargz-snapshotter/estargz
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 10:14:57 -05:00
Nalin Dahyabhai 137b452ba5 CI: test btrfs
Make a file and mount it over loopback to ensure that we can test btrfs,
assuming we were built with the libraries and the kernel supports it.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-01-27 09:21:58 -05:00
Nalin Dahyabhai 87b926f5f2 test helper: maxArgs = 0 is actually a meaningful value
We do have commands that don't take any arguments, and quietly ignoring
arguments when they get them is not a good idea.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-01-27 09:21:43 -05:00
Valentin Rothberg c22961023f
Merge pull request #1484 from nalind/image-gc
imageStore: add a GarbageCollect() method
2023-01-27 09:11:51 +01:00
Nalin Dahyabhai 6d91bc12f3 cmd: add a CLI wrapper for GarbageCollect
Add "gc" as an action for the CLI wrapper, for running the
GarbageCollect() method.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-01-26 16:09:00 -05:00
Nalin Dahyabhai c9b3bdc284 imageStore: add a GarbageCollect() method
Add a GarbageCollect() method to image stores, and call it from the main
Store.GarbageCollect().

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2023-01-26 15:58:46 -05:00
Daniel J Walsh bf2534bd98
Merge pull request #1479 from containers/dependabot/go_modules/github.com/containerd/stargz-snapshotter/estargz-0.14.0
build(deps): bump github.com/containerd/stargz-snapshotter/estargz from 0.13.0 to 0.14.0
2023-01-25 09:21:57 -05:00
Daniel J Walsh 95d786d41a
build(deps): bump github.com/containerd/stargz-snapshotter/estargz
Bumps [github.com/containerd/stargz-snapshotter/estargz](https://github.com/containerd/stargz-snapshotter) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/containerd/stargz-snapshotter/releases)
- [Commits](https://github.com/containerd/stargz-snapshotter/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: github.com/containerd/stargz-snapshotter/estargz
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-25 08:39:47 -05:00
Daniel J Walsh 908a90a38c
Merge pull request #1478 from containers/dependabot/go_modules/github.com/klauspost/compress-1.15.15
build(deps): bump github.com/klauspost/compress from 1.15.14 to 1.15.15
2023-01-25 08:25:13 -05:00
dependabot[bot] f6f05cac8f
build(deps): bump github.com/klauspost/compress from 1.15.14 to 1.15.15
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.14 to 1.15.15.
- [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.15.14...v1.15.15)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-24 16:02:30 -05:00
Daniel J Walsh 8428fad6d0
Merge pull request #1476 from rhatdan/main
Bump to v1.45.2
2023-01-19 13:28:48 -05:00
Daniel J Walsh 14f7f9895f
Move to v1.45.3-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-19 13:27:50 -05:00
Daniel J Walsh f9099beb13
Bump to v1.45.2
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-19 13:26:19 -05:00
Daniel J Walsh d5792d2dbc
Merge pull request #1471 from giuseppe/default-override-for-rootless
store: prefer /etc/containers/storage.conf
2023-01-17 13:16:05 -05:00
Daniel J Walsh b9094c6687
Merge pull request #1473 from giuseppe/userns-skip-nobody-user
userns: skip the nobody user
2023-01-17 09:18:41 -05:00
Daniel J Walsh c747cbbf11
Merge pull request #1474 from vrothberg/v1.45.1
v1.45.1
2023-01-17 09:07:40 -05:00
Giuseppe Scrivano f64e1bd14a
store: prefer /etc/containers/storage.conf
when running in rootful mode, if it is present, prefer the override path
/etc/containers/storage.conf instead of using the default storage.conf
provided by the package under the /usr/share/containers/ directory.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-01-17 11:02:23 +01:00
Valentin Rothberg 7047e63af5 bump to v1.45.2-dev
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-17 09:37:21 +01:00
Valentin Rothberg abf6ed11ec v1.45.1
* Only override the graphdriver to vfs if the priority is unset

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-01-17 09:37:04 +01:00
Giuseppe Scrivano b876a48e08
userns: skip the nobody user
improve the heuristic to detect the user namespace size needed to run
an image.  Hardcode the nobody user value to 65534, which is the value
used by the kernel, and ignore this value when parsing /etc/passwd and
/etc/group.

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-01-16 20:13:04 +01:00
Daniel J Walsh 0af0a9945d
Merge pull request #1468 from dcermak/dont-forget-driverpriority-in-rootless
Only override the graphdriver to vfs if the priority is unset
2023-01-16 09:05:25 -05:00
Dan Čermák df0cb3234e
Only override the graphdriver to vfs if the priority is unset
This is an amend to https://github.com/containers/storage/pull/1460

That PR was not addressing the case when the system wide config had the
driver_priority option configured and the user had no config file of their
own. Then `getRootlessStorageOpts` would be called and it would override the
graph driver to "vfs".

With this commit we only override the graph driver if driver priority is
empty. Otherwise we propagate the driver priority into the storage options, so
that the driver autodetection works as expected.

Signed-off-by: Dan Čermák <dcermak@suse.com>
2023-01-16 09:03:42 +01:00
Daniel J Walsh e778f8ba9c
Merge pull request #1466 from rhatdan/version
Bump to v1.45.0
2023-01-12 18:45:06 -05:00
Daniel J Walsh ac51f5276a
Move to v1.45.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-12 18:43:44 -05:00
Daniel J Walsh 7d7cb419ca
Bump to v1.45.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-12 18:43:25 -05:00
Daniel J Walsh 9e59832346
Merge pull request #1465 from rhatdan/regexp
Create pkg/regexp to better handle init regex
2023-01-12 13:50:43 -05:00
Daniel J Walsh b4f7b119c9
Create pkg/regexp to better handle init regex
The new Reexp structure, will handle the initialization of regexp
and then will do the MustCompile within a sync.Once field.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-12 13:19:47 -05:00
Daniel J Walsh 7967d4b013
Merge pull request #1464 from rhatdan/regexp
Compile regex on demand not in init
2023-01-11 17:59:55 -05:00
Daniel J Walsh 437ad46721
Compile regex on demand not in init
Every app is paying the price for these compilations on startup
so make only the users of the functions pay the price.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-11 13:06:41 -05:00
Daniel J Walsh 29bfc3ad9b
Remove dead code
ValidateDNSSearch is not used anywhere so remove it.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-01-11 13:06:23 -05:00
Daniel J Walsh 90d0b54ace
Merge pull request #1460 from dcermak/configurable-driver-priority
Make the priority for picking the storage driver configurable
2023-01-06 14:52:42 -05:00
Dan Čermák b2b2fefb3e
Only warn about 'driver' not being set if the priority list is unset
Currently we would display an error when the user does not specify a `driver` in
their config file. This has been present for historical reasons mostly to
prevent users from accidentally getting the vfs
driver (https://github.com/containers/storage/pull/1460#issuecomment-1370866271). Now
that most systems support the overlay driver natively, we can reduce this to a
warning and only warn about it if the driver_priority list is unset. If it is
provided, then clearly the user or the distribution wanted for c/storage to pick
a driver itself and the warning would be only confusing to users.

Signed-off-by: Dan Čermák <dcermak@suse.com>
2023-01-06 08:43:46 +01:00
Dan Čermák 881ac4864a
Make the priority for picking the storage driver configurable
This fixes https://github.com/containers/storage/issues/1457

Co-authored-by: Valentin Rothberg <vrothberg@redhat.com>
Signed-off-by: Dan Čermák <dcermak@suse.com>
2023-01-05 12:38:33 +01:00
Daniel J Walsh fc91849352
Merge pull request #1346 from mtrmac/process-lock
In-process exclusion of readers and writers
2023-01-05 05:55:26 -05:00
Daniel J Walsh eb7a56cf67
Merge branch 'main' into process-lock 2023-01-04 11:33:41 -05:00
Giuseppe Scrivano bb07d8e34e
Merge pull request #1461 from rhatdan/userns
Define error type for ErrNoAvailableIDs
2023-01-04 11:30:50 +01:00
Miloslav Trmač ffeaed8fa4 Optimize the "no changes" case of layerStore.startReading further
In that case, we can just get read locks, confirm that nothing has changed,
and continue; no need for any serialization on exclusively holding
loadMut / inProcessLock.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-01-04 00:29:39 +01:00
Miloslav Trmač 8ce7409de3 Optimize the "no changes" case of imageStore.startReading further
In that case, we can just get read locks, confirm that nothing has changed,
and continue; no need for any serialization on exclusively holding
loadMut / inProcessLock.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-01-04 00:29:28 +01:00
Miloslav Trmač 24d3ecb9bb Optimize the "no changes" case of containerStore.startReading further
In that case, we can just get read locks, confirm that nothing has changed,
and continue; no need for any serialization on exclusively holding
loadMut / inProcessLock.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-01-04 00:29:27 +01:00