Skip to content

Commit 6eecbb8

Browse files
Merge remote-tracking branch 'upstream/topic-release' into topic-release
2 parents 655da65 + c9292f0 commit 6eecbb8

13 files changed

Lines changed: 2058 additions & 458 deletions

File tree

docker-compose.yml

Lines changed: 2 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.1_b982
21+
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.2_b995
2222
secrets:
2323
- source: sp2prod-config.json
2424
target: /rlc/cc/server/app/config/config.json
@@ -43,7 +43,7 @@ services:
4343
command: /bin/bash start.sh
4444

4545
scheduler-3102:
46-
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.1_b982
46+
image: 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.2_b995
4747
secrets:
4848
- source: sp2prod-config.json
4949
target: /rlc/cc/server/app/config/config.json

dump/studies.json

Lines changed: 1883 additions & 440 deletions
Large diffs are not rendered by default.

mainonly.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Verify that utilities we use in this script are installed on the machine
3+
# this is a test
34
echo "Verifying utilities are installed"
45
apps=(jq aws)
56
for program in "${apps[@]}"; do

makestudies.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
while IFS=$'\n' read -r c; do
3+
if [ "$c" == "q" ]; then
4+
echo "$c" >&2
5+
exit 0
6+
fi
7+
echo "$c" | yq -o=json eval '.' "$c" |
8+
jq -r '{
9+
name: .Name,
10+
description: .Description,
11+
tags:.Tags,
12+
resourceDetails:(
13+
.Resources|map({
14+
description: .Description,
15+
arn: .ARN,
16+
region: .Region,
17+
type: (.Type|select(.=="S3 Bucket")| "s3")}
18+
)
19+
),
20+
moreInformation: (.License+"\n"+.Documentation+"\n"+.Contact),
21+
bookmarkedBy: [],
22+
projectId: [],
23+
levelOfSharing: 0,
24+
sharedTo: [],
25+
studyType: "Public",
26+
__v: 0,
27+
isDeleted: false,
28+
repositoryName: "Registry of Open Data on AWS",
29+
isShared: false,
30+
isLinked: false
31+
}'
32+
done | jq -s

packer-rg.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
"source": "config",
8181
"destination": "{{user `RG_SRC`}}/config"
8282
},
83+
{
84+
"type": "shell",
85+
"inline": [
86+
"sudo apt install zip -y"
87+
]
88+
},
8389
{
8490
"type": "shell",
8591
"environment_vars": ["RG_HOME=/opt/deploy/sp2","RG_SRC=/home/ubuntu"],

products/RStudio/machine-images/config/infra/provisioners/provision-rstudio.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo yum update -y
55
sudo yum install -y gcc-7.3.* gcc-gfortran-7.3.* gcc-c++-7.3.*
66
sudo yum install -y java-1.8.0-openjdk-devel-1.8.0.*
77
sudo yum install -y readline-devel-6.2 zlib-devel-1.2.* bzip2-devel-1.0.* xz-devel-5.2.* pcre-devel-8.32
8-
sudo yum install -y libcurl-devel-7.76.1 libpng-devel-1.5.* cairo-devel-1.15.* pango-devel-1.42.*
8+
sudo yum install -y libcurl-devel-7.79.* libpng-devel-1.5.* cairo-devel-1.15.* pango-devel-1.42.*
99
sudo yum install -y xorg-x11-server-devel-1.20.* libX11-devel-1.6.* libXt-devel-1.1.*
1010

1111
# Install R from source (https://docs.rstudio.com/resources/install-r-source/)

products/img-builder-config.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
2-
{
3-
"product": "Nextflow Advanced",
4-
"pipeline": "RL_RG_Nextflow_Advanced",
5-
"path": "/RL/RG/StandardCatalog/nextflow-latest"
6-
},
7-
{
8-
"product": "RStudio",
9-
"pipeline": "RL_RG_RStudio",
10-
"path": "/RL/RG/StandardCatalog/RStudio"
11-
}
2+
{
3+
"product": "Nextflow Advanced",
4+
"pipeline": "RL_RG_Nextflow_Advanced",
5+
"path": "/RL/RG/StandardCatalog/nextflow-latest"
6+
},
7+
{
8+
"product": "RStudio",
9+
"pipeline": "RL_RG_RStudio",
10+
"path": "/RL/RG/StandardCatalog/RStudio"
11+
}
1212
]

products/make-ami-list-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
jq -r '.Products | map( (.ami_id_list |= ( map_values(to_entries ) | flatten)) )'
3+
jq -r '.Products | map( (.ami_id_list |= ( map_values(to_entries ) | flatten)) )'

provisioners/provision-ecr.sh

Lines changed: 1 addition & 1 deletion
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.9.1_b982
3+
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/researchportal:_fd_1.9.2_b995
44
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/nginx:latest
55
sudo docker pull 045938549113.dkr.ecr.us-east-2.amazonaws.com/notificationsink:1.9.0_b2

scripts/connect-db.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
version="0.1.0"
3+
echo "Connecting to DB....(connect-db.sh v$version)"
4+
5+
if [ "$1" == "-h" ]; then
6+
echo "Usage: $(basename $0)"
7+
exit 0
8+
fi
9+
10+
[ -z "$RG_HOME" ] && RG_HOME='/opt/deploy/sp2'
11+
echo "RG_HOME=$RG_HOME"
12+
myinput=$(cat "$RG_HOME/config/mongo-config.json")
13+
if [ -z "$myinput" ]; then
14+
echo "Could not find DB details file. Exiting"
15+
exit 1
16+
fi
17+
18+
mydbuser=$(jq -r '.db_auth_config.username' <<<"${myinput}")
19+
mydbuserpwd=$(jq -r '.db_auth_config.password' <<<"${myinput}")
20+
21+
if [ -z "$mydbuser" ] || [ -z "$mydbuserpwd" ]; then
22+
echo "Could not find DB details. Exiting"
23+
exit 1
24+
fi
25+
26+
if [ ! -f "$RG_HOME/docker-compose.yml" ]; then
27+
echo "docker-compose.yml does not exist. Exiting"
28+
exit 1
29+
fi
30+
mydocdburl=$(grep DB_HOST "$RG_HOME/docker-compose.yml" | head -1 | sed -e "s/.*DB_HOST=//")
31+
if [ -z "$mydocdburl" ]; then
32+
echo "Could not find DB URL. Exiting"
33+
exit 1
34+
fi
35+
36+
mongo --ssl --host "$mydocdburl:27017" --sslCAFile "$RG_HOME/config/rds-combined-ca-bundle.pem" \
37+
--username "$mydbuser" --password "$mydbuserpwd"

0 commit comments

Comments
 (0)