Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT-3184] optional self hosted redis container #253

Merged
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
1 change: 1 addition & 0 deletions config/infra-dev/nextflow-ecs-task-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ stack_tags:

sceptre_user_data:
environment: !file src/tower/resources/environment.yaml
EnableRedisDocker: false
1 change: 1 addition & 0 deletions config/infra-prod/nextflow-ecs-task-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ stack_tags:

sceptre_user_data:
environment: !file src/tower/resources/environment.yaml
EnableRedisDocker: true
6 changes: 6 additions & 0 deletions templates/nextflow-ecs-task-definition.j2
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ Resources:
EFSVolumeConfiguration:
FilesystemId: !Ref EfsFileSystemId
ContainerDefinitions:
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
# The following container definition is a stop-gap solution for
# https://sagebionetworks.jira.com/browse/WORKFLOWS-521
- Name: !Sub '${RedisContainerName}-CheckAOF'
Expand Down Expand Up @@ -225,16 +226,19 @@ Resources:
awslogs-region: !Sub '${AWS::Region}'
awslogs-group: !Ref TowerTaskLogGroup
awslogs-stream-prefix: !Ref AwslogsStreamPrefix
{%- endif %}
- Name: !Sub '${CronContainerName}-MigrateDb'
Image: !Ref CronContainerImage
Memory: 2000
Cpu: 0
Essential: false
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
Links:
- !Ref RedisContainerName
DependsOn:
- ContainerName: !Ref RedisContainerName
Condition: START
{%- endif %}
WorkingDirectory: /work
EntryPoint:
- /bin/sh
Expand All @@ -260,13 +264,15 @@ Resources:
Image: !Ref CronContainerImage
Memory: 2000
Cpu: 0
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
Links:
- !Ref RedisContainerName
DependsOn:
- ContainerName: !Ref RedisContainerName
Condition: START
- ContainerName: !Sub '${CronContainerName}-MigrateDb'
Condition: SUCCESS
{%- endif %}
WorkingDirectory: /work
EntryPoint:
- /bin/sh
Expand Down