Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow meteor bundle #73

Closed
sverrirsig opened this issue Jun 16, 2021 · 2 comments
Closed

Very slow meteor bundle #73

sverrirsig opened this issue Jun 16, 2021 · 2 comments

Comments

@sverrirsig
Copy link

First of all, thank you for this project. It is a huge life-saver in a k8s migration I'm performing.

just wanted to get feedback on this and if it's abnormal:

I'm using the Dockerfile with native dependancies, the following step:

Step 8/24 : RUN bash $SCRIPTS_FOLDER/build-meteor-bundle.sh

is taking a very long time (~22 minutes) in CircleCI. Granted, the project is quite large.

Is this expected or are there any suggested performance enhancers I could try out?

Thank you.

@GeoffreyBooth
Copy link
Collaborator

GeoffreyBooth commented Jun 16, 2021

Without knowing anything about your project, I would guess it’s slow because one of your native dependencies doesn’t ship with binaries for musl/Alpine Linux and those binaries are getting compiled during install time. You could remove the -alpine from the two FROM lines to use Ubuntu Linux instead, which your dependency is more likely to be shipping a prebuilt binary for. You could also update the dependency itself to include binaries for musl; I submitted a PR to node-fibers to add support for musl binaries to that, which is a dependency of Meteor itself (the acceptance of that PR was what led to me being able to support the faster, default Dockerfile that assumes no native dependencies that require compilation at install time).

@sverrirsig
Copy link
Author

That sounds like a likely culprit. Thank you for taking the time to respond @GeoffreyBooth!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants