-
Notifications
You must be signed in to change notification settings - Fork 45.7k
Feat(Agpt Platform Installer): Add initial setup scripts for linux and windows #9912
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
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for auto-gpt-docs-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Here's the code health analysis summary for commits Analysis Summary
|
✅ Deploy Preview for auto-gpt-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -0,0 +1,76 @@ | |||
# AutoGPT Platform Installers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this a docs page not a readme IMO. this can point to the docs page though. single source of truth
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a great start. I'd love to see us extend this to support package managers etc later on but its a good place one
where git >nul 2>&1 | ||
if %ERRORLEVEL% neq 0 ( | ||
echo. | ||
echo Error: Git is not installed. Please install Git and try again. | ||
echo Visit https://git-scm.com/downloads for installation instructions. | ||
echo Press Enter to exit... | ||
pause >nul | ||
exit /b 1 | ||
) else ( | ||
echo - Git is installed | ||
) | ||
|
||
:: Check if docker is installed | ||
where docker >nul 2>&1 | ||
if %ERRORLEVEL% neq 0 ( | ||
echo. | ||
echo Error: Docker is not installed. Please install Docker and try again. | ||
echo Visit https://docs.docker.com/get-docker/ for installation instructions. | ||
echo Press Enter to exit... | ||
pause >nul | ||
exit /b 1 | ||
) else ( | ||
echo - Docker is installed | ||
) | ||
|
||
:: Check if docker is running | ||
docker info >nul 2>&1 | ||
if %ERRORLEVEL% neq 0 ( | ||
echo Docker is not running. Please start Docker Desktop and try again. | ||
echo Press Enter to exit... | ||
pause >nul | ||
exit /b 1 | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally we check all of these before exiting so they can install them all at once
echo AutoGPT setup completed successfully! | ||
echo ------------------------------------- | ||
echo Your backend services are running in Docker. | ||
echo Your frontend application is running at http://localhost:3000 | ||
echo. | ||
echo Visit http://localhost:3000 in your browser to access AutoGPT. | ||
echo. | ||
echo To stop the services, close the npm terminal window and run 'docker compose down' in the AutoGPT\autogpt_platform directory. | ||
echo. | ||
echo Press Enter to exit the script (this will NOT stop the services)... | ||
pause >nul | ||
exit /b 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check we can access this page and the backend's health check before saying it worked
fi | ||
|
||
# Clean up temp files | ||
rm -f "$backend_log" "$frontend_log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we certain this will always work and never delete the wrong folder?
This PR adds two setup scripts that will setup autogpt fully, it has a windows .bat and a linux/mac .sh script, for now they are placed in a new folder called "Installer"
Note, the installers are supposed to be run outside of the autogpt repo folder like Desktop/in a new empy folder because it will clone the repo into the current directory.
once fully setup i plan to make it so these commands can be run with the following commands
Linux/Mac
curl -s https://setup.agpt.co/install.sh | bash
Windows cmd/powershell
Currently the commands above dont work but will later on!
Checklist 📋
For code changes:
install.sh
on a ubuntu system and it setup the platform fully.install.bat
on my windows system and it setup the platform fully.