silnrsi / smith

font development, testing and release
Other
14 stars 5 forks source link

Provide docker image in addition to virtual machine installation #57

Closed eduardomourar closed 5 months ago

eduardomourar commented 4 years ago

I have been able to use the following Dockerfile to run smith with Ubuntu Bionic:

FROM ubuntu:18.04

ENV LANG=C.UTF-8

USER root

WORKDIR /usr/local/src

# Install requirements
RUN export DEBIAN_FRONTEND=noninteractive; \
    export DEBCONF_NONINTERACTIVE_SEEN=true; \
    echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
    echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
    apt-get update -qy \
 && apt-get install -qy --no-install-recommends tzdata software-properties-common \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/* \
 && add-apt-repository -sy ppa:silnrsi/smith-py3 \
 && add-apt-repository -sy ppa:fontforge/fontforge \
 && add-apt-repository -y ppa:jonathonf/texlive-2019 \
 && add-apt-repository -y ppa:git-core/ppa \
 && apt-get remove *php* *mono* *dotnet* -y \
 && apt-get autoremove -y && apt-get upgrade -qy \
 && apt-get install python3-pip python3-setuptools git -y \
 && pip3 install --upgrade git+https://github.com/googlefonts/fontbakery.git@master#egg=fontbakery \
 && apt-get install libjson-perl libtext-csv-perl libharfbuzz-bin -y \
 && apt-get install smith-font -y --no-install-recommends

CMD tail -f /dev/null

It would nice if this was part of this repository. Then it can automatically build image and push to Docker hub.

n7s commented 4 years ago

Thanks. I have been experimenting with a docker-based approach (we've been focused on vagrant profiles so far as you've probably found out), mostly with the goal accelerating CI configurations at this stage. There are various updates and changes to the dependency chain in the pipeline. I will look at providing a official smith image others can make use of via DockerHub (might be a while though).

tim-eves commented 1 year ago

We are now building smith build environments as a docker image and pushing into the ghcr.io as a github package on https://github.com/silnrsi/smith/pkgs/container/smith