You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-ColorText"Welcome to DocsGPT Setup!"-ForegroundColor "White"-Bold
225
227
Write-ColorText"How would you like to proceed?"-ForegroundColor "White"
226
-
Write-ColorText"1) Use DocsGPT Public API Endpoint (simple and free)"-ForegroundColor "Yellow"
228
+
Write-ColorText"1) Use DocsGPT Public API Endpoint (simple and free, uses pre-built Docker images from Docker Hub for fastest setup)"-ForegroundColor "Yellow"
227
229
Write-ColorText"2) Serve Local (with Ollama)"-ForegroundColor "Yellow"
228
230
Write-ColorText"3) Connect Local Inference Engine"-ForegroundColor "Yellow"
229
231
Write-ColorText"4) Connect Cloud API Provider"-ForegroundColor "Yellow"
Write-ColorText"By default, DocsGPT uses pre-built images from Docker Hub for a fast, reliable, and consistent experience. This avoids local build errors and speeds up onboarding. Advanced users can choose to build images locally if needed."-ForegroundColor "White"
throw"Docker compose build or up failed with exit code $LASTEXITCODE"
716
+
throw"Docker compose pull failed with exit code $LASTEXITCODE"
712
717
}
718
+
719
+
& docker compose --env-file "$ENV_FILE"-f"$COMPOSE_FILE" up -d
713
720
714
721
Write-Host""
715
722
Write-ColorText"DocsGPT is now configured to use $provider_name on http://localhost:5173"-ForegroundColor "Green"
@@ -735,42 +742,46 @@ while ($true) {
735
742
736
743
switch ($main_choice) {
737
744
"1" {
745
+
$COMPOSE_FILE=$COMPOSE_FILE_HUB
738
746
Use-DocsPublicAPIEndpoint
739
747
$exitLoop=$true# Set flag to true on completion
740
748
break
741
749
}
742
750
"2" {
743
751
Serve-LocalOllama
744
-
# Only exit the loop if user didn't press "b" to go back
745
752
if ($ollama_choice-ne"b"-and$ollama_choice-ne"B") {
746
753
$exitLoop=$true
747
754
}
748
755
break
749
756
}
750
757
"3" {
751
758
Connect-LocalInferenceEngine
752
-
# Only exit the loop if user didn't press "b" to go back
753
759
if ($engine_choice-ne"b"-and$engine_choice-ne"B") {
754
760
$exitLoop=$true
755
761
}
756
762
break
757
763
}
758
764
"4" {
759
765
Connect-CloudAPIProvider
760
-
# Only exit the loop if user didn't press "b" to go back
761
766
if ($provider_choice-ne"b"-and$provider_choice-ne"B") {
762
767
$exitLoop=$true
763
768
}
764
769
break
765
770
}
771
+
"5" {
772
+
Write-Host""
773
+
Write-ColorText"You have selected to build images locally. This is recommended for developers or if you want to test local changes."-ForegroundColor "Yellow"
echo -e "${DEFAULT_FG}By default, DocsGPT uses pre-built images from Docker Hub for a fast, reliable, and consistent experience. This avoids local build errors and speeds up onboarding. Advanced users can choose to build images locally if needed.${NC}"
0 commit comments