I have a maven
spring-boot
project deployed on appengine that I am building and deploying using Google Cloud Build using the following builder image: https://github.com/strudeau/mvn-gcloud-builder
When performing a build, most of the time is spent downloading the plugins and dependencies from maven. I would like to be able to mount a persistent volume to this Docker image so as to be able to keep a persistent .M2
directory where my plugins and dependencies would be stored to avoid having them downloaded each time I do a build.
Google Cloud Filestore
would probably be ideal if it weren't for the fact that you have to provision 1TB of data or more which becomes ridiculously expensive for a small non-production profit project.
- Is there a way to mount a bucket as a filesystem on the docker image?
- Can I mount a
Google Persistent Disk
?