mlcube icon indicating copy to clipboard operation
mlcube copied to clipboard

Add singularity mount options support [WIP]

Open davidjurado opened this issue 3 years ago • 1 comments

Singularity read only volumes

When defining the mounts there is the need to define if these volumes are going be used with read-only permissions, to allow users to define this, here is a new definition for the inputs and outputs in the mlcube.yaml file:

opts: ro

By default singularity will use rw (read-write) permissions. Users can use the option "ro" to define a read-only volume. Singularity docs

MLCube YAML example:

tasks:
  train:
    parameters:
      inputs:
        data_dir: { type: directory, default: data/, opts: ro }
        embeddings_dir: { type: directory, default: embeddings/, opts: ro }
        input_model_dir: { type: directory, default: model/, opts: ro }
      outputs:
        output_model: { type: directory, default: output/ }

davidjurado avatar Aug 12 '22 13:08 davidjurado

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

github-actions[bot] avatar Aug 12 '22 13:08 github-actions[bot]

Read only access feature for input data in containers (docker, podman, singularity) for mlcubes requested by MedPerf WG.

dfeddema avatar Aug 26 '22 19:08 dfeddema