docker /a0 mount fix

frdel committed Nov 19, 2024 at 09:34 UTC f59ac2b485486c5c435e24581205b900f693e40d
3 files changed +5 -5
docker/run/fs/exe/run_A0.sh
+2 -2
@@ -26,8 +26,8 @@ while true; do
26
27 setup_venv
28
29 - # Copy repository files if target is empty
30 - if [ -z "$(ls -A "$TARGET_DIR")" ]; then
29 + # Copy repository files if run_ui.py is missing in /a0 (if the volume is mounted)
30 + if [ ! -f "$TARGET_DIR/run_ui.py" ]; then
31 echo "Copying files from $SOURCE_DIR to $TARGET_DIR..."
32 cp -rn --no-preserve=ownership,mode "$SOURCE_DIR/." "$TARGET_DIR"
33 fi
docker/run/fs/ins/install_A0.sh
+2 -2
@@ -15,7 +15,7 @@ pip install --upgrade pip ipython requests
15 pip install torch --index-url https://download.pytorch.org/whl/cpu
16
17 # Install remaining A0 python packages
18 -pip install -r /github/agent-zero/requirements.txt
18 +pip install -r /git/agent-zero/requirements.txt
19
20 # Preload A0
21 -python /github/agent-zero/preload.py
21 +python /git/agent-zero/preload.py
docker/run/fs/ins/install_A02.sh
+1 -1
@@ -1,7 +1,7 @@
1 #!/bin/bash
2
3 # cachebuster script, this helps speed up docker builds
4 -rm -rf /github/agent-zero
4 +rm -rf /git/agent-zero
5
6 # run the original install script again
7 bash /ins/install_A0.sh