Giter Site home page Giter Site logo

Comments (5)

samruddhikhandale avatar samruddhikhandale commented on May 27, 2024 1

Should I use the Python feature on top of a node devcontainer image then to get the same result?

You could, if you don't have the same pinning to patch version issue. Else, you could simply use a base:ubuntu/debian image & then use Features to install node & python.

What are the upsides and downsides of installing the feature on top of, say, a node or base linux devcontainer vs a python devcontainer?

Downsides

  • If you use a python image, then the time it takes to pull an image will be a little less as compared to building from source with the python Feature. We are planning to update the Python Feature to use a prebuilt binary but haven't made progress yet - devcontainers/features#75
  • Python image uses the common-utils Feature which helps set the user, add themes, install common toolings, etc which would be missed with the Feature. However, using a base image or adding this Feature would help.

Upsides - You get more flexibility with versioning, and can make use of Feature options to customize the devcontainer (eg, insta)

Any caching, install time, or container size considerations?

  • Images & Features are both cached.
  • As Python Feature currently builds from source, the time needed would be little more compared to an image
  • I think size is almost the same, as both the image & Feature builds Python from source. Hence, shouldn't have a major difference.

from images.

rchoulak avatar rchoulak commented on May 27, 2024

from images.

samruddhikhandale avatar samruddhikhandale commented on May 27, 2024

Hi @schlich 👋

If you are using dev container images, then you can pin upto a minor version (eg. python 3.11 / 3.10). However, not to a patch version.

Have you looked at devcontainer features? With it, you could install (eg. python 3.11.1) as follows 👇

"features": {
    "ghcr.io/devcontainers/features/python:1": {
         "version": "3.11.1"   
     }
}

from images.

schlich avatar schlich commented on May 27, 2024

That's a great point I hadn't considered. I've use features to pin versions of other things but for some reason hadn't considered using it on top of/to replace the base. Should I use the Python feature on top of a node devcontainer image then to get the same result? What are the upsides and downsides of installing the feature on top of, say, a node or base linux devcontainer vs a python devcontainer? Any caching, install time, or container size considerations? I can close this issue after I give some time for responses on this.

from images.

schlich avatar schlich commented on May 27, 2024

an excellent and thorough response, thank you!

from images.

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.