Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in containers #275

Closed
annshress opened this issue Aug 17, 2023 · 6 comments
Closed

Code in containers #275

annshress opened this issue Aug 17, 2023 · 6 comments
Assignees

Comments

@annshress
Copy link
Collaborator

Since different developers are working with different operating systems, I think we should consider using docker for development so that two developers will have a same experience.

Example: bioformats2raw (an application used for converting .czi files to .zarr) doesn't work with M2 chip, but works on linux.

@blowekamp
Copy link
Collaborator

I agree having a Docker file to build a reproducible environment would be very useful, and make it easier for developer so set up the correct environment.

To be a little more specific, bioformats2raw works in a linux docker container on with the "linux/amd64" platform option on the Mac ARMs.

@mbopfNIH
Copy link
Collaborator

I have bioformats2raw running on my M1 chip using Intel-based Python and Java installations via Rosetta. I don't believe the M2 introduced new architecture changes, so the above solution should still work.

@annshress
Copy link
Collaborator Author

Yes. It's working in a linux docker container. I am still suggesting that we use Docker for the purpose of reproducible environment.

@mbopfNIH
Copy link
Collaborator

Yes, I agree that a common Docker dev environment would be helpful. One drawback to doing this could be performance, especially when testing out resource-intensive routines, which bioformats2raw can be. So I think it is useful to have the application installed directly on your machine without having to go through Docker. Although, setting up the intel-based environment is a pain.

@blowekamp
Copy link
Collaborator

It looks like we didn't add the--max_workers=$nproc options to bioformats2raw before. That will make that command run nearly nproc-X faster so hopefully the performance difference will be less of an issue.

@annshress annshress mentioned this issue Aug 25, 2023
6 tasks
@annshress
Copy link
Collaborator Author

If you are running locally and want to test the workflows, we recommend using docker container. Look into Docker instructions in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants