comment out bundle approach
This commit is contained in:
+2
-1
@@ -51,7 +51,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
|
|
||||||
# Copy application code
|
# Copy application code
|
||||||
COPY api.py .
|
COPY api.py .
|
||||||
COPY chrome_bundle/ ./chrome_bundle/
|
# Chrome bundle approach, commented out opting for direct download
|
||||||
|
#COPY chrome_bundle/ ./chrome_bundle/
|
||||||
COPY sources/ ./sources/
|
COPY sources/ ./sources/
|
||||||
COPY prompts/ ./prompts/
|
COPY prompts/ ./prompts/
|
||||||
COPY crx/ crx/
|
COPY crx/ crx/
|
||||||
|
|||||||
+20
-19
@@ -62,26 +62,27 @@ if [ ! -f "docker-compose.yml" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# bundle based approach, commented out in favor of direct download for now
|
||||||
# Download and extract Chrome bundle if not present
|
# Download and extract Chrome bundle if not present
|
||||||
echo "Checking Chrome bundle..."
|
#echo "Checking Chrome bundle..."
|
||||||
if [ ! -d "chrome_bundle/chrome136" ]; then
|
#if [ ! -d "chrome_bundle/chrome136" ]; then
|
||||||
echo "Chrome bundle not found. Downloading..."
|
# echo "Chrome bundle not found. Downloading..."
|
||||||
mkdir -p chrome_bundle
|
# mkdir -p chrome_bundle
|
||||||
curl -L https://github.com/tcsenpai/agenticSeek/releases/download/utility/chrome136.zip -o /tmp/chrome136.zip
|
# curl -L https://github.com/Fosowl/agenticSeek/releases/download/utility/chrome136.zip -o /tmp/chrome136.zip
|
||||||
if [ $? -ne 0 ]; then
|
# if [ $? -ne 0 ]; then
|
||||||
echo "Error: Failed to download Chrome bundle"
|
# echo "Error: Failed to download Chrome bundle"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
unzip -q /tmp/chrome136.zip -d chrome_bundle/
|
# unzip -q /tmp/chrome136.zip -d chrome_bundle/
|
||||||
if [ $? -ne 0 ]; then
|
# if [ $? -ne 0 ]; then
|
||||||
echo "Error: Failed to extract Chrome bundle"
|
# echo "Error: Failed to extract Chrome bundle"
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
rm /tmp/chrome136.zip
|
# rm /tmp/chrome136.zip
|
||||||
echo "Chrome bundle downloaded and extracted successfully"
|
# echo "Chrome bundle downloaded and extracted successfully"
|
||||||
else
|
#else
|
||||||
echo "Chrome bundle already exists"
|
# echo "Chrome bundle already exists"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Stop all running containers to ensure a clean state
|
# Stop all running containers to ensure a clean state
|
||||||
echo "Warning: stopping all docker containers (t-4 seconds)..."
|
echo "Warning: stopping all docker containers (t-4 seconds)..."
|
||||||
|
|||||||
Reference in New Issue
Block a user