mirror of
https://github.com/containers/podman.git
synced 2025-09-19 12:56:57 +08:00
sqlite: add a hidden --db-backend flag
Add a hidden flag to set the database backend and plumb it into podman-info. Further add a system test to make sure the flag and the info output are working properly. Note that the test may need to be changed once we settled on how to test the sqlite backend in CI. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -282,6 +282,16 @@ func WithRegistriesConf(path string) RuntimeOption {
|
||||
}
|
||||
}
|
||||
|
||||
// WithDatabaseBackend configures the runtime's database backend.
|
||||
func WithDatabaseBackend(value string) RuntimeOption {
|
||||
logrus.Debugf("Setting custom database backend: %q", value)
|
||||
return func(rt *Runtime) error {
|
||||
// The value will be parsed later on.
|
||||
rt.config.Engine.DBBackend = value
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithHooksDir sets the directories to look for OCI runtime hook configuration.
|
||||
func WithHooksDir(hooksDirs ...string) RuntimeOption {
|
||||
return func(rt *Runtime) error {
|
||||
|
Reference in New Issue
Block a user