Skip to content

scfbuild with Docker #17

Description

@b-g

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions