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

scfbuild with Docker #17

Open
b-g opened this issue Aug 21, 2018 · 1 comment
Open

scfbuild with Docker #17

b-g opened this issue Aug 21, 2018 · 1 comment

Comments

@b-g
Copy link

b-g commented Aug 21, 2018

This is to document how to use scfbuild with Docker.

Add a Dockerfile with (to the folder containing scfbuild):

FROM ubuntu:18.04
RUN apt-get update && apt-get upgrade -y
RUN apt-get install python-pip -y
RUN pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org fonttools
RUN pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org pyyaml
RUN apt-get install fontforge python-fontforge -y

In terminal:

# Create container; named "openmoji" (could be any other name):
$ docker build -t openmoji .

# Share folder between host computer and docker container
# Run bash "inside" of the container (think of it as being logged in to remote server)
$ docker run --interactive --tty --rm --volume "$PWD":/wd --workdir /wd "openmoji:latest" bash

# Now you can run scfbuild to create a colorfont with the contents of the shared folder e.g.:
$ bin/scfbuild -c scfbuild.yml

@13rac1 Thanks for the hints! Worked nearly out of the box :) Happy to do a PR documenting this ... if helpful.

@13rac1
Copy link
Owner

13rac1 commented Sep 12, 2020

PR in #20 I'm working on the new twemoji-font release, but will look into this. Thanks!

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