Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Install fonts only #3

Closed
wants to merge 1 commit into from
Closed

Install fonts only #3

wants to merge 1 commit into from

Conversation

gnuletik
Copy link

@gnuletik gnuletik commented Aug 28, 2022

Hi !

Thanks for this fork which is really useful !

I recently needed to upgrade an app to the heroku-22 stack (which is already supported upstream on https://github.com/jontewks/puppeteer-heroku-buildpack).

To avoid merging upstream changes and adding support for heroku-22 stack here, I used a different strategy which seems lighter.

This buildpack can only be used to install fonts and we can keep the upstream buildpack to install puppeteer libraries.
This can be configured with:

# clear cache and current buildpacks
heroku builds:cache:purge
heroku buildpacks:clear

# upstream buildpack for puppeteer
heroku buildpacks:add -i 1 jontewks/puppeteer

# my current fork, but if merged, it could be renamed to
# https://github.com/CoffeeAndCode/puppeteer-extra-fonts
heroku buildpacks:add -i 2 https://github.com/gnuletik/puppeteer-heroku-buildpack

# any other apps buildpack
heroku buildpacks:add -i 3 heroku/nodejs

This has been tested on my app without any issue.

What do you think ?

If you're okay with that, I can finish this PR by updating the README, and I think that you should rename this repo.

@gnuletik gnuletik marked this pull request as draft August 28, 2022 15:06
@jonknapp
Copy link
Member

I love this approach. My fork has drifted so far from mainline that I'm concerned it will be more harmful for people than helpful. I wonder if it would be better to coordinate something with @jontewks so that either 1) the main buildpack can handle font installation, or 2) a separate buildpack can be introduced that just focuses on adding fonts (if there's not one already).

I think ideally, we'd do one of the two options (whatever people agree on) and then I can deprecate my buildpack fork since it hasn't been shown the attention it needs.

@gnuletik
Copy link
Author

Thanks for the fast reply!

Last time, @jontewks did not agree on adding the extra 22MB of fonts on the buildpack.

This PR is about 2) if you want to keep maintaining this. I can also host this repo on my username if you don't.

@jonknapp
Copy link
Member

jonknapp commented Aug 28, 2022 via email

@gnuletik
Copy link
Author

Here is the repo: https://github.com/gnuletik/puppeteer-heroku-buildpack-fonts

Thanks again!

@gnuletik gnuletik closed this by deleting the head repository Aug 28, 2022
@jonknapp
Copy link
Member

Thanks again; I updated the README of this project and will archiving it later this week. You just saved me the time I needed to get a few client projects eventually updated. :)

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

Successfully merging this pull request may close these issues.

2 participants