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

Single command installation #129

Closed
dhsathiya opened this issue Mar 11, 2024 · 3 comments · Fixed by #171
Closed

Single command installation #129

dhsathiya opened this issue Mar 11, 2024 · 3 comments · Fixed by #171
Labels
feature-request Feature Request

Comments

@dhsathiya
Copy link
Member

Need to have a single installer script that takes care of all the dependencies required for FM and then installs FM as well.
example:

wget -qO ee rt.cx/ee4 && sudo bash ee
@Xieyt Xieyt added the feature-request Feature Request label Mar 19, 2024
@Xieyt
Copy link
Collaborator

Xieyt commented Mar 19, 2024

@dhsathiya Could we introduce something like fm self setup command within fm instead of the external script?

I am confused on as Which is more suitable and why? 🤔

@Xieyt
Copy link
Collaborator

Xieyt commented Mar 28, 2024

For now the script will only work on MacOS and Ubuntu.

Mac Steps:

  • Check if Homebrew is installed. If not, install it.
  • Check if Docker is installed. If not, install it with Homebrew.
  • See if PyEnv is available:
    • If yes, check Python and Pip. Install them with PyEnv if missing.
    • If no, install Python and Pip with Homebrew.
  • Install 'fm' using Pip.
  • Open Docker Desktop and tell the user to set it up.

Ubuntu Steps:

  • Check if docker is installed. If not, install it with apt.
  • Check if docker compose is installed. If not, install it with apt.
  • Add the current user to the Docker group if they're not already in it.
  • Start the Docker service.
  • See if PyEnv is available:
    • If yes, check Python and Pip. Install them with PyEnv if missing.
    • If no, install Python and Pip with Apt.
  • Install 'fm' using Pip.

This script does all this in unattended way.

@dhsathiya What more can be added ?

@Xieyt
Copy link
Collaborator

Xieyt commented May 6, 2024

For now the script will only work on MacOS and Ubuntu.

Mac Steps:

* Check if Homebrew is installed. If not, install it.

* Check if Docker is installed. If not, install it with Homebrew.

* See if PyEnv is available:
  
  * If yes, check Python and Pip. Install them with PyEnv if missing.
  * If no, install Python and Pip with Homebrew.

* Install 'fm' using Pip.

* Open Docker Desktop and tell the user to set it up.

Ubuntu Steps:

* Check if docker is installed. If not, install it with apt.

* Check if docker compose is installed. If not, install it with apt.

* Add the current user to the Docker group if they're not already in it.

* Start the Docker service.

* See if PyEnv is available:
  
  * If yes, check Python and Pip. Install them with PyEnv if missing.
  * If no, install Python and Pip with Apt.

* Install 'fm' using Pip.

This script does all this in unattended way.

@dhsathiya What more can be added ?

Here is the script which follows the above logic.

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

Successfully merging a pull request may close this issue.

2 participants