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

Added functionaility to use APT packages #1164

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added functionaility to use APT packages
  • Loading branch information
JW-NAIz committed Aug 31, 2023
commit 927e29bf54f4353015ee327281cb6efaa5d5dece
11 changes: 10 additions & 1 deletion install_tool_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
#!/bin/bash

# Update and upgrade apt settings and apps
apt update && apt upgrade -y
xargs apt install -y < /app/requirements_apt.txt

# Run the project's main requirements.txt
pip install -r /app/requirements.txt

# Loop through the tools directories and install their requirements.txt if they exist
for tool in /app/superagi/tools/* /app/superagi/tools/external_tools/* /app/superagi/tools/marketplace_tools/* ; do
# Loop through the tools directories and install their apt_requirements.txt if they exist
if [ -d "$tool" ] && [ -f "$tool/requirements_apt.txt" ]; then
echo "Installing apt requirements for tool: $(basename "$tool")"
xargs apt install -y < "$tool/requirements_apt.txt"
fi
# Loop through the tools directories and install their requirements.txt if they exist
if [ -d "$tool" ] && [ -f "$tool/requirements.txt" ]; then
echo "Installing requirements for tool: $(basename "$tool")"
pip install -r "$tool/requirements.txt"
Expand Down