Hacker News new | ask | show | jobs
by hjanssen 1777 days ago
At work, we use MinIO as a replacement of the S3 Api on our CI servers since we dont want to call production APIs for integration testing.

One of the challenges we had was "pre-filling" the MinIO server with testdata. Some tests require reading a testfile from our mocked S3 API. We wanted to have those testfiles instantly available at MinIO startup, but couldn not get that to work with docker volume mounts, MinIO simply would not recognize the files and serve a 404.

Has anyone got that working or a proposal for an alternative solution? We resorted to uploading the files via the application on startup (if it is in "testing mode"), but that does feel like a dirty hack.