How to mount an Azure file share in an Azure DevOps container job?
We need to persist the files that are generated or updated when running a container job in Azure DevOps.
(FYI: The context is building Observable Framework apps and wanting to keep the "cache" forever so that we don't have re-run old queries)
resources:
containers:
- container: cicd
image:
endpoint: acr_service_connection
options: --user 0:0
jobs:
- job: Build
pool:
name: Databricks
container: cicd
<snip>XYZ.azurecr.io/dashboards-amd64:0.1
Is it possible to do the mounting directly by using the volumes
property? Perhaps by mounting the Azure file share inside the VM as separate setup stage and then pass that path to the volume property for the container. A clean up stage would then unmount the share from the VM. :
volumes: [ string ] # Volumes to mount on the container.
or maybe you can pass something directly as a flag to the options
property
options: string # Options to pass into container host.
(It doesn't have to be an Azure file share, but down the line we want to migrate to use something like ACA to build things.)