Skip to content

Conversation

@warcholjakub
Copy link
Collaborator

Summary

This PR implements shared Docker cache volumes to optimize disk usage across Scastie's container infrastructure by consolidating dependency caches for sbt-runner, scala-cli-runner, and metals containers.

Key changes include

  • Shared Cache Infrastructure: Created unified scastie-cache Docker volume for all services
  • Container Configuration: Updated deployment scripts to mount shared cache volumes
  • Environment Variables: Added COURSIER_CACHE environment variable to redirect dependency downloads

warcholjakub and others added 2 commits September 26, 2025 16:41
Add shared Docker volume cache to reduce disk usage across containers
- Create single shared Docker volume 'scastie-cache' for all services
- Configure sbt-runner, scala-cli-runner, and metals-runner to use shared cache
- Set COURSIER_CACHE environment variable to redirect dependency downloads
- Implement helper methods for consistent cache volume mounting
- Add volume creation with fallback (|| true) to prevent deployment failures
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