Git Product home page Git Product logo

Comments (5)

josegonzalez avatar josegonzalez commented on June 10, 2024

Can you give more context on your actual issue? What dependency is there that produces spurious output for a certain env var?

from dokku.

gavindsouza avatar gavindsouza commented on June 10, 2024

I'm using https://github.com/dokku-community/dokku-apt to install libjemalloc and setting LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so. So, ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libjemalloc.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. pops up thousands of times during the build phase until after the apt buildpack is executed. But also pops up once before every dokku run <app> <cmd>

from dokku.

josegonzalez avatar josegonzalez commented on June 10, 2024

Could you use a custom buildpack to write an executable profile script in /app/.profile that contains the LD_PRELOAD value?

from dokku.

josegonzalez avatar josegonzalez commented on June 10, 2024

Thinking about this more, you could create an apt-env file and set export LD_PRELOAD="" in there to blank out LD_PRELOAD during the running of the apt buildpack (which is probably your first one). That would let your build work as expected.

Closing as you probably still need libjemalloc for the following buildpacks in order to compile against and we're 100% not going to support phasing in environment variables for specific buildpacks phases. If you don't need them for the following buildpacks, we're still not going to support runtime-only env vars as thats not Heroku works, and we're trying to emulate that as much as possible here.

from dokku.

gavindsouza avatar gavindsouza commented on June 10, 2024

Thanks for sharing the project goal and providing workarounds. Your suggestion of setting LD_PRELOAD via the .profile script worked. I added something in app.json's predeploy hook to set this if the jemalloc SO is found. Thanks again for your suggestions and your work on dokku!

from dokku.

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.