Repository navigation
docs: rework custom configuration docs with engine.json - #9022
Conversation
| The cache policy can be manually configured by editing the `engine.toml` file in the engine | ||
| (which uses [BuildKit's syntax config](https://github.com/moby/buildkit/blob/v0.17.0/docs/buildkitd.toml.md?plain=1#L66-L82)). | ||
| See the [Custom Runner](./custom-runner.mdx) docs for more information. | ||
| The cache policy can be manually configured using the [engine config](./engine.mdx). |
There was a problem hiding this comment.
This page (introduced in #8695) is still useful, but the actual configuration information is now all in engine.mdx. I think it makes sense to move this page somewhere else, but not entirely sure where, any suggestions @vikram-dagger?
There was a problem hiding this comment.
I would delete it and consolidate this information in the engine page. I have added suggestions to that page covering the content of this page.
There was a problem hiding this comment.
Hm, I'm not 100% sure about this.
I think having a separate caching page where we can talk about "how caching works" is important. Long term, I know we want to talk more about it (and it's probably going to get more complex), and we could even add information on how to optimize your pipelines for getting better cache results, with examples in different languages.
The dagger query examples to inspect cache and prune it are really useful, but I don't think they're related to configuration, and I wouldn't expect to find them under there.
WDYT about merging into https://docs.dagger.io/features/caching? Although, that section doesn't really have any code examples, so not sure about that. But it does feel like there's a lot of duplication between those.
There was a problem hiding this comment.
I would not put it in the features page, mainly because these seem like "operational" commands and the features pages are more "big picture"/"concepts" (side note: I'm not very confident that "caching best practices" in the features caching page is correct either, at some point this will move out).
WDYT of adding an entry to the FAQ page with these commands? e.g. How do I inspect the Dagger cache? as a stopgap until we have a "proper" caching page?
There was a problem hiding this comment.
JFYI I also thought of including these commands in https://docs.dagger.io/api/cache-volumes, but I think this is probably wrong as that page is specific to cache volumes only, not the layer cache. However let me know if you have a different opinion @jedevc
There was a problem hiding this comment.
WDYT of adding an entry to the FAQ page with these commands? e.g.
How do I inspect the Dagger cache?as a stopgap until we have a "proper" caching page?
I'm happy with that - we can add a redirect to there?
JFYI I also thought of including these commands in docs.dagger.io/api/cache-volumes, but I think this is probably wrong
Yeah, agreed - it's also that that page is relevant to the usage of cache volumes, while this is more about "operationally" using cache.
One other option would be to create a new API page on the core engine function, and the Engine type. Then, we could document the cache info there, as well as any other functionality we put under there. It's more specialized, and more geared towards operating a dagger engine.
There was a problem hiding this comment.
One other option would be to create a new API page on the core engine function, and the Engine type. Then, we could document the cache info there, as well as any other functionality we put under there. It's more specialized, and more geared towards operating a dagger engine
I like this idea more than the FAQ, because this is more scalable to future changes. I'll add an atomic commit with a skeleton of this page so we can iterate further (assuming that's OK, lmk if not).
There was a problem hiding this comment.
Yup, that sounds perfect, thanks!
7b5a008 to
9e6def0
Compare
| from = "/configuration/custom-registry" | ||
| to = "/configuration/engine#configuring-custom-registries" | ||
| status = 301 | ||
|
|
There was a problem hiding this comment.
If deleting the caching page as suggested, we should add a redirect for that as well.
7073e6a to
184cbbd
Compare
|
@vikram-dagger if it's easier, feel free to just directly make changes and push them to my branch as a separate commit! |
Thanks, I might do that as it will be easier for minor copy/style fixes. |
Previous review no longer relevant
| However, even with these defaults, it may sometimes be necessary to modify various | ||
| settings. | ||
|
|
||
| TODO: update version when base PR is merged |
vikram-dagger
left a comment
There was a problem hiding this comment.
Approving in advance so this can be merged at will, after the pending TODO item is fixed.
049558c to
d50fee4
Compare
Signed-off-by: Justin Chadwell <[email protected]>
Co-authored-by: vikram-dagger <[email protected]> Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
d50fee4 to
25e36b1
Compare
Signed-off-by: Justin Chadwell <[email protected]>
With #8800 about to merge, we can substantially improve our engine configuration docs.
All engine configuration for
engine.jsonandengine.tomlare moved intoengine.mdx. This is no longer split up across multiple pages which are harder to navigate. As part of this:custom-registry.mdxis removed and merged into this now.custom-runner.mdxpage is reworked to only include information about starting an engine.custom-ca.mdxandproxy.mdxare linked to from the bottom ofengine.mdx- their configs cannot yet be configured viaengine.json/engine.toml, but we link them here for improved navigation.