feat: add sda dev stack config and compose files #24

Merged
aaperis merged 3 commits from 3-sda-download-dev-stack into develop 2026-04-15 07:39:24 +00:00
aaperis commented 2026-04-08 21:11:40 +00:00 (Migrated from github.com)

This PR closes #3 .

Type of change

  • New feature (non-breaking change which adds functionality)

List of changes made

Added:

  • docker compose file and necessary configuration files to run locally sda-download
  • the stack includes a script that populates the database and storage with one dataset, including one file. This script can be extended with more data in the future if needed.
  • detailed README file with description of the stack and instructions how to run and test

Updated:

  • Main README file

Testing

  • Instructions on how to test

Follow the instructions in the README.

  • Documentation Updated (if applicable):
    • Relevant documentation is current.

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 .

  • EDIT: #25 was fixed so I removed the temporary commit fix from this PR.
## Related issue(s) and PR(s) This PR closes #3 . ## Type of change - [x] New feature (non-breaking change which adds functionality) ## List of changes made Added: - docker compose file and necessary configuration files to run locally `sda-download` - the stack includes a script that populates the database and storage with one dataset, including one file. This script can be extended with more data in the future if needed. - detailed README file with description of the stack and instructions how to run and test Updated: - Main README file ## Testing - Instructions on how to test Follow the instructions in the README. - [x] **Documentation Updated (if applicable):** - Relevant documentation is current. ## 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 . - EDIT: #25 was fixed so I removed the temporary commit fix from this PR.
KattisLej (Migrated from github.com) reviewed 2026-04-09 08:36:03 +00:00
@ -0,0 +1,302 @@
# Lightweight dev stack for the sda-download v2 API.
KattisLej (Migrated from github.com) commented 2026-04-09 08:36:03 +00:00

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

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
KattisLej (Migrated from github.com) reviewed 2026-04-09 08:37:59 +00:00
@ -0,0 +30,4 @@
TOKEN=$(curl -s http://localhost:8001/tokens | jq -r '.[0]')
# List datasets
curl -H "Authorization: Bearer $TOKEN" http://localhost:8085/datasets
KattisLej (Migrated from github.com) commented 2026-04-09 08:38:00 +00:00

When I did this I got:
{"detail":"Missing, invalid, or expired bearer token.","status":401,"title":"Unauthorized"}

When I did this I got: {"detail":"Missing, invalid, or expired bearer token.","status":401,"title":"Unauthorized"}
KattisLej commented 2026-04-09 12:22:57 +00:00 (Migrated from github.com)

I'm taking a look at this PR

I'm taking a look at this PR
aaperis (Migrated from github.com) reviewed 2026-04-13 15:27:58 +00:00
@ -0,0 +1,302 @@
# Lightweight dev stack for the sda-download v2 API.
aaperis (Migrated from github.com) commented 2026-04-13 15:27:58 +00:00

Changed the exposed port 8000 to 8001 and updated the confluence page with all the exported ports of this compose file.

Changed the exposed port `8000` to `8001` and updated the confluence page with all the exported ports of this compose file.
aaperis commented 2026-04-13 15:31:46 +00:00 (Migrated from github.com)

This should be now ready for review 😄

This should be now ready for review :smile:
KattisLej commented 2026-04-14 06:57:27 +00:00 (Migrated from github.com)

This should be now ready for review 😄

Great, I will continue with the review!

> This should be now ready for review 😄 Great, I will continue with the review!
KattisLej (Migrated from github.com) reviewed 2026-04-14 11:08:16 +00:00
@ -0,0 +1,167 @@
# Download API v2 - Local Development
KattisLej (Migrated from github.com) commented 2026-04-14 11:08:16 +00:00

Small typo at "which is will be deployed"

Small typo at "which is will be deployed"
KattisLej (Migrated from github.com) reviewed 2026-04-14 11:10:00 +00:00
KattisLej (Migrated from github.com) commented 2026-04-14 11:10:00 +00:00

This should be removed because frontend is now in its own folder

This should be removed because frontend is now in its own folder
KattisLej (Migrated from github.com) reviewed 2026-04-14 11:16:17 +00:00
KattisLej (Migrated from github.com) left a comment

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.

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.
aaperis commented 2026-04-14 16:08:12 +00:00 (Migrated from github.com)

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 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.
KattisLej (Migrated from github.com) approved these changes 2026-04-15 07:35:24 +00:00
KattisLej (Migrated from github.com) left a comment

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!

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!
Sign in to join this conversation.
No description provided.