Browse Source

improvement

docker
parent
commit
4f9041f463
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 8
      app/Shakefile.hs
  2. 4
      engine/docker-run.sh
  3. 6
      shell.nix

8
app/Shakefile.hs

@ -373,10 +373,10 @@ genPdfAction _getPost out = do
, srcFile
, "--resource-path=."
, "-H", "engine" </> "deeplist.tex"
, "-V", "mainfont:CMU Serif"
, "-V", "mainfontoptions:Renderer=OpenType, Mapping=tex-text, ItalicFeatures={Alternate = 0}, Ligatures={Common,Rare,Historic,Contextual},Contextuals=Inner,Alternate=1"
, "-V", "monofont:Menlo"
, "-V", "monofontoptions:Scale=0.7"
-- , "-V", "mainfont:CMU Serif"
-- , "-V", "mainfontoptions:Renderer=OpenType, Mapping=tex-text, ItalicFeatures={Alternate = 0}, Ligatures={Common,Rare,Historic,Contextual},Contextuals=Inner,Alternate=1"
-- , "-V", "monofont:Menlo"
-- , "-V", "monofontoptions:Scale=0.7"
, "-o", out ]

4
engine/docker-run.sh

@ -2,7 +2,7 @@
cd "$(git rev-parse --show-toplevel)" || exit 1
if (($#>0)); then
docker run --rm -v $PWD:/home/her.esy.fun --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run $@"
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun /bin/sh -c "cd /home/her.esy.fun && nix-shell --run $@"
else
docker run --rm -v $PWD:/home/her.esy.fun --name her.esy.fun -it her.esy.fun
docker run --rm -v $PWD:/home/her.esy.fun --expose=3000 --name her.esy.fun -it her.esy.fun
fi

6
shell.nix

@ -29,7 +29,8 @@ pkgs.mkShell {
perlPackages.URI
minify
imagemagick
texlive.combined.scheme-medium # https://nixos.wiki/wiki/TexLive
texlive.combined.scheme-full # https://nixos.wiki/wiki/TexLive
cm_unicode
# dev env
# niv
git
@ -39,4 +40,7 @@ pkgs.mkShell {
ripgrep
nodePackages.http-server
];
shellHook = ''
export FONTCONFIG_FILE=${pkgs.fontconfig.out}/etc/fonts/fonts.conf
'';
}

Loading…
Cancel
Save