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

How to Remove Miniconda Dependency in Docker #114

Closed
ssapsu opened this issue May 9, 2024 · 4 comments
Closed

How to Remove Miniconda Dependency in Docker #114

ssapsu opened this issue May 9, 2024 · 4 comments

Comments

@ssapsu
Copy link

ssapsu commented May 9, 2024

Hello! I'm truly impressed with your fantastic project and grateful that you’ve made it open source!
I've been using it by building with a Dockerfile, and I have a question about why it’s set up to run on Miniconda.
Using Miniconda seems to consume a lot of resources, which tends to make the program more cumbersome.
Could you advise on how to build it without using Miniconda?

@ssapsu
Copy link
Author

ssapsu commented May 9, 2024

Hey everyone, I've successfully created my own Dockerfile and developed a ROS2 node that's compatible with Humble. I've also managed to connect it to Isaac Sim. Here’s a video demonstrating how it works. I'm really excited about this open source project
Thanks so much for making it available!
Check out the video here: Isaac Sim with foundationpose

@StevePotter
Copy link

Hey ssapsu, can you elaborate on "consume a lot of resources"? As far as I know, conda basically isolates the python environment and sets up symlinks for commands like python, which shouldn't have an effect on runtime. What am I missing?

I agree that conda commands everywhere makes the dockerfile more difficult to read, but I'm unaware of it having an perf impact.

I do think that the project should be updated to install packages via requirements.txt or a conda environment.yml. I was planning on doing that in the near future as part of my initiative to improve docker images (see my PR #81)

@ssapsu
Copy link
Author

ssapsu commented May 9, 2024

Good afternoon, StevePotter

I was mistaken in thinking that Conda uses a lot of resources.

Despite this, I created a Docker container to isolate the environment, but I don’t understand why I should install Conda in it. Isn’t it enough that the environment is already isolated?

Actually, my concern started because ROS2, the robot operating system, has been discouraging the use of Anaconda together with the system’s default Python from Eloquent onwards. So, I had no choice but to opt out of using Conda.

@wenbowen123
Copy link
Collaborator

We used conda because it's still helpful to manage the versions among different packages. You can modify the dockerfile to skip conda steps and use pip to install all the packages.

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

3 participants