keep-starknet-strange/madara-tsukuyomi
Check if docker is installed before starting the Apps
Open
#19 opened on Aug 17, 2023
enhancementgood first issue
Repository metrics
- Stars
- (21 stars)
- PR merge metrics
- (PR metrics pending)
Description
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
- User clicks on the
Appssection renderercallsmainto check if docker is installed- YES: move to step 3
- NO: Give a message in full screen saying
Dockeris not installed and a once click button which installs it and shows the progress while installing. Start the docker daemon after installation.
renderercallsmainto check if daemon is running- YES: move to step 4
- NO: Start the daemon
- 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
- In linux, starting the daemon is a simple one line command
- In mac, starting the daemon isn't very simple and we can ideally use
colimato abstract the complications. You can read more about that here - We will need to check how it works on Windows
Design
- The design shouldn't be complicated for this and we can take inference from already existing components. If needed, I can make a sample screen as well.