Skip to content

Refactor configuration system #50

@pont-us

Description

@pont-us

Currently the configuration system is a little ad-hoc, with some configuration options settable in the notebook, some on the CLI, and some on both. More configuration options (both build-time and run-time) are planned, and possibly more interfaces for xcengine/xcetool itself, so it would be nice to rationalize and future-proof the configuration system. Sketch of a refactored solution:

  1. Single source of truth for configuration options, which is used to create both the in-notebook and CLI configuration interfaces.
  2. Configuration settings are also written to a YAML file in the image to make them accessible at run-time. So e.g. default port could be set in the notebook. (Notebook config also could be retrieved at run-time by executing the parameters cell, but this would be inconvenience and wouldn't cover CLI options.)
  3. Configuration engine uses the "single source of truth" at image build time to process any in-notebook and/or CLI options supplied by the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions