feat: add sda dev stack config and compose files #24
No reviewers
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui!24
Loading…
Reference in a new issue
No description provided.
Delete branch "3-sda-download-dev-stack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related issue(s) and PR(s)
This PR closes #3 .
Type of change
List of changes made
Added:
sda-downloadUpdated:
Testing
Follow the instructions in the README.
Follow-up issues
After I pushed the dev-tools folder I noticed that the linter action failed. I fixed this temporarily here in my last commit but this is not a good solution longterm. The bug and the fix are described in #25 .
@ -0,0 +1,302 @@# Lightweight dev stack for the sda-download v2 API.It would be good to use a port we don't use in other projects, we have a document for this:
https://scilifelab.atlassian.net/wiki/spaces/NSDT/pages/3640885308/Ports+in+use+within+Meerkats+projects
I think it's not totally up to date but 8000 is used by the open pollen api
This concerns only development
@ -0,0 +30,4 @@TOKEN=$(curl -s http://localhost:8001/tokens | jq -r '.[0]')# List datasetscurl -H "Authorization: Bearer $TOKEN" http://localhost:8085/datasetsWhen I did this I got:
{"detail":"Missing, invalid, or expired bearer token.","status":401,"title":"Unauthorized"}
I'm taking a look at this PR
@ -0,0 +1,302 @@# Lightweight dev stack for the sda-download v2 API.Changed the exposed port
8000to8001and updated the confluence page with all the exported ports of this compose file.This should be now ready for review 😄
Great, I will continue with the review!
@ -0,0 +1,167 @@# Download API v2 - Local DevelopmentSmall typo at "which is will be deployed"
This should be removed because frontend is now in its own folder
I left some small comments that you can take a look at. One thought about the config.yaml file, since we have mock-auth and sda-auth:
Should this file be an example config file and then each one makes their own copy of it, so it is not tracked by Git? This can probably be done later on.
Good suggestions @KattisLej ! I moved the config.yaml into config.yaml.example and updated the README with info.
I am very happy with this PR and you made a great job with the read me, because the instructions are very good. Easy to follow with the commands.
I have tested both the mock-auth and sda-auth and they both worked as expected. Great job!