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

fix(bin): Refactor List Subcommand #62

Open
Tracked by #17
refcell opened this issue Oct 17, 2023 · 0 comments
Open
Tracked by #17

fix(bin): Refactor List Subcommand #62

refcell opened this issue Oct 17, 2023 · 0 comments
Labels
A-bin Area: Binary related alpha C-feature Category: Features

Comments

@refcell
Copy link
Collaborator

refcell commented Oct 17, 2023

Description

The current opup list subcommand fetches a simple list of docker container information using the op-composer.

This subcommand should be migrated to a more generic opup inspect subcommand that inspects op stack info.
It should build a config from the stack.toml present in the executing directory or the global directory and use this config (along with its various component configs) to check if those components are running (docker or otherwise). This could probably be done by checking ports or alternatively, wrapping components with an op-up specific endpoint for querying the status of the component.

Other information like persistent volumes/data dirs could be queried using flags to inspect (e.g. opup inspect --volumes)

inspect could also provide a method of interacting directly with a component or changing its configuration on the fly. For example, opup inspect --mod <component_name>, which would open up a subshell with specific commands into that component. It might be easier to do this as a separate subcommand to the op-up binary though in another ticket like opup edge <component_name>.

@refcell refcell added A-bin Area: Binary related C-feature Category: Features alpha labels Oct 17, 2023
@refcell refcell changed the title fix(bin): Migrate List Subcommand fix(bin): Refactor List Subcommand Oct 17, 2023
@refcell refcell mentioned this issue Oct 17, 2023
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bin Area: Binary related alpha C-feature Category: Features
Projects
None yet
Development

No branches or pull requests

1 participant