File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ Bootstrap: docker
2+ From: mambaorg/micromamba
3+
4+ %files
5+ environment.yml /opt
6+
7+ %post
8+ apt-get update && apt-get install -y curl perl gnupg
9+ # Install dependencies
10+ micromamba install -q -y -n base -f /opt/environment.yml
11+ micromamba clean --all --yes
12+
13+ # install quarto
14+ curl -Ls https://github.com/quarto-dev/quarto-cli/releases/download/v1.7.31/quarto-1.7.31-linux-amd64.deb -o quarto.deb && \
15+ dpkg -i quarto.deb&& \
16+ rm quarto.deb
17+
18+ quarto install tinytex
19+ /root/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus libertinus-fonts libertinus-otf orcidlink
20+
21+ %environment
22+ export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
23+ export XDG_CACHE_HOME=/tmp/quarto_cache_home
24+ export XDG_DATA_HOME=/tmp/quarto_data_home
25+ # add /root/.TinyTex/bin to PATH in the /etc/profile
26+ export PATH=/root/.TinyTeX/bin/x86_64-linux:$PATH
27+
28+ %labels
29+ EnvironmentFile: /opt/environment.yml
30+
31+ %help
32+ This container containes a Python environment created
33+ from an environment file and quarto CLI.
34+
35+ To run Python from the environment:
36+
37+ apptainer run my_environment.sif python
38+
39+ To see the environment file used to create the environment:
40+
41+ apptainer run my_environment.sif cat /opt/environment.yml
42+
43+ To see what packags are in the environment:
44+
45+ apptainer run micromamba list
46+
47+ To use quarto:
48+
49+ apptainer run my_environment.sif quarto --version
Original file line number Diff line number Diff line change 1+ name : tsne-paper
2+ channels :
3+ - conda-forge
4+ dependencies :
5+ - numpy
6+ - pandas
7+ - scikit-learn
8+ - jupyter
9+ - jupyter-cache
10+ - plotly
11+ - python-kaleido
You can’t perform that action at this time.
0 commit comments