Skip to content

Commit 3c1eb54

Browse files
committed
Merge branch 'topic-release' into main
2 parents 4842ca3 + 4ce1685 commit 3c1eb54

5 files changed

Lines changed: 57 additions & 18 deletions

File tree

cft-templates/nextflow-advanced.yaml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Metadata:
1616
Parameters:
1717
- PipelineName
1818
- PipelineContainer
19-
- InputDataLocation
19+
- InputDataLocation
20+
- InputDataPattern
2021
- OutputDataLocation
2122
- Label:
2223
default: Head Node Configuration
@@ -58,7 +59,12 @@ Parameters:
5859
Description: >-
5960
An S3 bucket which holds input data for the Nextflow pipeline. The bucket name must respect the S3 bucket naming conventions
6061
(can contain lowercase letters, numbers, periods and hyphens).
61-
Type: String
62+
Type: String
63+
InputDataPattern:
64+
Description: >-
65+
The pattern to match samples to be processed as inputs to the pipeline. E.g. data/ggal/*_{1,2}.fq. It can also point to a csv or tsv file that contains details of the files to be processed.
66+
Type: String
67+
Default: samplesheet.csv
6268
OutputDataLocation:
6369
Description: >-
6470
The full path on the local disk where outputs of the pipeline should be stored. The default path above will enable you to view the outputs via the browser. The path should be accessible to the user ec2-user.
@@ -539,13 +545,15 @@ Resources:
539545
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
540546

541547
sudo yum update -y --security
542-
cd /root/
543-
544-
getFirstChar=`echo $OutputDataLocation | cut -c1-1`
548+
cd /root/
549+
550+
getOutputData=${OutputDataLocation}
551+
getFirstChar=`echo $getOutputData | cut -c1-1`
545552

546553
if [ "$getFirstChar" == "/" ]
547554
then :
548-
echo "Ngnix URL"
555+
echo "Ngnix URL"
556+
OutputDataLocation=${OutputDataLocation}
549557
echo $OutputDataLocation
550558
else
551559
echo "S3 Path"
@@ -558,13 +566,13 @@ Resources:
558566

559567
cat << EOF >> $PROJECT_NF_CONFIG
560568
process.container = '${PipelineContainer}'
561-
docker.runOptions='-u 0:0'
562569
plugins {
563570
id 'nf-amazon'
564571
}
565572
docker.enabled = true
566-
params.outdir='${OutputDataLocation}'
567-
params.reads='s3://${InputDataLocation}'
573+
params.outdir='$OutputDataLocation'
574+
params.reads='s3://${InputDataLocation}/${InputDataPattern}'
575+
params.input='s3://${InputDataLocation}/${InputDataPattern}'
568576
profiles {
569577
standard {
570578
process.container = '${PipelineContainer}'
@@ -589,10 +597,10 @@ Resources:
589597

590598
NEXTFLOW_CONFIG=nextflow.config
591599

592-
NEXTFLOW_OUTPUT_PARAMS='\nparams.outdir="${OutputDataLocation}"'
593-
594-
echo -e $NEXTFLOW_OUTPUT_PARAMS >>$NEXTFLOW_CONFIG
595-
600+
cat << EOF >> $NEXTFLOW_CONFIG
601+
params.outdir='$OutputDataLocation'
602+
EOF
603+
596604
docker pull ${PipelineContainer}
597605
chown -R ec2-user:ec2-user /home/ec2-user/
598606
chown -R ec2-user:ec2-user /home/ec2-user/.[^.]*

config/snsConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
"snsTopicName": "Research-Product-Events",
5151
"snsProtocol": "REPLACE_WITH_HTTP_HTTPS",
5252
"endpoint": "notificationsink/productProvisioningUpdates",
53-
"notificationSinkCleanUpRoute": "notificationsink/unlinkAccount",
53+
"notificationSinkCleanUpRoute": "unlinkAccount",
5454
"snsUrlKey": "snsUrl"
5555
}

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
- sp2net
1919

2020
cc-3102:
21-
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.0_b954
21+
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.1_b982
2222
secrets:
2323
- source: sp2prod-config.json
2424
target: /rlc/cc/server/app/config/config.json
@@ -32,6 +32,7 @@ services:
3232
- APM_ENABLE=false
3333
- APM_URL=APM URL where it has been placed
3434
- CC_HOST=cc-3102:3002
35+
- NS_HOST=notificationsink:3005
3536
volumes:
3637
- ${PWD}/config:/rlc/cc/server/app/config
3738
- ${PWD}/logs:/rlc/cc/server/app/logs
@@ -42,7 +43,7 @@ services:
4243
command: /bin/bash start.sh
4344

4445
scheduler-3102:
45-
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.0_b954
46+
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.1_b982
4647
secrets:
4748
- source: sp2prod-config.json
4849
target: /rlc/cc/server/app/config/config.json

dump/configs.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,33 @@
318318
}
319319
}
320320
}
321+
{
322+
"_id": {
323+
"$oid": "61fa15c4bd4d148afe2155dc"
324+
},
325+
"key": "readTheDocsUrl",
326+
"value": "https://researchgateway.readthedocs.io/"
327+
}
328+
{
329+
"_id": {
330+
"$oid": "61fbd4239fab988868a9d00e"
331+
},
332+
"key": "rgSetupVideo",
333+
"value": {
334+
"fullVideo": {
335+
"link": "https://youtu.be/zDksIb1n9zI"
336+
},
337+
"addAccount": {
338+
"link": "https://youtu.be/zDksIb1n9zI?t=60"
339+
},
340+
"addProject": {
341+
"link": "https://youtu.be/zDksIb1n9zI?t=100"
342+
},
343+
"assignProducts": {
344+
"link": "https://youtu.be/zDksIb1n9zI?t=100"
345+
},
346+
"users": {
347+
"link": "https://youtu.be/zDksIb1n9zI?t=100"
348+
}
349+
}
350+
}

provisioners/provision-ecr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash -xe
22
sudo docker login -u AWS -p $(aws ecr get-login-password --region us-east-2) 045938549113.dkr.ecr.us-east-2.amazonaws.com
3-
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.8.5_b896
3+
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.1_b982
44
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/nginx:latest
5-
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/notificationsink:1.8.1_b4
5+
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/notificationsink:1.9.0_b2

0 commit comments

Comments
 (0)