Skip to content

Commit

Permalink
Merge pull request #37 from umccr/traits
Browse files Browse the repository at this point in the history
  • Loading branch information
brainstorm authored Nov 16, 2023
2 parents f0133a6 + 046d6c2 commit 330f9d4
Show file tree
Hide file tree
Showing 55 changed files with 11,970 additions and 169 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env/
# IDE
.idea
.DS_Store
.vscode

# Environment files
*.log
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.linkedProjects": ["lib/workload/stateless/filemanager/Cargo.toml", "skel/rust-api/Cargo.toml"]
}
16 changes: 16 additions & 0 deletions docs/developer/FM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# FileManager

```
Namespace: orcabus.fm
```

## How to run FM locally

### Ready Check

```
conda activate orcabus
make up
./lib/workload/stateless/filemanager/scripts/localstack-s3-events-to-sqs.sh # sets up s3 events simulation
cd ./lib/workload/stateless/filemanager && cargo run
```
2 changes: 1 addition & 1 deletion docs/developer/RUST_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ cargo watch -c -w src -x run # Watches "src" dir, eXecutes "cargo run"
Compiling rust-api v0.1.0 (/Users/rvalls/dev/umccr/orcabus/skel/rust-api)
Finished dev [unoptimized + debuginfo] target(s) in 1.74s
Running `target/debug/rust-api`
2023-06-13T00:56:41.621002Z INFO rust_api: listening on 0.0.0.0:8080
2023-06-13T00:56:41.621002Z INFO filemanager: listening on 0.0.0.0:8080
```

Then:
Expand Down
3 changes: 3 additions & 0 deletions lib/workload/stateless/filemanager/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Example env file which sets the DATABASE_URL to a local postgres instance.
#pragma: allowlist secret
DATABASE_URL=postgresql://filemanager:filemanager@localhost:5432/filemanager
3 changes: 3 additions & 0 deletions lib/workload/stateless/filemanager/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target/
*.swp
/volume/
Loading

0 comments on commit 330f9d4

Please sign in to comment.