Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ workflows:
primaryDescriptorPath: /validate_data_model.wdl
testParameterFiles:
- /validate_data_model.json
- name: copy_create_md5
subclass: WDL
primaryDescriptorPath: /copy_create_md5.wdl
33 changes: 33 additions & 0 deletions copy_create_md5.wdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version 1.0

workflow copy_create_md5 {
input {
String old_bucket_path
String new_bucket_path
String? project_id
}

call daisy_chain_copy {
input:
old_bucket_path = old_bucket_path,
new_bucket_path = new_bucket_path,
project_id = project_id
}
}


task daisy_chain_copy {
input {
String old_bucket_path
String new_bucket_path
String? project_id
}

command <<<
gsutil ~{"-u " + project_id} cp -D ~{old_bucket_path} ~{new_bucket_path}
>>>

runtime {
docker: "google/cloud-sdk:slim"
}
}