chore: consolidate setup scripts and improve installation process
Merge setup.sh into install.sh to create a single comprehensive installer that handles dependency installation, Gitea authentication, repository cloning, git credential configuration, and CLI tool installation. Add ASCII art banner, improve user prompts with better formatting, and enhance error handling throughout the installation flow.
This commit is contained in:
24
README.md
24
README.md
@@ -11,10 +11,12 @@ curl -fsSL https://gitea.app.monadical.io/jose/internalai-setup/raw/branch/main/
|
||||
```
|
||||
|
||||
This will:
|
||||
1. Check system dependencies
|
||||
2. Prompt for Gitea authentication
|
||||
3. Clone the InternalAI platform repository
|
||||
4. Install the `internalai` command-line tool
|
||||
1. Check system dependencies (git, docker, docker compose, bash)
|
||||
2. Install missing dependencies (just, uv)
|
||||
3. Set up Gitea authentication
|
||||
4. Clone the InternalAI platform repository
|
||||
5. Configure git credentials
|
||||
6. Install the `internalai` command-line tool
|
||||
|
||||
## Prerequisites
|
||||
|
||||
@@ -24,6 +26,7 @@ Before installing, ensure you have:
|
||||
- **Docker** - Container runtime (v20.10+)
|
||||
- **Docker Compose** - Container orchestration (v2.0+)
|
||||
- **Just** - Command runner (will auto-install if missing)
|
||||
- **uv** - Python package manager (will auto-install if missing)
|
||||
|
||||
### Platform Requirements
|
||||
|
||||
@@ -236,7 +239,8 @@ If the automated installer doesn't work, you can install manually:
|
||||
|
||||
2. Install the CLI:
|
||||
```bash
|
||||
./scripts/install.sh
|
||||
sudo cp scripts/internalai /usr/local/bin/internalai
|
||||
sudo chmod +x /usr/local/bin/internalai
|
||||
```
|
||||
|
||||
3. Configure the platform:
|
||||
@@ -262,11 +266,17 @@ sudo rm /usr/local/bin/internalai # Remove CLI
|
||||
|
||||
```
|
||||
internalai-setup/
|
||||
├── install.sh # One-liner installer
|
||||
├── setup.sh # Main setup script
|
||||
├── install.sh # Complete installation script
|
||||
└── README.md # This file
|
||||
```
|
||||
|
||||
The installer handles:
|
||||
- Dependency checking and installation (just, uv)
|
||||
- Gitea authentication (token or SSH)
|
||||
- Repository cloning
|
||||
- Git credential configuration
|
||||
- CLI tool installation
|
||||
|
||||
The actual platform code is in the private `internalai` repository.
|
||||
|
||||
### Contributing
|
||||
|
||||
Reference in New Issue
Block a user