Skip to content

Configuration driven commands #31

@tuler

Description

@tuler

📚 Context

The current CLI commands like build and run currently allow some level of customization through the following mechanisms:

  • machine rootfs contents from a Docker image
  • RAM memory size from a Docker label
  • drive extra space from a Docker label
  • emulator version (or kernel) by replacing an underlying "sdk Docker image"

This process is kind of scattered and makes it hard to allow further customization required by some applications or different frameworks like lambada.

✔️ Solution

Implement build and execution driven by a configuration file.
The configuration will be a TOML file containing sections for machine drives, kernel configuration, runtime configuration, etc.

The configuration file content can be discussed further in this issue.
Ideally the file can be considered optional for a project if all options have a default value.

📈 Subtasks

  • define the file content, and the default values
  • implement the build command using the configuration
  • implement the run command using the configuration
  • implement the deploy command using the configuration

🎯 Definition of Done

  • build based on configuration
  • run based on configuration
  • allow novel use cases for the CLI, like lambada applications

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions