Skip to content

Commit

Permalink
updates for 23.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Jun 20, 2024
1 parent 40191d0 commit bc82332
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 28 deletions.
25 changes: 12 additions & 13 deletions config/infra-dev/nextflow-ecs-task-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ dependencies:
- infra-dev/nextflow-efs-file-system.yaml
- infra-dev/nextflow-elasticache-cluster.yaml


parameters:
TowerSmtpHost: 'email-smtp.us-east-1.amazonaws.com'
TowerSmtpPort: '587'
TowerSmtpUser: !ssm 'smtp-username'
TowerSmtpPassword: !ssm 'smtp-password'
TowerSmtpHost: "email-smtp.us-east-1.amazonaws.com"
TowerSmtpPort: "587"
TowerSmtpUser: !ssm "smtp-username"
TowerSmtpPassword: !ssm "smtp-password"
TowerContactEmail: [email protected]
TowerServerUrl: https://tower-dev.sagebionetworks.org
TowerRedisUrl: !stack_output_external nextflow-elasticache-cluster::RedisEndpoint
Expand All @@ -23,19 +22,19 @@ 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
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}}'
CronContainerImage: "cr.seqera.io/private/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}"
FrontendContainerImage: "cr.seqera.io/private/nf-tower-enterprise/frontend:{{stack_group_config.tower_version}}"
BackendContainerImage: "cr.seqera.io/private/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}"
MigrateDBContainerImage: "cr.seqera.io/private/nf-tower-enterprise/migrate-db:{{stack_group_config.tower_version}}"
EfsFileSystemId: !stack_output_external nextflow-efs-file-system::FileSystemId
EfsVolumeMountPath: '/efs'
TowerUserWorkspace: 'false'
EfsVolumeMountPath: "/efs"
TowerUserWorkspace: "false"
TowerRootUsers:
- [email protected]
- [email protected]
TowerConfigFileName: 'tower.yaml'
TowerConfigFileName: "tower.yaml"

stack_tags:
{{stack_group_config.default_stack_tags}}
stack_tags: { { stack_group_config.default_stack_tags } }

sceptre_user_data:
environment: !file src/tower/resources/environment.yaml
Expand Down
24 changes: 12 additions & 12 deletions config/infra-prod/nextflow-ecs-task-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ dependencies:
- infra-prod/nextflow-elasticache-cluster.yaml

parameters:
TowerSmtpHost: 'email-smtp.us-east-1.amazonaws.com'
TowerSmtpPort: '587'
TowerSmtpUser: !ssm 'smtp-username'
TowerSmtpPassword: !ssm 'smtp-password'
TowerSmtpHost: "email-smtp.us-east-1.amazonaws.com"
TowerSmtpPort: "587"
TowerSmtpUser: !ssm "smtp-username"
TowerSmtpPassword: !ssm "smtp-password"
TowerContactEmail: [email protected]
TowerServerUrl: https://tower.sagebionetworks.org
TowerRedisUrl: !stack_output_external nextflow-elasticache-cluster::RedisEndpoint
Expand All @@ -22,18 +22,18 @@ 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
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}}'
CronContainerImage: "cr.seqera.io/private/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}"
FrontendContainerImage: "cr.seqera.io/private/nf-tower-enterprise/frontend:{{stack_group_config.tower_version}}"
BackendContainerImage: "cr.seqera.io/private/nf-tower-enterprise/backend:{{stack_group_config.tower_version}}"
MigrateDBContainerImage: "cr.seqera.io/private/nf-tower-enterprise/migrate-db:{{stack_group_config.tower_version}}"
EfsFileSystemId: !stack_output_external nextflow-efs-file-system::FileSystemId
EfsVolumeMountPath: '/efs'
TowerUserWorkspace: 'false'
EfsVolumeMountPath: "/efs"
TowerUserWorkspace: "false"
TowerRootUsers:
- [email protected]
TowerConfigFileName: 'tower.yaml'
TowerConfigFileName: "tower.yaml"

stack_tags:
{{stack_group_config.default_stack_tags}}
stack_tags: { { stack_group_config.default_stack_tags } }

sceptre_user_data:
environment: !file src/tower/resources/environment.yaml
Expand Down
30 changes: 27 additions & 3 deletions templates/nextflow-ecs-task-definition.j2
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ Parameters:
Type: String
Description: Redis container docker image, e.g. 'redis:5.0.8'
{%- endif %}
MigrateDBContainerName:
Type: String
Description: (Optional) Name of the migrate-db container
Default: migrate-db
MigrateDBContainerImage:
Type: String
Description: >
(Optional) migrate-db container docker image,
e.g. 'cr.seqera.io/private/nf-tower-enterprise/migrate-db:v23.4.3'
CronContainerName:
Type: String
Description: (Optional) Name of the cron container
Expand Down Expand Up @@ -180,6 +189,21 @@ Resources:
EFSVolumeConfiguration:
FilesystemId: !Ref EfsFileSystemId
ContainerDefinitions:
- image: !Ref RedisContainerImage
repositoryCredentials:
credentialsParameter: !Sub 'arn:aws:secretsmanager:us-east-1:${AWS::AccountId}:secret:TOWER_DEV_SEQERA_REGISTRY_SECRET'
- image: !Ref MigrateDBContainerImage
repositoryCredentials:
credentialsParameter: !Sub 'arn:aws:secretsmanager:us-east-1:${AWS::AccountId}:secret:TOWER_DEV_SEQERA_REGISTRY_SECRET'
- image: !Ref FrontendContainerImage
repositoryCredentials:
credentialsParameter: !Sub 'arn:aws:secretsmanager:us-east-1:${AWS::AccountId}:secret:TOWER_DEV_SEQERA_REGISTRY_SECRET'
- image: !Ref BackendContainerImage
repositoryCredentials:
credentialsParameter: !Sub 'arn:aws:secretsmanager:us-east-1:${AWS::AccountId}:secret:TOWER_DEV_SEQERA_REGISTRY_SECRET'
- image: !Ref CronContainerImage
repositoryCredentials:
credentialsParameter: !Sub 'arn:aws:secretsmanager:us-east-1:${AWS::AccountId}:secret:TOWER_DEV_SEQERA_REGISTRY_SECRET'
{%- 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
Expand Down Expand Up @@ -229,8 +253,8 @@ Resources:
awslogs-group: !Ref TowerTaskLogGroup
awslogs-stream-prefix: !Ref AwslogsStreamPrefix
{%- endif %}
- Name: !Sub '${CronContainerName}-MigrateDb'
Image: !Ref CronContainerImage
- Name: !Sub '${MigrateDBContainerName}'
Image: !Ref MigrateDBContainerImage
Memory: 2000
Cpu: 0
Essential: false
Expand Down Expand Up @@ -275,7 +299,7 @@ Resources:
- ContainerName: !Ref RedisContainerName
Condition: START
{%- endif %}
- ContainerName: !Sub '${CronContainerName}-MigrateDb'
- ContainerName: !Sub '${MigrateDBContainerName}'
Condition: SUCCESS
WorkingDirectory: /work
EntryPoint:
Expand Down

0 comments on commit bc82332

Please sign in to comment.