-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Docker support #449
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
Docker support #449
Conversation
|
Maybe you can take some ideas from here: cdalvaro/docker-nerd-fonts-patcher |
|
I'll take a look this weekend. Thanks and good stuff! |
|
Hey I just got around to trying this out, it's pretty exciting but I have an issue. pwd
/home/ryan/projects/nerd-fonts/temp/docker-testing
ls -l
drwxrwxrwx 2 ryan ryan 4096 Apr 6 12:52 in
drwxrwxrwx 2 ryan ryan 4096 Apr 6 12:51 out
sudo docker run -v /home/ryan/projects/nerd-fonts/temp/docker-testing/in:/in -v /home/ryan/projects/nerd-fonts/temp/docker-testing/out:/out nerdfonts/patcher --complete
sh: New: unknown operandWhere Maybe I'm doing something dumb? 🤔 Thanks |
|
I just followed the instructions here on my machine (macOS X Catalina) and it worked just fine: docker run -v $PWD:/in -v $PWD:/out nerdfonts/patcher --completewhere |
|
Yeah I'm on Ubuntu 16.04 LTS (don't laugh at me 😄) I've got the branch working but I definitely do see that shell error but it DOES end up patching it 👍 I tried looking into shellcheck, probably some minor thing. I haven't gotten the container from Docker Hub working yet.. I'll try again hopefully tomorrow.. |
Yep, can work together on some of these. Thanks again |
|
Completely forgot about this 🙁. Dockerfile needs some attention after a year ✔ Docker repository ownership transferred fyi @ryanoasis |
|
Hey @mdschweda Yep. I finally got around to adding the secrets after setting up my account that you had linked me to for the registry 😄 Build error has been fixed by other PRs (thanks goes out to those peeps!) Docker publishing is now working/fixed |
Description
The changes introduce Docker support for Nerd Fonts.
Requirements / Checklist
./font-patcher Inconsolata.otf --fontawesome --octicons --pomicons./gotta-patch-em-all-font-patcher\!.sh HermitWhat does this Pull Request (PR) do?
Dockerfilealongside.dockerignoreand a shell script that serves as the entrypoint of the containernerdfonts/patcher)The PR requires some follow-up work:
DOCKER_USERandDOCKER_PATfor pushing images to Docker HubHow should this be manually tested?
I did an initial push to the Docker repository for testing purposes. You can test the image by following the instructions on the repository site.
Any background context you can provide?
Especially on Windows, the Fonts Patcher is inconvenient to use. An official Docker image would give users an easy-to-use alternative and a possibility to use the latest version of the Fonts Patcher in a pre-configured environment or as part of build pipelines.
What are the relevant tickets (if any)?
This PR relates to issue #422 . I have worked on the changes before stumbling over the issue. The Dockerfile is very similar @carlosedp 's work and introduces some improvements: I could greatly reduce the image size by basing the image on Alpine Linux and defined a custom entrypoint so that users can pass options into the container analogous to how you would use the CLI.
Screenshots (if appropriate or helpful)
❌