GitLab CI using MiKTeX docker image











up vote
1
down vote

favorite
1












I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again.
Afaik MiKTeX more or less will only download what is needed for the TeX file.



I already have a proper setup with the docker image blang/latex, but I can't seem to get miktex/miktex to compile.



It always fails with:



2018-06-21 09:40:38,858Z INFO  pdflatex - mpm: extracting files from geometry-de.tar.lzma...
2018-06-21 09:40:39,257Z FATAL pdflatex - The installed file does not exist.
2018-06-21 09:40:39,257Z FATAL pdflatex - Info: fileName="/miktex/.miktex/texmfs/install/tex/latex/geometry-de/geometry.sty"
2018-06-21 09:40:39,257Z FATAL pdflatex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2018-06-21 09:40:39,257Z FATAL pdflatex - Line: 55
2018-06-21 09:40:39,258Z INFO pdflatex - finishing with exit code 1


gitlab-ci.yml:



image: miktex/miktex

before_script:
- apt-get update -qq && apt-get install -y -qq inkscape python-pygments

build:
script:
- ./convert_svg.sh
- pdflatex -shell-escape abgabe.tex
artifacts:
paths:
- "*.pdf"


This is my project: https://gitlab.com/ZerataX/DS_TEMPLATE/



if there is some other tex distribution that is smaller, but also installs my dependencies automatically that would also be a great solution to my problem.










share|improve this question
























  • there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
    – naphaneal
    Jun 22 at 14:07












  • yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
    – ZerataX
    Jun 22 at 14:16










  • sorry, misunderstanding.
    – naphaneal
    Jun 22 at 14:18










  • You could check the setup the latex teams uses github.com/latex3/latex2e.
    – Ulrike Fischer
    Jun 22 at 15:38






  • 3




    Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
    – Ulrike Fischer
    Jun 22 at 16:17















up vote
1
down vote

favorite
1












I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again.
Afaik MiKTeX more or less will only download what is needed for the TeX file.



I already have a proper setup with the docker image blang/latex, but I can't seem to get miktex/miktex to compile.



It always fails with:



2018-06-21 09:40:38,858Z INFO  pdflatex - mpm: extracting files from geometry-de.tar.lzma...
2018-06-21 09:40:39,257Z FATAL pdflatex - The installed file does not exist.
2018-06-21 09:40:39,257Z FATAL pdflatex - Info: fileName="/miktex/.miktex/texmfs/install/tex/latex/geometry-de/geometry.sty"
2018-06-21 09:40:39,257Z FATAL pdflatex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2018-06-21 09:40:39,257Z FATAL pdflatex - Line: 55
2018-06-21 09:40:39,258Z INFO pdflatex - finishing with exit code 1


gitlab-ci.yml:



image: miktex/miktex

before_script:
- apt-get update -qq && apt-get install -y -qq inkscape python-pygments

build:
script:
- ./convert_svg.sh
- pdflatex -shell-escape abgabe.tex
artifacts:
paths:
- "*.pdf"


This is my project: https://gitlab.com/ZerataX/DS_TEMPLATE/



if there is some other tex distribution that is smaller, but also installs my dependencies automatically that would also be a great solution to my problem.










share|improve this question
























  • there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
    – naphaneal
    Jun 22 at 14:07












  • yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
    – ZerataX
    Jun 22 at 14:16










  • sorry, misunderstanding.
    – naphaneal
    Jun 22 at 14:18










  • You could check the setup the latex teams uses github.com/latex3/latex2e.
    – Ulrike Fischer
    Jun 22 at 15:38






  • 3




    Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
    – Ulrike Fischer
    Jun 22 at 16:17













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again.
Afaik MiKTeX more or less will only download what is needed for the TeX file.



I already have a proper setup with the docker image blang/latex, but I can't seem to get miktex/miktex to compile.



It always fails with:



2018-06-21 09:40:38,858Z INFO  pdflatex - mpm: extracting files from geometry-de.tar.lzma...
2018-06-21 09:40:39,257Z FATAL pdflatex - The installed file does not exist.
2018-06-21 09:40:39,257Z FATAL pdflatex - Info: fileName="/miktex/.miktex/texmfs/install/tex/latex/geometry-de/geometry.sty"
2018-06-21 09:40:39,257Z FATAL pdflatex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2018-06-21 09:40:39,257Z FATAL pdflatex - Line: 55
2018-06-21 09:40:39,258Z INFO pdflatex - finishing with exit code 1


gitlab-ci.yml:



image: miktex/miktex

before_script:
- apt-get update -qq && apt-get install -y -qq inkscape python-pygments

build:
script:
- ./convert_svg.sh
- pdflatex -shell-escape abgabe.tex
artifacts:
paths:
- "*.pdf"


This is my project: https://gitlab.com/ZerataX/DS_TEMPLATE/



if there is some other tex distribution that is smaller, but also installs my dependencies automatically that would also be a great solution to my problem.










share|improve this question















I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again.
Afaik MiKTeX more or less will only download what is needed for the TeX file.



I already have a proper setup with the docker image blang/latex, but I can't seem to get miktex/miktex to compile.



It always fails with:



2018-06-21 09:40:38,858Z INFO  pdflatex - mpm: extracting files from geometry-de.tar.lzma...
2018-06-21 09:40:39,257Z FATAL pdflatex - The installed file does not exist.
2018-06-21 09:40:39,257Z FATAL pdflatex - Info: fileName="/miktex/.miktex/texmfs/install/tex/latex/geometry-de/geometry.sty"
2018-06-21 09:40:39,257Z FATAL pdflatex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2018-06-21 09:40:39,257Z FATAL pdflatex - Line: 55
2018-06-21 09:40:39,258Z INFO pdflatex - finishing with exit code 1


gitlab-ci.yml:



image: miktex/miktex

before_script:
- apt-get update -qq && apt-get install -y -qq inkscape python-pygments

build:
script:
- ./convert_svg.sh
- pdflatex -shell-escape abgabe.tex
artifacts:
paths:
- "*.pdf"


This is my project: https://gitlab.com/ZerataX/DS_TEMPLATE/



if there is some other tex distribution that is smaller, but also installs my dependencies automatically that would also be a great solution to my problem.







miktex automation continuous-integration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 19:34









PHPirate

687421




687421










asked Jun 22 at 14:00









ZerataX

62




62












  • there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
    – naphaneal
    Jun 22 at 14:07












  • yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
    – ZerataX
    Jun 22 at 14:16










  • sorry, misunderstanding.
    – naphaneal
    Jun 22 at 14:18










  • You could check the setup the latex teams uses github.com/latex3/latex2e.
    – Ulrike Fischer
    Jun 22 at 15:38






  • 3




    Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
    – Ulrike Fischer
    Jun 22 at 16:17


















  • there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
    – naphaneal
    Jun 22 at 14:07












  • yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
    – ZerataX
    Jun 22 at 14:16










  • sorry, misunderstanding.
    – naphaneal
    Jun 22 at 14:18










  • You could check the setup the latex teams uses github.com/latex3/latex2e.
    – Ulrike Fischer
    Jun 22 at 15:38






  • 3




    Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
    – Ulrike Fischer
    Jun 22 at 16:17
















there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
– naphaneal
Jun 22 at 14:07






there's also a dockerized MiKTeX image: miktex.org/howto/miktex-docker
– naphaneal
Jun 22 at 14:07














yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
– ZerataX
Jun 22 at 14:16




yes as I said in my question I am using the miktex/miktex image and I edited my question to include it in the yaml code block.
– ZerataX
Jun 22 at 14:16












sorry, misunderstanding.
– naphaneal
Jun 22 at 14:18




sorry, misunderstanding.
– naphaneal
Jun 22 at 14:18












You could check the setup the latex teams uses github.com/latex3/latex2e.
– Ulrike Fischer
Jun 22 at 15:38




You could check the setup the latex teams uses github.com/latex3/latex2e.
– Ulrike Fischer
Jun 22 at 15:38




3




3




Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
– Ulrike Fischer
Jun 22 at 16:17




Imho it is saner setup than on-the-fly in the middle of a pdflatex run and probably also faster (even more as texlive is cached).
– Ulrike Fischer
Jun 22 at 16:17










1 Answer
1






active

oldest

votes

















up vote
1
down vote













geometry-de doesn't contain geometry.sty (see https://github.com/MiKTeX/miktex-packaging/issues/29).



I would recommend that you update the package database: mpm --update-db






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f437553%2fgitlab-ci-using-miktex-docker-image%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    geometry-de doesn't contain geometry.sty (see https://github.com/MiKTeX/miktex-packaging/issues/29).



    I would recommend that you update the package database: mpm --update-db






    share|improve this answer

























      up vote
      1
      down vote













      geometry-de doesn't contain geometry.sty (see https://github.com/MiKTeX/miktex-packaging/issues/29).



      I would recommend that you update the package database: mpm --update-db






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        geometry-de doesn't contain geometry.sty (see https://github.com/MiKTeX/miktex-packaging/issues/29).



        I would recommend that you update the package database: mpm --update-db






        share|improve this answer












        geometry-de doesn't contain geometry.sty (see https://github.com/MiKTeX/miktex-packaging/issues/29).



        I would recommend that you update the package database: mpm --update-db







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 23 at 13:26









        Christian Schenk

        914




        914






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f437553%2fgitlab-ci-using-miktex-docker-image%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?