Newer
Older
FROM registry.ethz.ch/eduit/images/notebooks/25fs/jh-notebook-base:ecb5de7a
USER root
#######
# Julia
#######
RUN http_proxy=http://proxy.ethz.ch:3128 https_proxy=http://proxy.ethz.ch:3128 julia -e "using Pkg; Pkg.add.([ \
\"NBInclude\", \
\"PyPlot\", \
\"Roots\", \
\"UnPack\", \
\"WhereTheWaterFlows\", \
\"BenchmarkTools\", \
\"Plots\" \
]); Pkg.update;"
####
# R
####
RUN Rscript >/dev/null 2>&1 -e "install.packages(pkgs=c( \
'bayesplot', \
'bayestestR', \
'blockmodeling', \
'biostat3', \
'brms', \
'countrycode', \
'GGally', \
'ggforce', \
'ggplot2', \
'ggraph', \
'goldfish', \
'gt', \
'gtsummary', \
'igraph', \
'lfe', \
'lubridate', \
'loo', \
'matlib', \
'mice', \
'nloptr', \
'openxlsx', \
'RBGL', \
'RColorBrewer', \
'RcppEigen', \
'RSiena', \
'sbm', \
'scico', \
'sensitivity', \
'sjPlot', \
'sna', \
'stargazer', \
'statnet', \
'terra', \
'tibble', \
'tidybayes', \
'tidygraph', \
'tidyverse'), repos=c('http://cran.r-project.org'), dependencies=TRUE, timeout=300)" \
&& \
Rscript -e "install.packages(pkgs=c('BiocManager'), repos=c('http://cran.r-project.org'))" \
&& \
Rscript -e "BiocManager::install()" \
&& \
Rscript -e "devtools::install_github(repo = 'AECP-ETHZ/ETH.OLP')"
##############################
# Python and R from Condaforge
##############################
# Torch: failed to get filesystem from image: mkdir /opt/conda/lib/python3.12/site-packages/torch/include/ATen: file exists
# https://github.com/GoogleContainerTools/kaniko/issues/3091
mamba install -q -c defaults -c conda-forge -c bioconda -c bokeh -c pytorch \
biopython \
bokeh \
boost-histogram \
corner \
cobra \
dynesty \
emcee \
ete3 \
flax \
igraph \
ipydatagrid \
isoduration \
keras \
meshio \
mplcursors \
multi_rake \
scikit-image \
scikit-learn \
seaborn \
sparqlwrapper \
tabulate \
tinygp \
trame \
trame-vuetify \
uncertainties \
uri-template \
webcolors \
wikipedia \
wordcloud \
r-ape \
r-bio3d \
r-devtools \
r-gifski \
r-lpsolve \
r-lhs \
r-rsolnp \
&& \
mamba install -c python-control control \
&& \
mamba clean --all
##################
# Python from pypi
##################
# Packages breaking Jupyter or other packages
# brightway25 \
# ecoinvent-interface \
# mariopy \
# pypardiso \
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
RUN PIP_PROXY=http://proxy.ethz.ch:3128 pip3 install --proxy=http://proxy.ethz.ch:3128 --default-timeout=100 \
adjustText \
anndata \
asserts \
astroquery \
brainpy \
Cartopy \
deep_translator \
einsteinpy \
eppy \
geopandas \
gmsh \
goatools \
gseapy \
gurobipy \
jaxopt \
keybert \
langchain-openai \
lmfit \
mycolorpy \
mpl-interactions["jupyter"] \
mpl_point_clicker \
networkit \
networkx \
numdifftools \
obspy \
openai \
opencv-python opencv-contrib-python \
otter-grader \
petitRADTRANS \
zfit \
PyAstronomy \
pycosmo \
pycryptodome \
pyFAI \
rise \
sensemapi \
summa \
tensorflow \
"tensorflow-probability[jax]" \
umap \
umap-learn \
vpython \
wiktionaryparser \
xgboost \
yolov5
# =====================
# Packages requested after semester start, should go to the list 2 RUNs above if a major rebuild is planned.
# Placing it here keeps the image cache disk space low, because it adds only a thin extra layer
# =====================
# RUN PIP_PROXY=http://proxy.ethz.ch:3128 pip3 install -U --proxy=http://proxy.ethz.ch:3128 --default-timeout=100 \
# package_1 \
# package_last
# User submitted support programs
COPY bin /usr/local/bin/
# Configuration items
COPY etc /etc
USER 1000