Hello, I think that mounting a volume is the simplest way to make use of cache on elastic agents.
What permission errors did you get? If you're using one of the official docker gocd agent <https://hub.docker.com/u/gocd>images, the directories and files in /home/go will be accessed by the `go` user (uid & gid 1000) on the docker containers. On the host, you may already have a user associated with uid and gid 1000, which could cause permission issues when you try to access the files on the mounted directory. Thanks, Varsha On Friday, 8 March 2019 06:52:16 UTC-8, Roberto Yudice wrote: > > Hi everyone, > What would be the best way to cache NPM packages when using elastic > agents? NPM creates a cache in ~/.npm. I was thinking about mounting a > volume at /home/go/.npm, however I tried it and I get permission errors. > > Would this be the right approach? > > Thanks > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.