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

Commit c3130b1

Browse files
authored
Merge pull request #123 from tthyer/ecs-pull-behavior
Set ECS option to pull docker images only if the image is missing
2 parents a015682 + 9c0788b commit c3130b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/templates/gwfcore/gwfcore-launch-template.template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ Resources:
121121
# enable ecs spot instance draining
122122
- echo ECS_ENABLE_SPOT_INSTANCE_DRAINING=true >> /etc/ecs/ecs.config
123123

124+
# pull docker images only if missing
125+
- echo ECS_IMAGE_PULL_BEHAVIOR=prefer-cached >> /etc/ecs/ecs.config
126+
124127
- cd /opt
125128
- aws s3 sync $INSTALLED_ARTIFACTS_S3_ROOT_URL/ecs-additions ./ecs-additions
126129
- chmod a+x /opt/ecs-additions/provision.sh

0 commit comments

Comments
 (0)