Git Product home page Git Product logo

Comments (6)

tt avatar tt commented on May 21, 2024

Python is available mostly as a dependency to scripts and tools.

If you want to link something against Python during the build process, you should likely use the Python buildpack. That said, I would like to learn more about your use case to know if this is a reasonable suggestion.

from base-images.

dzuelke avatar dzuelke commented on May 21, 2024

Yup, could you please explain the use case?

Generally, if your application relies on Python or Perl, those should be installed using a buildpack, and then the corresponding headers will usually be available.

from base-images.

i8-pi avatar i8-pi commented on May 21, 2024

This is probably not a use case you would be likely to support, but I'm trying to compile vim and create a tarball that I can drop into the runtime image and run. Sometimes, you just need to debug stuff on a live environment.

The python and perl headers are to make sure all the vim plugins are supported. I can download them myself, but bundling them would save me a step

from base-images.

dmathieu avatar dmathieu commented on May 21, 2024

The problem with including those packages is also that you won't be able to specify their version. We would be using the version provided by Ubuntu, doing security upgrades if necessary. But that wouldn't be the latest version.

The best way to achieve this is probably to install the package in your own vim buildpack. You can then have the versions you want and upgrade as you need.

from base-images.

i8-pi avatar i8-pi commented on May 21, 2024

Yes, but if I don't use the version in the runtime image and bundle my own, I'm going to be responsible for upgrading those packages myself. Not to mention the extra linker config I'll need to put in. I'm too lazy for that

Using a buildpack also means I have to plan ahead include it in whichever project may need it, whereas having a tarball lets me unzip and run on any project. I also don't want vim in my live environment unless I'm debugging

I probably should have mentioned this earlier, but this is what inspired me to do this https://gist.github.com/sfate/2889158

In any case, this is not a huge inconvenience and I'm happy to work with what is currently available. Thanks for looking into this

from base-images.

tt avatar tt commented on May 21, 2024

@i8-pi, if you only need the packages (in the build image) temporarily to produce your own binaries for the runtime image, I suggest you use Docker locally to build it. Then you can easily install the headers so they're available for compilation and then the binaries should run perfectly on the platform.

from base-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.