-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from GSI-Xapiens-CSIRO/main
Merge Main to Xapiens
- Loading branch information
Showing
54 changed files
with
818 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,54 @@ | ||
# BGSI-GeneticAnalysisSupportPlatformIndonesia-GASPI | ||
|
||
## AMI Details for AWS based deployment | ||
|
||
``` | ||
al2023-ami-2023.6.20241212.0-kernel-6.1-x86_64 | ||
``` | ||
|
||
## Setting up environment in EC2 (Amazon Linux 2023) | ||
|
||
Install necessary tools | ||
|
||
```bash | ||
RUN dnf update -y | ||
RUN dnf install -y git docker | ||
``` | ||
|
||
Start docker deamon and build the container | ||
|
||
```bash | ||
sudo service docker start | ||
sudo usermod -a -G docker ec2-user | ||
sudo docker build --build-arg PLATFORM=linux/amd64 -t gaspi .devcontainer | ||
``` | ||
|
||
Start the container | ||
|
||
```bash | ||
sudo docker run --init --rm --privileged \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v `pwd`:`pwd` \ | ||
-w `pwd` \ | ||
--platform linux/x86_64 \ | ||
-it gaspi:latest \ | ||
/bin/bash | ||
``` | ||
|
||
## Clone Source Code | ||
|
||
```bash | ||
git clone https://github.com/GSI-Xapiens-CSIRO/BGSI-GeneticAnalysisSupportPlatformIndonesia-GASPI.git | ||
git submodule init | ||
git submodule update | ||
``` | ||
|
||
## Initialisation | ||
|
||
Please run `init.sh` scripts in `svep` and `sbeacon` directories. Then run `pnpm install` from `webgui/webapp` directory. | ||
|
||
## Deployment | ||
|
||
```bash | ||
terraform apply | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule sbeacon
updated
15 files
+74 −0 | ec2.tf | |
+88 −1 | iam.tf | |
+11 −0 | lambda.tf | |
+41 −3 | lambda/dataPortal/admin_dportal_functions.py | |
+29 −27 | lambda/dataPortal/admin_notebook_functions.py | |
+2 −6 | lambda/dataPortal/quota_function.py | |
+23 −0 | lambda/dataPortal/utils/cognito.py | |
+26 −0 | lambda/dataPortal/utils/s3_util.py | |
+35 −0 | lambda/dataPortal/utils/sagemaker.py | |
+563 −0 | lambda/deidentifyFiles/deidentification.py | |
+189 −0 | lambda/deidentifyFiles/lambda_function.py | |
+158 −0 | lambda/deidentifyFiles/launch_ec2.py | |
+46 −33 | lambda/updateFiles/lambda_function.py | |
+34 −4 | main.tf | |
+30 −2 | s3.tf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...portal-page/dportal-page/admin-section/admin-folder-list/admin-folder-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<div class="flex flex-row justify-between w-full items-center"> | ||
<h2 class="flex">Folders tracked under users</h2> | ||
<button | ||
mat-mini-fab | ||
color="primary" | ||
class="flex items-center" | ||
(click)="list()" | ||
> | ||
<mat-icon>refresh</mat-icon> | ||
</button> | ||
</div> | ||
<p>These folders are held by active users.</p> | ||
<table mat-table [dataSource]="dataSource"> | ||
<!-- Given Name Column --> | ||
<ng-container matColumnDef="given_name"> | ||
<th mat-header-cell *matHeaderCellDef>Given Name</th> | ||
<td mat-cell *matCellDef="let element">{{ element.given_name }}</td> | ||
</ng-container> | ||
|
||
<!-- Family Name Column --> | ||
<ng-container matColumnDef="family_name"> | ||
<th mat-header-cell *matHeaderCellDef>Family Name</th> | ||
<td mat-cell *matCellDef="let element">{{ element.family_name }}</td> | ||
</ng-container> | ||
|
||
<!-- Email Column --> | ||
<ng-container matColumnDef="email"> | ||
<th mat-header-cell *matHeaderCellDef>Email</th> | ||
<td mat-cell *matCellDef="let element">{{ element.email }}</td> | ||
</ng-container> | ||
|
||
<!-- Actions Column --> | ||
<ng-container matColumnDef="action"> | ||
<th mat-header-cell *matHeaderCellDef>Action</th> | ||
<td mat-cell *matCellDef="let element"> | ||
<button | ||
mat-mini-fab | ||
color="warn" | ||
(click)="deleteFolder(element['custom:identity_id'])" | ||
> | ||
<mat-icon>delete</mat-icon> | ||
</button> | ||
</td> | ||
</ng-container> | ||
|
||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
</table> | ||
|
||
@if (inactiveIdentities.length) { | ||
<h2>Folders not tracked under users</h2> | ||
<p> | ||
These folders either belong to past users and currently does not belong to | ||
anyone. | ||
</p> | ||
|
||
<div class="flex flex-col space-y-1"> | ||
@for (identity of inactiveIdentities; track identity) { | ||
<div class="flex flex-row space-x-2 items-center"> | ||
<button mat-mini-fab color="warn" (click)="deleteFolder(identity)"> | ||
<mat-icon>delete</mat-icon> | ||
</button> | ||
<div class="flex font-semibold">{{ identity }}</div> | ||
</div> | ||
} | ||
</div> | ||
} |
File renamed without changes.
Oops, something went wrong.