How to Speed Up container's start up time

Hi All,

I noticed that Gitpod’s Spring Pet Clinic starts really fast. However my fork of the same project ( https://gitpod.io/#https://github.com/couchbaselabs/couchbase-spring-petclinic.git) take years to start as maven needs to download half of the internet first.

My question is, is there a way to share a link that can clone a running workspace? How do you guys made the Spring Pet Clinic demo start so fast? I would like to minimize these maven / npm installs . Do I have to bake that in the container image or is there another way?

PS: I have tried the the “share workspace” but looks like maven also download all dependencies again. Sharing the running container is not an option because that will leak my github credentials.

Best

1 Like

You’ll have to enable prebuilds on your repository. That way the maven / npm install runs async whenever someone pushes a change top the remote repository.
See Prebuilds