This repository was archived by the owner on Aug 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,20 @@ Resources:
382382 owner : " ec2-user"
383383 group : " ec2-user"
384384
385+ " /home/ec2-user/get_cromwell_tools.sh " :
386+ content : |
387+ #!/bin/bash
388+ url=$(curl --silent --retry 5 --retry-connrefused https://api.github.com/repos/broadinstitute/cromwell/releases/latest | jq -r .assets[1].browser_download_url)
389+ curl --retry 5 --retry-connrefused -LO $url
390+
391+ curl --retry 5 --retry-connrefused -LO https://raw.githubusercontent.com/broadinstitute/cromshell/master/cromshell
392+ chmod +x cromshell
393+ sudo mv cromshell /usr/local/bin/
394+
395+ mode : " 000755"
396+ owner : " ec2-user"
397+ group : " ec2-user"
398+
385399 " /home/ec2-user/cromwell.conf " :
386400 content : !Sub
387401 - |
@@ -605,6 +619,16 @@ Resources:
605619 02_start_cromwell :
606620 cwd : " /home/ec2-user"
607621 command : " sudo -u ec2-user /usr/local/bin/supervisord"
622+
623+ config4 :
624+ commands :
625+ 00_get_cromwell_tools :
626+ cwd : " /home/ec2-user/"
627+ command : " ./get_cromwell_tools.sh"
628+
629+ 01_chown_womtool :
630+ cwd : " /home/ec2-user/"
631+ command : " chown ec2-user:ec2-user womtool*.jar"
608632
609633 Properties :
610634 ImageId : !Ref LatestAmazonLinuxAMI
@@ -623,7 +647,7 @@ Resources:
623647 # !/bin/bash -x
624648 yum -y update
625649 yum install -y aws-cfn-bootstrap
626- yum install -y jq awslogs python3 java
650+ yum install -y jq awslogs python3 java mailx
627651
628652 amazon-linux-extras install -y nginx1
629653 pip3 install supervisor
You can’t perform that action at this time.
0 commit comments