rang icon indicating copy to clipboard operation
rang copied to clipboard

A collection of post-installation steps

Open chainsawriot opened this issue 2 years ago • 3 comments

  • rmarkdown / latex: RUN apt-get -y install pandoc pandoc-citeproc texlive
  • quarto: RUN apt-get install -y curl git && curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb && dpkg -i quarto-linux-amd64.deb && quarto install tool tinytex && rm quarto-linux-amd64.deb
  • clean: RUN rm -rf /var/lib/apt/lists/* && if [ -d "$CACHE_PATH" ]; then rm -rf $CACHE_PATH; fi
  • make: RUN apt-get -y install make

chainsawriot avatar Apr 14 '23 08:04 chainsawriot

ttps://quarto.org/download/latest/quarto-linux-amd64.deb redirects to the last stable version (https://github.com/quarto-dev/quarto-cli/releases/download/v1.2.475/quarto-1.2.475-linux-amd64.deb at the time of writing). My experience is that quarto is still very new and development is fast. Because of this, I'm always using the pre-release (https://github.com/quarto-dev/quarto-cli/releases) and, in my Dockerfile, I have

curl -L $(curl https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\"download_url\":\s\")https.*amd64\.deb") -o /tmp/quarto.deb

rgaiacs avatar Apr 14 '23 10:04 rgaiacs

Maybe we should remove "RUN" to cater for #134

chainsawriot avatar Apr 15 '23 15:04 chainsawriot

@chainsawriot perhaps there should be one text file generation function that can simply insert "RUN", "ENV" and other keywords if it is generating a Dockerfile and %post/%environment, etc. sections if it is generating Appatiner/Singularity definition.

So maybe I should not have renamed COPY to FILES and RUN to POST in the apptainerize() function.

e-kotov avatar Apr 18 '23 09:04 e-kotov