Skip to content

Commit

Permalink
Fix playwright cache error during container restart (All-Hands-AI#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj authored Jul 19, 2024
1 parent 1761b88 commit b60890c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions containers/app/entrypoint.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ if [[ "$SANDBOX_USER_ID" -eq 0 ]]; then
echo "Running OpenDevin as root"
export RUN_AS_DEVIN=false
mkdir -p /root/.cache/ms-playwright/
mv /home/opendevin/.cache/ms-playwright/ /root/.cache/
if [ -d "/home/opendevin/.cache/ms-playwright/" ]; then
mv /home/opendevin/.cache/ms-playwright/ /root/.cache/
fi
"$@"
else
echo "Setting up enduser with id $SANDBOX_USER_ID"
Expand Down Expand Up @@ -52,7 +54,9 @@ else

mkdir -p /home/enduser/.cache/huggingface/hub/
mkdir -p /home/enduser/.cache/ms-playwright/
mv /home/opendevin/.cache/ms-playwright/ /home/enduser/.cache/
if [ -d "/home/opendevin/.cache/ms-playwright/" ]; then
mv /home/opendevin/.cache/ms-playwright/ /home/enduser/.cache/
fi

usermod -aG $DOCKER_SOCKET_GID enduser
echo "Running as enduser"
Expand Down

0 comments on commit b60890c

Please sign in to comment.