Skip to content

Commit a4a893e

Browse files
Merge pull request #299 from UBC-DSCI/docker-conda-fix
Docker conda builds
2 parents 7d6bdb3 + 7bd4ab1 commit a4a893e

File tree

3 files changed

+23
-33
lines changed

3 files changed

+23
-33
lines changed

Dockerfile

+21-31
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,29 @@ WORKDIR "${HOME}"
1313
# remove the "work/" directory added in an earlier layer...
1414
RUN rm -rf work
1515

16-
17-
RUN pip install docutils==0.17.1 # Need to pin docutils to an old version for now, due to https://github.com/executablebooks/jupyter-book/issues/2022
18-
RUN pip install referencing
19-
RUN pip install jupyter-book
20-
# Pinning pandas until altair 5.1.2 to avoid future warning https://github.com/altair-viz/altair/issues/3181
21-
RUN pip install numpy jinja2 pandas altair">=5.1.2" "vegafusion[embed]" vl-convert-python">=0.14" click ibis-framework ghp-import jupytext nodejs lxml
22-
23-
# forces scikit-learn to grab latest to avoid bug in 1.3.0 related to checking for c-contiguity breaking figures in classification 2. See https://github.com/scikit-learn/scikit-learn/pull/26772
24-
# TODO: remove this once scikit-learn 1.4.x or beyond releases and is incorporated into jupyter/scipy-notebook
25-
RUN pip install -U git+https://github.com/scikit-learn/scikit-learn.git@main
26-
27-
# install plotly for 3d figures
28-
RUN pip install plotly
29-
3016
# disable warnings that pollute build logs; seems to be related to the update to python 3.11
3117
# https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used-python-3-11-0/16544/12
3218
ENV PYDEVD_DISABLE_FILE_VALIDATION=1
3319

3420
## Install various python packages
35-
# commented out for now due to various package version conflicts
36-
# installing via pip instead above
37-
#RUN mamba install --quiet --yes \
38-
# 'numpy' \
39-
# 'jinja2' \
40-
# 'altair_data_server' \
41-
# 'altair_saver' \
42-
# 'click' \
43-
# 'ibis-framework' \
44-
# 'ghp-import' \
45-
# 'jupytext' \
46-
# 'jupyter-book' \
47-
# 'nodejs' \
48-
# && mamba clean --all -f -y \
49-
# && fix-permissions "${CONDA_DIR}" \
50-
# && fix-permissions "/home/${NB_USER}"
51-
21+
RUN mamba install --quiet --yes \
22+
'numpy' \
23+
'pandas>=2.1.3' \
24+
'jinja2' \
25+
'altair>=5.1.2' \
26+
'vl-convert-python>=0.14' \
27+
'vegafusion[embed]' \
28+
'click' \
29+
'ibis-framework' \
30+
'ghp-import' \
31+
'jupytext' \
32+
'jupyter-book' \
33+
'scikit-learn>=1.3.2' \
34+
'nodejs' \
35+
'plotly' \
36+
'lxml' \
37+
'referencing' \
38+
'docutils==0.17.1' \
39+
&& mamba clean --all -f -y \
40+
&& fix-permissions "${CONDA_DIR}" \
41+
&& fix-permissions "/home/${NB_USER}"

build_html.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
chmod -R o+w source/
2-
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20231110054348fd23c8 /bin/bash -c "jupyter-book build source"
2+
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20231112004031dd2207 /bin/bash -c "jupyter-book build source"

build_pdf.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
chmod -R o+w source/
2-
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20231110054348fd23c8 /bin/bash -c "export BOOK_BUILD_TYPE='PDF'; jupyter-book build source --builder pdflatex"
2+
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20231112004031dd2207 /bin/bash -c "export BOOK_BUILD_TYPE='PDF'; jupyter-book build source --builder pdflatex"

0 commit comments

Comments
 (0)