Repository navigation
engine: support registry mirror configs on engine.json - #11040
Conversation
1a442c2 to
544642d
Compare
|
@matipan to parahphrase my question in the issue: since we agree that in the future this should be moved from an engine-wide config to a session config, is there a config file other than engine.json that we could use now, to avoid a breaking config change later? |
|
x-linking #9007. Are we renaming If we're renaming the file, my suggestion is to pick a new name (throwing out |
544642d to
b22f2ba
Compare
|
@shykes as we discussed in yesterday's meeting, there is no other config file we could use. That said, we wouldn't be introducing breaking changes in the future. Even if we introduce a new session based |
|
@matipan I don't think that's how it will go, but we can discuss that separately. Since there is only one config file for now, let's go ahead and merge as-is 👍 As for future evolution of config files, we have some debating to do.. |
Signed-off-by: Matias Pan <[email protected]>
…r/engine.json Signed-off-by: Matias Pan <[email protected]>
b22f2ba to
f287ed1
Compare
Currently registry mirrors can only be configured on
engine.toml. This requires users to have to manually provision dagger engines with a buildkit-specific config. In this PR we add support to configuring registries inengine.jsondirectly. With this change users can add their configs on~/.config/dagger/engine.jsonand the dagger cli (e.gdagger call) will automatically pick it up when provisioning the engine.This PR implements only the first step that was described in #4217: CLI only config. There's an active discussion on whether this configuration should be engine wide or scoped to the individual session. The work for that will come in a separate PR. This is the first step that allows us to at least be able to configure it.
Fixes #4217.