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

Lock version of wkhtmltopdf-binary due to it's size #130

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

davidbeig
Copy link
Contributor

Since the upgrade in #128, the gem wkhtmltopdf-binary had an increase in size of about 150Mb. This made impossible to deploy the upgraded app to Heroku since the compressed app would be of over 500Mb.

Here you can see the size of the different versions, and the huge increase between v0.12.6.6 and v0.12.6.7
https://rubygems.org/gems/wkhtmltopdf-binary/versions/0.12.6.6

This problem has also been referenced in their github, as we can see in this issue, and that comes from a prior versions.

The wkhtmltopdf-binary downloads loads of compressed binaries, and the uses the one for the platform it's running in. Another workaround would be to use a buildpack to remove the unnecessary zips before the compressing step in heroku. That way we could get to a smaller footprint, then having an improved deploy of the application.

@davidbeig davidbeig self-assigned this Jul 22, 2024
@davidbeig davidbeig added the dependencies Pull requests that update a dependency file label Jul 22, 2024
@andreslucena andreslucena changed the title Set version of wkhtmltopdf-binary due to it's size Lock version of wkhtmltopdf-binary due to it's size Jul 22, 2024
Copy link
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a small change: we should fix this upstream (in decidim/decidim) as other implementers will have this same problem. As we should do it before the v0.29.0, I just left a comment so we don't forget about it

Gemfile Show resolved Hide resolved
Co-authored-by: Andrés Pereira de Lucena <[email protected]>
@fblupi fblupi requested a review from andreslucena July 22, 2024 14:28
@fblupi fblupi merged commit 3adbf58 into master Jul 22, 2024
1 check passed
@fblupi fblupi deleted the fix/wkhtmltopdf_size branch July 22, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants