keep-starknet-strange / madara-tsukuyomi

Madara Desktop Application
MIT License
20 stars 18 forks source link

Check if docker is installed before starting the Apps #19

Open apoorvsadana opened 10 months ago

apoorvsadana commented 10 months ago

Right now, the Apps section assume Docker is already installed and try to pull and run the app if the user interacts with it. However, this maybe not be true since the people using the app are non devs. Hence, we want a feature to check if Docker is installed or not and accordingly install it.

User flow

  1. User clicks on the Apps section
  2. renderer calls main to check if docker is installed
    • YES: move to step 3
    • NO: Give a message in full screen saying Docker is not installed and a once click button which installs it and shows the progress while installing. Start the docker daemon after installation.
  3. renderer calls main to check if daemon is running
    • YES: move to step 4
    • NO: Start the daemon
  4. Show the apps screen

Currently, we go directly from 1 -> 4 so the apps break if docker is not installed or the daemon isn't running.

Notes

NikolaGrujicic commented 10 months ago

i will take this

TedZy829 commented 10 months ago

may I know if this task is done already or is it still open for contributors?

apoorvsadana commented 10 months ago

It's open! @NikolaGrujicic is working on another task atm so you can pick this if you like

apoorvsadana commented 10 months ago

Let me know if you're picking this up @TedZy829, I will assign it to you

TedZy829 commented 10 months ago

oh okay, is there any estimation on how long to finish this task?

apoorvsadana commented 10 months ago

@TedZy829 that would depend on your familiarity with electron and the app itself. Since this is your first issue it will take longer than usual as well. If you want to pick something smaller, I would suggest trying some of the other good first issues :). They are smaller than this one.

Rajdeep1311 commented 9 months ago

I guess writing a shell script might do the job, if docker is installed it won't install otherwise it would.

0xGavinOwen commented 9 months ago

can i take this issue?

apoorvsadana commented 9 months ago

Hey @Rajdeep1311, sorry for the late reply. We want the logic of checking installed/not installed to be packaged within the code itself.

apoorvsadana commented 9 months ago

@Rajdeep1311 are you interested in picking up an issue?