-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix Failing Docker Builds #882
Conversation
The Alpine Linux package repository no longer contains the `fontforge` package for x86 and ARM architectures in the `edge/testing` branch. This commit updates the Dockerfile to install the `fontforge` package from the `edge/community` branch to resolve the failing Docker builds.
Thank you! I'm no docker expert at all. Will try after I get the ordinary release right. |
Wouldn't claim to be an expert but have 8+ years of experience working with Docker. Happy to be of assistance if any issues arise. |
I guess I have no rights regarding the docker container. I do not even have a docker hub account. But it seems Ryan set this up to be automatically pushed when run?
|
Wow, Alpine has already Wanted to change the release patching here (runs Ubuntu) also to March 2022, which seems like self-building. |
@Finii Great to see that a GitHub Action is already in place to automatically push the new container image to Docker Hub! An improvement I would suggest is to build Docker images for the most common architectures. The current GitHub action referenced above only builds images for amd64. As a result, anyone with an Apple M1/M2 Silicon macOS system will encounter an error similar to the following when they attempt to run patcher: $ docker run -v $PWD/ttf:/in -v $PWD/ttf-nerd-font:/out nerdfonts/patcher:latest --complete
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Running with options:
--complete Since the I'd be happy to write up and submit a PR if this is of interest. Read What are multi-arch images? to learn more. |
You seem to be on an arm platform, so there would be at least one user who benefits from it. |
Finally managed to get the container spin-up right and could test my newest changes. Is there a way to debug inside the container, when something goes wrong? First I thought I broke |
Great -- will get something worked up and submitted. Everyone on M1 or M2 Macs will run into this, so it'll be more users going forward. |
Yes, you can replace the ENTRYPOINT with a docker run --entrypoint /bin/sh --rm -it nerdfonts/patcher:latest |
Will be improved by #985 |
Description
The Alpine Linux package repository no longer contains the
fontforge
package for x86 and ARM architectures in theedge/testing
branch, as can be verified here:https://pkgs.alpinelinux.org/packages?name=fontforge&branch=edge&repo=&arch=&maintainer=
This commit updates the
nerdfonts/patcher
Dockerfile to install thefontforge
package from theedge/community
branch to resolve the failing Docker builds.Requirements / Checklist
What does this Pull Request (PR) do?
Modifies the Dockerfile so that the
RUN
command reads:RUN apk update && apk upgrade && apk add --no-cache fontforge --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community && \ apk add --no-cache py3-pip && \ pip install configparser
How should this be manually tested?
Clone the
fix/docker-build
branch of the frankhinek/nerd-fonts repo:git clone -b fix/docker-build --depth 1 https://github.com/frankhinek/nerd-fonts.git
or manually patch the
Dockerfile
as specified above.Build the Docker container image:
docker build -t nerdfonts/patcher .
Any background context you can provide?
The nerdfonts/patcher container image published to Docker Hub hasn't been updated for 8 months, so it would be great if, after the Docker Builds are succeeding, a new image can be pushed to Docker Hub.