Giter VIP home page Giter VIP logo

Comments (14)

ewels avatar ewels commented on May 30, 2024 1

@tiagochst - any ideas why this is the case? Also pinging @tsnowlan - you're not involved in this project at all sorry, but you know your stuff when it comes to Docker so perhaps you have some insight!

from cookiecutter.

apeltzer avatar apeltzer commented on May 30, 2024 1

Hi everyone,
sorry for my ipad comment - trying to save typing there since I'm terrible on that "keyboard" they provide on ipads....

No there is no strong reason to NOT use them - only that they require a "hackish" ENV to add the binaries to the current PATH inside the container seems a bit "unclean" to me and I'd prefer the root solution for that purpose. However, changing everyone's containers just because of such a purely cosmetic thing is overkill for me too - so let's keep things as they are!

If we at some point find a technical reason why we shouldn't have the conda environments inside the container we can anyways migrate ;-)

Sorry for not being more clear with my comments on this

from cookiecutter.

ewels avatar ewels commented on May 30, 2024 1

Ok cool, I think we have consensus 👍 Will close this issue now.

from cookiecutter.

apeltzer avatar apeltzer commented on May 30, 2024

Didn’t we have that in the beginning and then switched to define a conda environment ? I just can’t remember anymore why and for what reason right now ..... will check this once I got my notebook back ....

from cookiecutter.

sven1103 avatar sven1103 commented on May 30, 2024

The documentation just states, that one should not create Conda environments in Docker builds, but unfortunately not why. Can someone enlighten me?

from cookiecutter.

tsnowlan avatar tsnowlan commented on May 30, 2024

Looks like those are restrictions for the specific DataScience.com platform. They also say not to use ARG, custom ENTRYPOINT, etc., and those are definitely normally used dockerfile commands. Are you using their platform, or just using this as a best practices reference?

As to why they don't like conda environments, I have no idea. I see a number of other pages detailing how to set it up in both docker and singularity. They're from different times in the past few years as well so I don't think it's a matter of new or outdated practice. Might just be something for simplifying their ops requirements.

from cookiecutter.

ewels avatar ewels commented on May 30, 2024

Are you using their platform, or just using this as a best practices reference?

Just thinking about best practices. @tiagochst - how did you come across these docs in the first place? Was there a reason that you were referring to them?

We currently have a line to avoid needing to activate the conda environment in the container:

ENV PATH /opt/conda/envs/nfcore-chipseq-1.4dev/bin:$PATH

I've always felt that this is a little hacky, so using the root environment feels cleaner somehow. But maybe we should keep things simple and stay with the current Dockerfile setup then. After all, it seems to work..

from cookiecutter.

tiagochst avatar tiagochst commented on May 30, 2024

You can keep the old way if it was working and it was just a warning. I don't know the reason why use one instead of the another unless I ask who wrote the documentation.

I'm not sure how I came to that documentation. But, I would say I found that by chance (I was looking to use conda with github repo, If I'm not wrong) and decided to change if it was working since it was a warning. There was no problem with the last code.

from cookiecutter.

apeltzer avatar apeltzer commented on May 30, 2024

I have je same feeling: it looks cleaner but thought it’s bad practice to have everything in the root environment. As we are only using this environment in the container and are not creating more than that, I assume it would be fine too and feels a bit cleaner . Also we could get rid of the current special ENV hack ...

from cookiecutter.

ewels avatar ewels commented on May 30, 2024

@apeltzer - I'm a bit confused. Are you saying that we should make the change or keep it as it is?

from cookiecutter.

sven1103 avatar sven1103 commented on May 30, 2024

@apeltzer I dont get it now either :D

from cookiecutter.

sven1103 avatar sven1103 commented on May 30, 2024

But my feeling is, that you go for root environment @apeltzer. I was just curious, if there is a strong reason, not to use conda environments in Dockerbuilds. If this is not the case, I vote for leaving the Dockerfile template as it is now.

from cookiecutter.

ewels avatar ewels commented on May 30, 2024

+1 vote for leaving it as it is now if no practical differences.

from cookiecutter.

sven1103 avatar sven1103 commented on May 30, 2024

+1

from cookiecutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.