Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to use build cache from synology

Sumanth Anumolu February 4, 2022

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.


image:
  name: ecr.us-west-2.amazonaws.com:yoctodockerimage
  mount:
    type: bind
    source: /home/ubuntu/tgu
    target: /tgu
  aws:
    access-key: $AWS_ECR_ACCESS_KEY
    secret-key: $AWS_ECR_SECRET

pipelines:
  default:
    - step:
        name: "build"      
        runs-on: test.yocto2
        script:
           - DISTRO=fsl-imx-xwayland MACHINE=dictgu EULA=yes source imx-setup-release.sh -b build-directory
          - bitbake build-directory

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 11, 2022

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events