Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A collection of post-installation steps #133

Open
chainsawriot opened this issue Apr 14, 2023 · 3 comments
Open

A collection of post-installation steps #133

chainsawriot opened this issue Apr 14, 2023 · 3 comments

Comments

@chainsawriot
Copy link
Collaborator

chainsawriot commented Apr 14, 2023

  • 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 chainsawriot mentioned this issue Apr 14, 2023
@rgaiacs
Copy link

rgaiacs commented Apr 14, 2023

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

chainsawriot added a commit that referenced this issue Apr 15, 2023
@chainsawriot
Copy link
Collaborator Author

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

@e-kotov
Copy link
Contributor

e-kotov commented Apr 18, 2023

@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.

chainsawriot added a commit that referenced this issue Apr 18, 2023
chainsawriot added a commit that referenced this issue Apr 18, 2023
Add `.normalize_docker_steps` ref #133
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants