So many changes
This commit is contained in:
parent
1e98c07897
commit
8b25df85bc
3 changed files with 40 additions and 18 deletions
40
Dockerfile
40
Dockerfile
|
@ -1,30 +1,36 @@
|
||||||
FROM ubuntu
|
FROM ubuntu:latest as base
|
||||||
|
|
||||||
ENV TZ=US/Eastern
|
ENV TZ=US/Eastern
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y build-essential curl
|
RUN apt-get install -y build-essential curl zstd git
|
||||||
|
|
||||||
# NodeJS >= 6.0
|
FROM base as builder
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
|
|
||||||
# ttfautohint
|
|
||||||
RUN apt-get install -y ttfautohint
|
|
||||||
|
|
||||||
# otfcc depends on premake5
|
# otfcc depends on premake5
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN curl -sLo premake5.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-alpha14/premake-5.0.0-alpha14-linux.tar.gz
|
ENV PREMAKE_VERSION 5.0.0-alpha15
|
||||||
RUN tar xvf premake5.tar.gz && mv premake5 /usr/local/bin/premake5 && rm premake5.tar.gz
|
RUN curl -sL https://github.com/premake/premake-core/releases/download/v${PREMAKE_VERSION}/premake-${PREMAKE_VERSION}-linux.tar.gz | tar -xzC /tmp
|
||||||
|
RUN mv /tmp/premake5 /usr/local/bin/premake5
|
||||||
|
|
||||||
# otfcc
|
# otfcc
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN curl -sLo otfcc.tar.gz https://github.com/caryll/otfcc/archive/v0.10.4.tar.gz
|
ENV OTFCC_VERSION=0.10.4
|
||||||
RUN tar xvf otfcc.tar.gz && mv otfcc-0.10.4 otfcc
|
RUN curl -sL https://github.com/caryll/otfcc/archive/v${OTFCC_VERSION}.tar.gz | tar -xzC /tmp
|
||||||
|
RUN mv otfcc-${OTFCC_VERSION} otfcc
|
||||||
WORKDIR /tmp/otfcc
|
WORKDIR /tmp/otfcc
|
||||||
RUN premake5 gmake && cd build/gmake && make config=release_x64
|
RUN premake5 gmake && cd build/gmake && make config=release_x64
|
||||||
WORKDIR /tmp/otfcc/bin/release-x64
|
|
||||||
RUN mv otfccbuild /usr/local/bin/otfccbuild
|
FROM base
|
||||||
RUN mv otfccdump /usr/local/bin/otfccdump
|
COPY --from=builder /tmp/otfcc/bin/release-x64/otfccbuild /usr/local/bin/otfccbuild
|
||||||
WORKDIR /tmp
|
COPY --from=builder /tmp/otfcc/bin/release-x64/otfccdump /usr/local/bin/otfccdump
|
||||||
RUN rm -rf otfcc/ otfcc.tar.gz
|
|
||||||
|
# NodeJS >= 12.16.0
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
||||||
|
RUN apt-get install -y nodejs ttfautohint magic-wormhole
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
ADD ./private-build-plans.toml /
|
||||||
|
ADD build.sh /
|
||||||
|
|
||||||
|
CMD ["/build.sh"]
|
||||||
|
|
14
build.sh
Normal file
14
build.sh
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash -eux
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
git clone https://github.com/be5invis/Iosevka
|
||||||
|
cp private-build-plans.toml ./Iosevka
|
||||||
|
|
||||||
|
cd /Iosevka
|
||||||
|
npm i
|
||||||
|
npm run build -- contents::iosevka-acicchetti
|
||||||
|
|
||||||
|
cd dist/iosevka-acicchetti/ttf/
|
||||||
|
tar avf iosevka-acicchetti-$(date -I).tzst *.ttf
|
||||||
|
|
||||||
|
wormhole send *.tzst
|
4
justfile
4
justfile
|
@ -2,7 +2,9 @@ docker-build:
|
||||||
DOCKER_BUILDKIT=1 docker build -t iosevka .
|
DOCKER_BUILDKIT=1 docker build -t iosevka .
|
||||||
|
|
||||||
docker-run: docker-build
|
docker-run: docker-build
|
||||||
sudo docker run -it --mount type=bind,source=$(pwd),dst=/Iosevka iosevka
|
docker run -it iosevka
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git clone http://github.com/be5invis/iosevka
|
git clone http://github.com/be5invis/iosevka
|
||||||
|
|
||||||
|
wormhole: docker-run
|
||||||
|
|
Loading…
Add table
Reference in a new issue