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

Add DependencyManager #148

Open
CheatCod opened this issue May 4, 2023 · 0 comments
Open

Add DependencyManager #148

CheatCod opened this issue May 4, 2023 · 0 comments
Assignees

Comments

@CheatCod
Copy link
Member

CheatCod commented May 4, 2023

Description

Runtime dependencies such as jre are stored under the bin directory. This is done so that multiple instances can share a dependency.

Currently, each instance directly checks for the file under the bin directory and downloads it if it's not there. This is quite error-prone and does not work well with Lodestone Atom.

The DependencyManager will be responsible for managing dependencies including registration, providing paths and deletion.

The methods are outlined as follows:

register() takes in a string id, a path to the dependency, and a map from name to paths

get() takes in a string id and returns the map from names to paths

DependencyManager should store its state to a json file under bin, and is able to restore from the file

Steps to reproduce (optional)

@hanmindev hanmindev mentioned this issue May 19, 2023
4 tasks
Ynng pushed a commit that referenced this issue Jul 17, 2023
add restart button to InstanceCard
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

No branches or pull requests

2 participants