Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.3, with refactoring #433

Merged
merged 7 commits into from
Oct 17, 2023
Merged

Version 0.3, with refactoring #433

merged 7 commits into from
Oct 17, 2023

Conversation

hoh
Copy link
Member

@hoh hoh commented Oct 11, 2023

This is the work in progress for the code refactoring discussed on the community forum.

Checklist:

  • Restructure the code
  • Add a pyproject.toml file
  • pip install works
  • Installation from .deb packages works
  • CLI command to start the orchestrator
  • CI is updated to the new structure

Second phase:

  • CLI command to run a specific VM without the orchestrator
  • The orchestrator uses systemd to start and stop instances

src/aleph/vm/orchestrator/supervisor.py Dismissed Show dismissed Hide dismissed
@hoh hoh force-pushed the version-0.3.0 branch 5 times, most recently from cf17b83 to 1ee2e42 Compare October 17, 2023 11:40
@hoh hoh changed the title Version 0.3.0, with refactoring Version 0.3, with refactoring Oct 17, 2023
hoh added 6 commits October 17, 2023 15:22
This refactors the codebase in order to make it possile to "pip install"
it from other projects and reuse its components.

Based on the proposal on:
https://community.aleph.im/t/aleph-vm-refactoring-proposal/84

```
.
├── aleph
│   └── vm
│       ├── controller
│       │   ├── firecracker
│       │   │   ├── executable
│       │   │   ├── instance
│       │   │   └── program
│       │   └── qemu
│       ├── guest_api
│       ├── metrics
│       ├── orchestrator
│       │   ├── network
│       │   └── views
│       ├── snapthots
│       └── tests
├── examples
├── kernels
├── packaging
└── runtimes
```
This adds a `pyproject.toml` file for pip, with dependencies
and commands to test the software.
This checks for the presence of these commands when starting the service, and recommends a way to install them when available.
Solution: Handle that scenario and dismiss this specific error.
@hoh hoh requested a review from nesitor October 17, 2023 13:53
@hoh hoh marked this pull request as ready for review October 17, 2023 13:58
Use the opportunity to upgrade Kubo 21 -> 23
@hoh hoh merged commit 45a727d into main Oct 17, 2023
18 checks passed
@hoh hoh deleted the version-0.3.0 branch October 17, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant