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

Add disk space monitoring and cleanup to Docker build workflow #6628

Closed
wants to merge 1 commit into from

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Feb 5, 2025

This PR adds disk space monitoring and cleanup steps to the Docker build workflow to help prevent disk space issues.

Changes:

  • Add disk space monitoring before build, after build, and after hash verification
  • Add Docker cleanup steps to free up space after major operations
  • Monitor largest files and directories to identify space usage
  • Use docker system prune and builder prune to clean up unused resources

This should help prevent disk space issues like the one seen in #6346.

Note: This is a simplified version of #6627 that only modifies the ghcr-build.yml file.


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:251184d-nikolaik   --name openhands-app-251184d   docker.all-hands.dev/all-hands-ai/openhands:251184d

- Add disk space monitoring before build, after build, and after hash verification
- Add Docker cleanup steps to free up space after major operations
- Monitor largest files and directories to identify space usage
- Use docker system prune and builder prune to clean up unused resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants