Commit Graph

51 Commits

Author SHA1 Message Date
Yury Kossakovsky
c343d2c1e9 Add Weaviate service configuration and update documentation
- Introduced Weaviate service in docker-compose.yml with necessary environment variables and health checks.
- Updated Caddyfile to include reverse proxy settings for Weaviate with basic authentication.
- Enhanced README.md to document Weaviate's integration and access details.
- Modified scripts to generate secrets for Weaviate, including username and password handling.
- Updated final report script to display Weaviate configuration details for user clarity.
2025-05-24 09:41:14 -06:00
Yury Kossakovsky
ab7997a4ca Remove redundant log messages in scripts for improved clarity
- Eliminated unnecessary log_info statements in 03_generate_secrets.sh, 06_final_report.sh, and apply_update.sh to streamline output and enhance readability.
- Adjusted echo statements in 06_final_report.sh to maintain focus on essential information without clutter.
2025-05-23 17:37:27 -06:00
Yury Kossakovsky
eeb19f590f Refactor logging and user prompts in installation and wizard scripts
- Enhanced user feedback by replacing echo statements with log_info and log_error for better consistency in logging.
- Added empty echo statements before user prompts in 03_generate_secrets.sh to improve readability.
- Removed unnecessary log messages related to Caddy installation and uninstallation in 03_generate_secrets.sh.
- Updated 04_wizard.sh to include utility sourcing and improved logging for service selection and profile updates.
- Streamlined apply_update.sh by removing redundant log messages regarding Supabase compose file checks.
2025-05-23 15:05:23 -06:00
Yury Kossakovsky
3fd4cc9c23 Update Qdrant service configuration in docker-compose.yml and final_report.sh
- Removed comments for gRPC and HTTP REST API ports in docker-compose.yml to simplify the configuration.
- Corrected the internal REST API access message in final_report.sh to reflect the updated port usage, ensuring clarity in service access instructions.
2025-05-22 17:52:51 -06:00
Yury Kossakovsky
1db81b35da Update Supabase reporting in final_report.sh to enhance clarity
- Removed detailed PostgreSQL connection information to streamline output.
- Added Service Role Secret to provide necessary context for Supabase configuration.
- Improved overall readability of the Supabase section in the final report.
2025-05-22 17:38:37 -06:00
Yury Kossakovsky
6cd3eb7927 Refactor apply_update.sh to streamline service update process
- Removed redundant service selection wizard invocation from the pull section, ensuring it runs first to update service choices.
- Enhanced logging messages for clarity regarding the Supabase compose file inclusion and Docker image pulling.
- Improved error handling for the service selection wizard failure, preventing continuation of the update process if it fails.
2025-05-22 14:19:28 -06:00
Yury Kossakovsky
5eae1e4872 Remove container removal command from apply_update.sh for 'localai' project to streamline shutdown process and improve error handling. 2025-05-22 14:11:08 -06:00
Yury Kossakovsky
f5aa8a5ddf Refactor service management in start_services.py and scripts
- Updated the is_supabase_enabled function to read COMPOSE_PROFILES from the .env file instead of os.environ, improving clarity.
- Simplified the run_command function by removing the unused env parameter.
- Refined the stop_existing_containers function to streamline the shutdown process for the 'localai' project, conditionally including the Supabase compose file.
- Enhanced logging for better user feedback during service management operations.
- Adjusted the scripts for generating secrets and applying updates to improve clarity and functionality.
2025-05-22 14:09:28 -06:00
Yury Kossakovsky
394e4669eb Refactor installation summary logging in final report generation
- Moved the installation summary logging from 06_final_report.sh to install.sh to ensure it is displayed immediately after the installation steps.
- Improved the organization of the final report generation process by consolidating related logging functionality.
- Enhanced user visibility of installation steps performed during the setup process.
2025-05-22 11:34:45 -06:00
Yury Kossakovsky
8c017549f2 Add final report display in apply_update.sh to show service credentials
- Implemented a final report display feature in apply_update.sh to show service credentials post-update.
- Added error handling to log a warning if the final report fails to display, ensuring the update process remains unaffected.
- Enhanced user experience by providing a summary of service credentials after a successful update.
2025-05-22 11:29:09 -06:00
Yury Kossakovsky
2baafa495b Refactor service selection in wizard script and integrate into update process
- Updated the service selection logic in 04_wizard.sh to dynamically populate available services based on current COMPOSE_PROFILES from the .env file.
- Enhanced the Ollama hardware profile selection to reflect user choices and defaults based on existing profiles.
- Integrated the service selection wizard into apply_update.sh to streamline the update process and ensure user-defined service configurations are applied.
- Improved user prompts and handling for service choices, enhancing overall configuration experience.
2025-05-22 11:27:45 -06:00
Yury Kossakovsky
ae5cd1aab2 Enhance n8n import handling in apply_update.sh and update secrets generation
- Added logic to determine the N8N_WORKFLOWS_IMPORTED_EVER variable based on existing environment values and user input.
- Updated the apply_update.sh script to check if workflows have been imported previously, modifying the RUN_N8N_IMPORT and N8N_WORKFLOWS_IMPORTED_EVER variables accordingly.
- Improved user prompts for importing n8n workflows, ensuring a smoother configuration experience.
2025-05-22 11:22:11 -06:00
Yury Kossakovsky
5d1e46430c Add PostgreSQL configuration for n8n and Langfuse in final report script
- Enhanced the final report script to include details for a standalone PostgreSQL instance used by n8n and Langfuse.
- Added Ollama service information for internal access based on active profiles.
- Clarified the distinction between Supabase's internal PostgreSQL and the standalone instance for better user understanding.
2025-05-15 20:48:32 -06:00
Yury Kossakovsky
d2abd6e036 Add Ollama service configuration to docker-compose.yml and update related files
- Introduced Ollama service with CPU and GPU profiles in docker-compose.yml, allowing users to run large language models locally.
- Added Ollama selection option in the wizard script for hardware profile configuration.
- Updated README.md to include Ollama as a new available service.
- Adjusted .env.example to include GRAFANA_HOSTNAME in the correct position.
2025-05-15 20:44:36 -06:00
Yury Kossakovsky
09a369a5d2 Enhance TMP_ENV_FILE handling in 03_generate_secrets.sh
- Added a check to prevent duplicate entries when appending environment variables to TMP_ENV_FILE, ensuring cleaner and more efficient script execution.
2025-05-15 19:54:17 -06:00
Yury Kossakovsky
0098378fd7 Refactor install.sh to streamline utilities sourcing
- Moved the sourcing of the utilities file to the beginning of the script for better organization and clarity.
- Removed redundant sourcing of the utilities file from the middle of the script.
2025-05-15 19:46:01 -06:00
Yury Kossakovsky
1da5d2851c Implement nested n8n-installer directory check in install.sh
- Added logic to detect and correct nested n8n-installer directory structures.
- Included re-execution of the install script from the corrected path to ensure proper script execution and path resolution.
2025-05-15 19:24:14 -06:00
Yury Kossakovsky
c3076a9990 Add Letta service configuration and update documentation
- Added Letta service to docker-compose.yml with necessary environment variables and volume configuration.
- Updated Caddyfile to include reverse proxy for Letta.
- Included Letta in the README.md for service availability and provided a brief description.
- Enhanced scripts to generate Letta server password and report its status in the final report.
- Updated .env.example to include Letta hostname and server password variable.
2025-05-15 19:11:33 -06:00
Yury Kossakovsky
0bada5dde9 Remove logging of current n8n worker count in apply_update.sh to streamline user prompts and enhance clarity during input collection. 2025-05-14 14:41:07 -06:00
Yury Kossakovsky
cd866edbdd Improve user prompts in 03_generate_secrets.sh and apply_update.sh
- Standardized prompt formatting by removing unnecessary newline characters, enhancing clarity and consistency in user interactions.
- Updated prompts to ensure a more straightforward user experience during input collection, particularly for domain name, email, and n8n worker count inputs.
2025-05-14 14:37:55 -06:00
Yury Kossakovsky
61ebcc8982 Refine n8n workflow import prompt in apply_update.sh
- Updated the user prompt to clarify the response options for importing n8n workflows, enhancing user understanding and interaction.
- Ensured consistency in prompt formatting across the script for improved user experience.
2025-05-14 14:35:57 -06:00
Yury Kossakovsky
a1a1d2509a Enhance user prompts in 03_generate_secrets.sh and apply_update.sh
- Updated prompts to use printf for better formatting, ensuring dynamic inclusion of variable values in user messages.
- Improved user experience by making prompts clearer and more informative during input collection.
2025-05-14 14:35:05 -06:00
Yury Kossakovsky
ea8e2e07ed Enhance user prompts in 03_generate_secrets.sh and apply_update.sh
- Updated prompts to include newline characters for better readability, improving user experience during input collection.
- Ensured consistency in user interaction across scripts by standardizing prompt formatting.
2025-05-14 14:30:43 -06:00
Yury Kossakovsky
4022be004d Refactor n8n workflow import prompt in apply_update.sh
- Simplified the user prompt for importing n8n workflows by removing the check for the RUN_N8N_IMPORT variable being true, allowing users to indicate if they have already imported the workflow.
- Retained the logic for modifying the RUN_N8N_IMPORT variable based on user input, ensuring flexibility in workflow management.
2025-05-14 14:26:01 -06:00
Yury Kossakovsky
96e640b33c Enhance update script with git reset functionality
- Added a git reset --hard HEAD command to the update.sh script to ensure a clean working directory before pulling the latest changes. This helps prevent issues caused by uncommitted local changes during updates, while also logging a warning if the reset fails.
2025-05-14 14:20:51 -06:00
Yury Kossakovsky
27634c630f Enhance n8n workflow import handling in apply_update.sh
- Added a check to skip the import prompt if RUN_N8N_IMPORT is already set to true in the .env file, improving user experience by preventing unnecessary prompts.
- Retained the existing logic for modifying the RUN_N8N_IMPORT variable based on user input, ensuring flexibility in workflow management.
2025-05-14 14:15:59 -06:00
Yury Kossakovsky
8e6ba6977b Add Redis configuration output for n8n and langfuse profiles in final report script
- Enhanced the final report script to include Redis connection details when the n8n or langfuse profiles are active.
- This addition provides clearer insights into internal service communication settings, improving the overall utility of the report.
2025-05-13 17:30:28 -06:00
Yury Kossakovsky
2835253eee Update system preparation script to include python3-pip installation
- Added python3-pip to the list of standard CLI tools installed in the system preparation script, enhancing the environment setup for Python package management.
2025-05-13 17:30:15 -06:00
Yury Kossakovsky
a40bced3f3 Add path to apply_update.sh in update script
- Updated the update.sh script to define the path for the apply_update.sh script, ensuring it can be referenced correctly during the update process.
- This change enhances the script's functionality by establishing a clear link to the new update handling script introduced in the previous commit.
2025-05-12 12:31:27 -06:00
Yury Kossakovsky
d6f3522ca7 Add apply_update.sh script to streamline update process
- Introduced a new script, apply_update.sh, to handle the update process, including stopping services, pulling the latest container versions, and modifying the .env file based on user input for n8n workflow import and worker count.
- Refactored update.sh to delegate the update tasks to apply_update.sh, improving code organization and maintainability.
- Enhanced error handling and logging throughout the update process for better user experience and troubleshooting.
2025-05-12 12:25:58 -06:00
Yury Kossakovsky
8716bd7fb4 Enhance update script to allow user input for n8n worker count
- Added functionality to prompt the user for a new n8n worker count during the update process, including validation for positive integers.
- Improved error handling and logging for cases where the N8N_WORKER_COUNT line is missing in the .env file, ensuring better user guidance and script robustness.
2025-05-12 12:14:18 -06:00
Yury Kossakovsky
257656d53e Refactor langfuse profile output in final report script
- Moved the langfuse profile output section to ensure it includes user email and password details, enhancing the clarity and completeness of the final report.
2025-05-12 12:14:14 -06:00
Yury Kossakovsky
4737b5b950 Enhance unquoting logic in secrets generation script
- Updated the unquoting mechanism in 03_generate_secrets.sh to repeatedly remove surrounding quotes from variable values, improving the handling of quoted strings and ensuring accurate environment variable assignment.
2025-05-11 17:16:28 -06:00
Yury Kossakovsky
8ef4cee057 Update run services script path in update.sh
- Changed the path of the run services script from 04_run_services.sh to 05_run_services.sh to reflect the updated script structure.
2025-05-09 17:10:05 -06:00
Yury Kossakovsky
25e915a729 Add n8n worker count configuration to Docker Compose and secrets generation script
- Introduced a new deploy section in docker-compose.yml to set the number of n8n worker replicas based on the N8N_WORKER_COUNT environment variable.
- Enhanced 03_generate_secrets.sh to prompt users for the number of n8n workers, including validation and confirmation steps for input, ensuring a positive integer is set.
- Updated generated values and found variables to include N8N_WORKER_COUNT for better environment management.
2025-05-09 17:08:54 -06:00
Yury Kossakovsky
1128e71534 Update Docker Compose configuration and enhance final report script
- Changed the database host in docker-compose.yml from 'db' to 'postgres' for clarity.
- Added a function in 06_final_report.sh to check if specific profiles are active, improving the conditional display of service access credentials based on active profiles.
2025-05-09 16:56:56 -06:00
Yury Kossakovsky
04e4722016 Consolidate python-dotenv installation in system preparation script
- Merged the installation of the python3-dotenv library into the main package installation command for streamlined setup.
- Removed separate logging for python-dotenv installation, simplifying the script while maintaining user awareness during the process.
2025-05-09 16:09:12 -06:00
Yury Kossakovsky
9112b5eb2e Refactor python-dotenv installation in system preparation script
- Changed the installation method of the python-dotenv library from pip to apt for better package management.
- Updated logging to reflect the new installation approach, enhancing user awareness during setup.
2025-05-09 16:08:28 -06:00
Yury Kossakovsky
7de541a9cb Enhance system preparation script to include python-dotenv installation
- Added installation of python3-pip and the python-dotenv library to the system preparation script.
- Improved logging to indicate the installation of the python-dotenv library for better user awareness.
2025-05-09 16:06:40 -06:00
Yury Kossakovsky
ad5a76f402 Implement Supabase service management in start_services.py and update 04_wizard.sh
- Added functionality to check if Supabase is enabled via the .env file before cloning the repository and preparing the environment.
- Updated the command execution flow to conditionally include Supabase in the Docker commands based on its enabled status.
- Enhanced the service selection wizard in 04_wizard.sh to include Supabase as an option for user selection.
2025-05-09 15:58:33 -06:00
Yury Kossakovsky
b532c1a813 Refactor quoting in 03_generate_secrets.sh for consistency
- Updated the quoting style for variable assignments to use standard double quotes instead of escaped quotes.
- Ensured consistent formatting across all variable assignments to improve readability and maintainability.
2025-05-09 15:54:05 -06:00
Yury Kossakovsky
fb12b8eda4 Enhance 04_wizard.sh to manage DEBIAN_FRONTEND environment variable for whiptail compatibility
- Store the original DEBIAN_FRONTEND value before setting it to 'dialog' for whiptail.
- Restore the original DEBIAN_FRONTEND value after the checklist execution.
- Improve formatting of the whiptail checklist command for better readability.
2025-05-09 15:48:34 -06:00
Yury Kossakovsky
644dc3ed79 Fix regex for email validation and correct comment formatting in 03_generate_secrets.sh 2025-05-09 15:42:31 -06:00
Yury Kossakovsky
c3e95f7f98 Change permissions of 04_wizard.sh to make it executable 2025-05-09 15:32:40 -06:00
Yury Kossakovsky
29a2c30978 Update install.sh to reflect script renaming and reordering
- Replaced "00_wizard.sh" with "04_wizard.sh" in the required scripts list.
- Renamed "04_run_services.sh" to "05_run_services.sh" and "05_final_report.sh" to "06_final_report.sh" for better clarity and organization of the installation process.
2025-05-09 15:30:47 -06:00
Yury Kossakovsky
b7ff4399d1 Add service profiles to docker-compose.yml and implement service selection wizard
- Added profiles for various services in docker-compose.yml to enhance service management.
- Introduced a new interactive wizard script (04_wizard.sh) for user-friendly service selection during installation.
- Updated installation script (install.sh) to incorporate the service selection process.
- Added final report script (06_final_report.sh) to summarize installation steps and provide access credentials.
- Enhanced system preparation script (01_system_preparation.sh) by including 'whiptail' for the wizard functionality.
2025-05-09 15:24:13 -06:00
Yury Kossakovsky
e5eb607637 Enhance .env file generation in 03_generate_secrets.sh
- Improved handling of existing .env values by reading and populating missing variables during the generation process.
- Added checks to utilize existing user inputs for email and OpenAI API key, allowing for a smoother setup experience.
- Refined the logic for generating JWT secrets and password hashes, ensuring they are only created if not already present.
- Enhanced user prompts for importing workflows and clarified logging messages for better user guidance.
2025-05-08 16:14:16 -06:00
Yury Kossakovsky
8efb37c8b3 Add LANGFUSE initialization variables to .env.example and docker-compose.yml
- Introduced new environment variables for LANGFUSE initialization, including public key, secret key, user email, and user password.
- Updated docker-compose.yml to set default values for organization and project identifiers, enhancing configuration clarity.
- Modified 03_generate_secrets.sh to generate and include new LANGFUSE-related secrets in the environment setup process.
2025-05-08 16:04:59 -06:00
Yury Kossakovsky
063adc22bb Add PostgreSQL connection details to final report script
- Included environment variable outputs for PostgreSQL configuration, enhancing visibility of database connection settings.
- Added host, port, database, user, and password information to the final report for better clarity during setup.
2025-05-08 15:52:26 -06:00
Yury Kossakovsky
9fbe779677 Refactor caddy check in 03_generate_secrets.sh
- Moved the caddy availability check to a later point in the script after the installation process.
- Improved script flow by ensuring caddy is checked only after attempting to install it, enhancing user experience.
2025-05-05 14:14:16 -06:00