Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.09] Remove boltdb dependency #60

Merged
merged 8 commits into from
Sep 22, 2018

Conversation

tonistiigi and others added 8 commits September 21, 2018 17:06
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
… is expected now with buildkit

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 5aa222d)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Anda Xu <anda.xu@docker.com>
(cherry picked from commit 308701f)
(cherry picked from commit b48afc2)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Anda Xu <anda.xu@docker.com>
(cherry picked from commit 171d51c)
(cherry picked from commit a72752b)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This allows users to configure the buildkit GC.

The following enables the default GC:
```
{
  "builder": {
    "gc": {
      "enabled": true
    }
  }
}
```

The default GC policy has a simple config:
```
{
  "builder": {
    "gc": {
      "enabled": true,
      "defaultKeepStorage": "30GB"
    }
  }
}
```

A custom GC policy can be used instead by specifying a list of cache prune rules:
```
{
  "builder": {
    "gc": {
      "enabled": true,
      "policy": [
        {"keepStorage": "512MB", "filter": ["unused-for=1400h"]]},
        {"keepStorage": "30GB", "all": true}
      ]
    }
  }
}
```

Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit 4a776d0)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tibor Vass <tibor@docker.com>
(cherry picked from commit d0f00bc)
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This also brings in these PRs from swarmkit:
- moby/swarmkit#2691
- moby/swarmkit#2744
- moby/swarmkit#2732
- moby/swarmkit#2729
- moby/swarmkit#2748

Signed-off-by: Tibor Vass <tibor@docker.com>
@tiborvass
Copy link
Author

Ping @jhowardmsft @thaJeztah it seems like libnetwork bump was not needed afterall, since libnetwork's dependency on boltdb is indirect: libnetwork uses libkv which depends on boltdb.

I only see now that @thaJeztah already had a similar PR #54. I think they're mutually exclusive.

@lowenna
Copy link

lowenna commented Sep 22, 2018

I don't think it hurts. Thanks for getting this done - I've been swamped. I assume this is in moby/moby? I didn't see the PR go past, but maybe I wasn't tagged in it.

@andrewhsu andrewhsu added this to the 18.09.0 milestone Sep 22, 2018
Copy link

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants