forked from aws-deadline/deadline-cloud-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yaml
More file actions
53 lines (46 loc) · 1.25 KB
/
Copy pathtemplate.yaml
File metadata and controls
53 lines (46 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
specificationVersion: 'jobtemplate-2023-09'
name: Bash CLI Job
parameterDefinitions:
- name: BashScript
type: STRING
userInterface:
control: MULTILINE_EDIT
label: Bash Script
description: "Write your bash script code here."
default: |
echo "The directory contents attached to this job:"
ls
# Example workload to compute hashes of all the input
find . -type f -exec md5sum {} \; > computed_hashes.txt
- name: DataDir
type: PATH
objectType: DIRECTORY
dataFlow: INOUT
userInterface:
control: CHOOSE_DIRECTORY
label: Input/Output Data Directory
description: >
This is a directory for your input files. Any output files
that the script writes will download back to the same
directory.
steps:
- name: CliScript
script:
actions:
onRun:
command: bash
args: ['{{Task.File.Run}}']
embeddedFiles:
- name: Run
type: TEXT
runnable: true
data: |
#!/usr/bin/env bash
# Configure the script to fail if any individual command fails.
set -euo pipefail
echo 'Data Dir is {{Param.DataDir}}'
mkdir -p '{{Param.DataDir}}'
cd '{{Param.DataDir}}'
# Echo each command before running it.
set -x
{{Param.BashScript}}