Git Product home page Git Product logo

Comments (3)

GeoffreyBooth avatar GeoffreyBooth commented on July 28, 2024

Are you using https://github.com/disney/meteor-base/blob/main/example/app-with-native-dependencies.dockerfile? There are three base images there; the middle one compiles your app dependencies in an Alpine context. This is mentioned in https://github.com/disney/meteor-base#step-1-bootstrap-dockerfile-from-template.

If this doesn’t address your issue, please provide a minimal reproduction. You can also search this repo for issues related to “bcrypt,” as that’s a very commonly used native dependency that has tripped people up in the past.

from meteor-base.

ramnes avatar ramnes commented on July 28, 2024

Hey there!

We're experiencing this issue: monti-apm/meteor-profiler#6

The problem seems to be that v8-profiler-next gets compiled against glibc (Debian) and then ran against musl (Alpine). Or it might just be that it doesn't like musl.

Anyway, using Debian as a final image resolved the issue: Refty/lemverse@68f5ff9

I've tried the app-with-native-dependencies.dockerfile as well, but it doesn't change anything since the npm deps are still built on Debian and ran on Alpine.

Please consider reopening this issue and either base this repository's src/Dockerfile on Alpine, or modify examples so that they're using a slim Debian instead of Alpine. :)

PS – Debian slim images are only 10MB or so larger than Alpine images, but tend to be much more stable (glibc is much more widely used and supported than musl).

from meteor-base.

GeoffreyBooth avatar GeoffreyBooth commented on July 28, 2024

If you look at

RUN bash $SCRIPTS_FOLDER/build-meteor-npm-dependencies.sh --build-from-source
, your dependencies are recompiled under Alpine as part of app-with-native-dependencies.dockerfile. That won’t help if the dependency itself won’t compile under Alpine or run successfully under Alpine, or if it ships just a binary without sources that can be compiled, which sounds like the edge case you’re mentioning. In that case, another file like app-with-native-dependencies-debian.dockerfile could perhaps be created that changes both Alpine images (the intermediate build image and the runtime image) to Debian, similar to your changes in Refty/lemverse@68f5ff9. If you’d like to try this out and open a PR, including updates to the README and tests, I’ll review it.

from meteor-base.

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.