I have my build-cache in my Synology NAS, which supports NFS, SMB,I want to use the build cache to build my code in the pipeline. so far I am using a custom-docker image for my pipeline and self. hosted runner on ec2-machine. I am only running one command in my script, which is the build command. My build is taking 3hrs of time to build the code without a cache directory. My build cache directory is 4GB.
whenever I run bitbucket is create a docker container with my custom images and clone my repo into and run the build command to build. So I want to mount my shared folder to this container to use the build cache. or else let me know the best way to do it.
The code I am trying to build is the yocto project.
Hi @Sumanth Anumolu,
I'm afraid that it is not possible at the moment to mount the host's shared directories in Pipelines runners.
As a workaround, you could use an SFTP client from the runner's build to download the directory from the host to the build container:
We have a feature request to support mounting host shared directories in a runner's container:
If you'd be interested in that, I would suggest adding your vote in the feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
Implementation of new features is done as per our policy here and any updates will be posted in the feature request.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.