timoa / terraform-oci-vscode-server

Terraform project that deploys VSCode Server on Oracle Cloud Infrastructure (free tier) and protect the access with Cloudflare Zero Trust (optional) or an SSH tunnel
https://timoa.com
Apache License 2.0
26 stars 1 forks source link

Keep the pre-commit cache on /data #10

Open timoa opened 2 years ago

timoa commented 2 years ago

To avoid losing the pre-commit cache after the recreation of the instance, we need to save the ~/.cache/pre-commit folder to the /data volume and create a symlink at the boot time.