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 createWorkflowMounts = (workflow: WorkflowResource, inputs: WorkflowInputsData): { [path: string]: MountType } => {
15 kind: MountKind.COLLECTION,
19 kind: MountKind.MOUNTED_FILE,
20 path: '/var/spool/cwl/cwl.output.json',
22 '/var/lib/cwl/workflow.json': {
24 content: parseWorkflowDefinition(workflow)
26 '/var/lib/cwl/cwl.input.json': {