Repository navigation
Switch to seaweedfs from minio in docker compose - #1889
Conversation
… to minio to say seaweedfs/weed mini instead.
…inio. Added said volumes to gitignore to avoid accidentally pushing data from them.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #1889 +/- ##
=======================================
Coverage 92.94% 92.94%
=======================================
Files 30 30
Lines 5074 5074
=======================================
Hits 4716 4716
Misses 358 358 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
valyo
left a comment
There was a problem hiding this comment.
weedmini2 is not really needed when we spin upp the stack, I think it was added to test how things work when switching between S3 endpoints. Having one container more or less is not making a huge difference, but the stack is heavy enough and I we should remove it from the normal workflow.
This will be a good time to clean up the profiles: now we need to use full-dev in order for it to work (redis is not optional because of RQ); ideally this should be achieved without specifying a profile, what needs to start then is:
db
backend
node_builder
redis
mailcatcher
weedmini
cli
at least for me some of the profiles don't make sense as they are
Then it seems we only need a profile to start that extra weedmini2 together with the normal day-to-day work stack, so maybe just profile for it.
What do you think?
|
@valyo I agree and I think we discussed this earlier, that some of the profiles are redundant. Are you saying we should have only 1 profile, for testing switching between S3 endpoints? So the default with no profile given is equivalent to current "full-dev", and weedmini2 is only added if you use --profile s3-switch-endpoints-test or something like that? |
Sounds good! Please just make the profile as short as possible :) , like |
…se-tests, .gitpod.yml to work with new setup
…uccessfully run docker compose
|
@valyo Ready for new review |
|
@jimdale , @samanrassam : I have tested these changes and they work as expected; please comment here when you test and it works for everyone we can approve and merge |
|
Tested this by launching the new dev environment on laptop. Everything works as expected - system builds without problems and project creation, data upload and download work as before. Docker compose file is clearly commented - everything looks good to me. |
|
Tested this by upgrading my existing MinIO setup instead of starting from a fresh clone, and it works for me. I tried upload and download (including a 100 MB file), rm, project delete and archive, the lost-files commands and the s3-switch/sto4 setup. Also checked that the new test command still exits non-zero when tests fail. Works well! Two (super minor) things: The Also, if you started weedmini2 with s3-switch, a plain |
|
@samanrassam that's true, I will add those things to the readme |
…ocker compose apps
|
@samanrassam README updated |
Pull Request Template
Before Marking as Ready for Review
dev(or other targeted branch)SPRINTLOG.mdif neededIf the target branch is
master:Summary
Replaces MinIO with SeaweedFS (
weed mini) as the local S3 storage indocker-compose.yml, and makes the full development setup the default instead of spreading it over several profiles. MinIO no longer publishes community Docker images, so since #1876 we've depended on a third-party fork (pgsty/minio). SeaweedFS is actively maintained open source with official images, andweed miniruns a complete S3 setup in a single container.SeaweedFS
minio/minio2are nowweedmini/weedmini2. Ports are unchanged: 9000 for the first instance and 9002 for the second. MinIO's web console ports (9001, 9003) are removed.SAFESPRING_URLand the access/secret keys inconfig.pyare updated to match.weed minidefaults we don't need: automatic bucket creation, telemetry, WebDAV, and the Iceberg/Lance endpoints..gitignore.Docker compose profiles
dev,mail,redis,s3,full-devandcliprofiles. Most of them no longer worked because the app now needs redis.docker compose upnow starts whatfull-devused to, exceptweedmini2.weedmini2is now under a news3-switchprofile, since it's only needed for testing a switch between two S3 storages.backendanddb. Otherwise every service would start in CI, includingcli, which fails without../dds_cli.migrations/README.mdand.gitpod.ymlto match.Related Issue/Ticket
HMS-2688
Testing
docker compose up, then created a project and uploaded and downloaded files with the CLI from thedds_clicontainer.weedmini2. The backend responds, redis answers a ping, and both the backend andclicontainers can reachweedmini.docker compose --profile s3-switch upand checked that it also startsweedmini2, which accepts its own keys.InvalidAccessKeyId.weedmini2with boto3:create_bucket,put_object,generate_presigned_url,delete_objects, emptying a bucket throughBucket.objectsand deleting it.backendanddb.Reviewer Notes
docker compose down --remove-orphansbefore the firstup, otherwise the old MinIO containers can clash with the new ones.--profile full-dev,cliand the other old profiles are gone. Use--profile s3-switchonly when you need the second S3 storage.dds_app.cfgsetsSAFESPRING_URLor the keys to the MinIO values, update or remove them.Once all boxes are checked, mark the PR as Ready for Review and tag at least one team member as the initial reviewer.