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

feat: support to add configurable action btns for one-click apps #574

Open
tanmoysrt opened this issue May 5, 2024 · 3 comments
Open

feat: support to add configurable action btns for one-click apps #574

tanmoysrt opened this issue May 5, 2024 · 3 comments
Assignees
Labels
cool-feature enhancement New feature or request

Comments

@tanmoysrt
Copy link
Member

tanmoysrt commented May 5, 2024

Is your feature request related to a problem? Please describe

Usually for any kind of app, if we need to execute some operations like backup, restore, other options, we will attach to docker container and run some commands. In fewer cases, we also need to refer service configuration in database (like postgresql DSN)

Describe the solution you'd like

We need to extend the docs of stack, where we can provide this custom action buttons.
Specs will be like

  1. Button Name
  2. Required Inputs
    • Name of Input
    • Description
    • Type of Input (Text, Number, Dropdown)
  3. Output
    • Title
    • Description
    • Type (Text, File [Temporary, will be destroyed after download])
  4. Message
    • Success Message
    • Error Message
    • Warning before executing Message
  5. Command
    • Type (Exec, Text Interpolation)
    • Command / Text Format
    • It can have specific syntax and will be replaced by swiftwave before executing, like $env.<variable_name>

Note: If in any case, we need to store thing in file, using exec store in a temp directory and later use docker cp to copy from container to host and then from host using rsync, move to swiftwave node

Are you working on this?

Yes

@tanmoysrt tanmoysrt self-assigned this May 5, 2024
@tanmoysrt tanmoysrt added the enhancement New feature or request label May 5, 2024
@tanmoysrt
Copy link
Member Author

Delaying as user can still open terminal and do any operation.

@tanmoysrt
Copy link
Member Author

API docs to copy file from container - https://docs.docker.com/engine/api/v1.44/#tag/Container/operation/ContainerArchive

@tanmoysrt
Copy link
Member Author

Let's go ahead without this for v2 first release. People can use the web shell to run something (manual)
Current target is to make swiftwave stable and provide different config of apps (with sqlite / with mysql / with external mysql)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cool-feature enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant