1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ContainerRequestResource } from "./container-request";
6 import { MountType, MountKind } from '~/models/mount-types';
7 import { WorkflowResource, parseWorkflowDefinition } from '~/models/workflow';
8 import { WorkflowInputsData } from './workflow';
10 export type ProcessResource = ContainerRequestResource;
12 export const MOUNT_PATH_CWL_WORKFLOW = '/var/lib/cwl/workflow.json';
13 export const MOUNT_PATH_CWL_INPUT = '/var/lib/cwl/cwl.input.json';
15 export const createWorkflowMounts = (workflow: WorkflowResource, inputs: WorkflowInputsData): { [path: string]: MountType } => {
18 kind: MountKind.COLLECTION,
22 kind: MountKind.MOUNTED_FILE,
23 path: '/var/spool/cwl/cwl.output.json',
25 '/var/lib/cwl/workflow.json': {
27 content: parseWorkflowDefinition(workflow)
29 '/var/lib/cwl/cwl.input.json': {