Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 7382f60

Browse files
committed
implement ebs-autoscale on docker datavolume for sfn
1 parent 82cd60f commit 7382f60

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

src/templates/aws-genomics-launch-template.template.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Description: >-
66
Mappings:
77
ScratchMountPointMap:
88
step-functions:
9-
mountpoint: "/scratch"
9+
mountpoint: "/var/lib/docker"
1010
cromwell:
1111
mountpoint: "/cromwell_root"
1212
nextflow:
@@ -23,25 +23,33 @@ Mappings:
2323
ECSAdditionsMap:
2424
step-functions:
2525
additions: |-
26+
- service docker stop
27+
- cp -au /var/lib/docker /var/lib/docker.bk
2628
- cd /opt && wget $artifactRootUrl/aws-ebs-autoscale.tgz && tar -xzf aws-ebs-autoscale.tgz
2729
- sh /opt/ebs-autoscale/bin/init-ebs-autoscale.sh $scratchPath /dev/sdc 2>&1 > /var/log/init-ebs-autoscale.log
30+
- sed -i 's+OPTIONS=.*+OPTIONS="--storage-driver btrfs"+g' /etc/sysconfig/docker-storage
31+
- service docker start
32+
- start ecs
33+
2834
cromwell:
2935
additions: |-
3036
- cd /opt && wget $artifactRootUrl/aws-ebs-autoscale.tgz && tar -xzf aws-ebs-autoscale.tgz
3137
- sh /opt/ebs-autoscale/bin/init-ebs-autoscale.sh $scratchPath /dev/sdc 2>&1 > /var/log/init-ebs-autoscale.log
3238
- cd /opt && wget $artifactRootUrl/aws-ecs-additions.tgz && tar -xzf aws-ecs-additions.tgz
3339
- sh /opt/ecs-additions/ecs-additions-cromwell.sh
40+
3441
nextflow:
3542
additions: |-
3643
- service docker stop
3744
- cp -au /var/lib/docker /var/lib/docker.bk
3845
- cd /opt && wget $artifactRootUrl/aws-ebs-autoscale.tgz && tar -xzf aws-ebs-autoscale.tgz
3946
- sh /opt/ebs-autoscale/bin/init-ebs-autoscale.sh $scratchPath /dev/sdc 2>&1 > /var/log/init-ebs-autoscale.log
40-
- cd /opt && wget $artifactRootUrl/aws-ecs-additions.tgz && tar -xzf aws-ecs-additions.tgz
41-
- sh /opt/ecs-additions/ecs-additions-nextflow.sh
4247
- sed -i 's+OPTIONS=.*+OPTIONS="--storage-driver btrfs"+g' /etc/sysconfig/docker-storage
4348
- service docker start
4449
- start ecs
50+
- cd /opt && wget $artifactRootUrl/aws-ecs-additions.tgz && tar -xzf aws-ecs-additions.tgz
51+
- sh /opt/ecs-additions/ecs-additions-nextflow.sh
52+
4553
Parameters:
4654
LaunchTemplateNamePrefix:
4755
Type: String

0 commit comments

Comments
 (0)