Skip to content

Commit

Permalink
Merge pull request #254 from zaro0508/fix-redis-ref
Browse files Browse the repository at this point in the history
[IT-3184] fix redis deployment
  • Loading branch information
thomasyu888 authored Oct 23, 2023
2 parents 92d92fe + 8518b77 commit 62cfcdb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/infra-dev/nextflow-ecs-task-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ parameters:
TowerDbPassword: !aws_secrets_manager nextflow-aurora-mysql-NextflowTowerDatabaseUserSecret::SecretString::password
TowerGoogleClientId: !aws_secrets_manager nextflow/google_oauth_app::SecretString::client
TowerGoogleSecret: !aws_secrets_manager nextflow/google_oauth_app::SecretString::secret
RedisContainerImage: 'redis:5.0.8'
CronContainerImage: '195996028523.dkr.ecr.eu-west-1.amazonaws.com/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}'
FrontendContainerImage: '195996028523.dkr.ecr.eu-west-1.amazonaws.com/nf-tower-enterprise/frontend:{{stack_group_config.tower_version}}'
BackendContainerImage: '195996028523.dkr.ecr.eu-west-1.amazonaws.com/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}'
Expand Down
14 changes: 14 additions & 0 deletions templates/nextflow-ecs-task-definition.j2
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,15 @@ Parameters:
Type: String
Default: 'NULL'
Description: Redis connection URL
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
RedisContainerName:
Type: String
Description: (Optional) Name of the container that runs redis
Default: redis
RedisContainerImage:
Type: String
Description: Redis container docker image, e.g. 'redis:5.0.8'
{%- endif %}
CronContainerName:
Type: String
Description: (Optional) Name of the cron container
Expand Down Expand Up @@ -283,8 +285,13 @@ Resources:
- Name: MICRONAUT_ENVIRONMENTS
Value: !If
- HasTowerOidcClient
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
- prod,redis,cron,workspace,awsbatch-platform,auth-google,auth-oidc
- prod,redis,cron,workspace,awsbatch-platform,auth-google
{%- else %}
- prod,cron,workspace,awsbatch-platform,auth-google,auth-oidc
- prod,cron,workspace,awsbatch-platform,auth-google
{%- endif %}
{%- for name, value in sceptre_user_data.environment.items() %}
- Name: {{ name }}
Value: {{ value }}
Expand Down Expand Up @@ -328,7 +335,9 @@ Resources:
HostPort: !Ref BackendHostPort
Essential: false
Links:
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
- redis
{%- endif %}
- cron
WorkingDirectory: /work
DependsOn:
Expand All @@ -340,8 +349,13 @@ Resources:
- Name: MICRONAUT_ENVIRONMENTS
Value: !If
- HasTowerOidcClient
{%- if sceptre_user_data.EnableRedisDocker is defined and sceptre_user_data.EnableRedisDocker %}
- prod,redis,ha,workspace,awsbatch-platform,auth-google,auth-oidc
- prod,redis,ha,workspace,awsbatch-platform,auth-google
{%- else %}
- prod,ha,workspace,awsbatch-platform,auth-google,auth-oidc
- prod,ha,workspace,awsbatch-platform,auth-google
{%- endif %}
{%- for name, value in sceptre_user_data.environment.items() %}
- Name: {{ name }}
Value: {{ value }}
Expand Down

0 comments on commit 62cfcdb

Please sign in to comment.