-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample_container_echo.yml
More file actions
46 lines (46 loc) · 1.48 KB
/
sample_container_echo.yml
File metadata and controls
46 lines (46 loc) · 1.48 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
resource_group: azure_model_batch
location: westus2
job_name: container_echo
batch_account_name: mybatchaccount
storage_account_name: mybatchassociatedstore
storage_container_name: test
# hardware
vm_size: standard_ds2_v2
num_hosts: 1
num_cores: 2
task_slots_per_node: 1
# study specific
study_copy_flags: --recursive
study_dir: dsm2_studies_v82/studies/historical
setup_dirs: # these are directories that are also copied in addition to the study_dir
- dsm2_studies_v82/bin
- dsm2_studies_v82/common_input
- dsm2_studies_v82/timeseries
resource_files:
- file_path: "."
blob_prefix: "{study_dir}"
- file_path: "."
blob_prefix: dsm2_studies_v82/common_input
- file_path: "."
blob_prefix: dsm2_studies_v82/timeseries
output_files:
- file_pattern: '*.dss'
path: "{study_dir}/outputs"
upload_condition: "taskcompletion" # tasksuccess, taskfailure, taskcompletion
command: |
echo "Hello from the container!"
echo "This is a test of the containerized job."
echo "The container is running on host: $(hostname)"
echo "The container is running on node: $(uname -n)"
echo "The container is running on VM: $(uname -m)"
echo "The container is running on OS: $(uname -o)"
echo "The container is running on kernel: $(uname -r)"
echo "The container is running on release: $(uname -v)"
echo "The container is running on version: $(uname -s)"
cd {study_dir}
hydro -v
hydro hydro.inp
source $AZ_BATCH_APP_PACKAGE_python
app_pkgs:
- name: python
template_name: "dvsm_container"