Skip to content

Commit 40a538e

Browse files
authored
Bump for Onecodex v0.16.0 (#45)
1 parent d283112 commit 40a538e

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Extended from github.com/jupyter/docker-stacks
44
# See also http://blog.dscpl.com.au/2016/01/roundup-of-docker-issues-when-hosting.html
55

6-
FROM python:3.8-slim-bullseye
6+
FROM python:3.9-slim-bullseye
77

88
LABEL maintainer="Nick Greenfield <nick@onecodex.com>"
99

@@ -100,7 +100,7 @@ RUN wget https://ftp.samba.org/pub/cwrap/nss_wrapper-1.1.2.tar.gz && \
100100
rm -rf nss_wrapper
101101

102102
# Copy `onecodex` installed fonts to local directory
103-
RUN cp /usr/local/lib/python3.8/site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
103+
RUN cp /usr/local/lib/python3.9/site-packages/onecodex/assets/fonts/*.otf /usr/local/share/fonts && fc-cache
104104

105105
# Configure container startup
106106
EXPOSE 8888
@@ -111,8 +111,8 @@ CMD ["jupyter", "notebook"]
111111

112112
# Add assets
113113
RUN mkdir /opt/onecodex/
114-
COPY notebook/notebook.html /usr/local/lib/python3.8/site-packages/notebook/templates
115-
COPY notebook/override.css /usr/local/lib/python3.8/site-packages/notebook/static/notebook/css
114+
COPY notebook/notebook.html /usr/local/lib/python3.9/site-packages/notebook/templates
115+
COPY notebook/override.css /usr/local/lib/python3.9/site-packages/notebook/static/notebook/css
116116
COPY notebook/onecodex.js /home/$NB_USER/.jupyter/custom/
117117
COPY notebook/one-codex-spinner.svg /home/$NB_USER/.jupyter/custom/
118118
COPY notebook/override.css /home/$NB_USER/.jupyter/custom/custom.css
@@ -126,24 +126,26 @@ RUN jupyter nbextension install /usr/local/share/jupyter/customextensions/ \
126126
RUN chmod +x /usr/local/bin/token_notebook.py
127127

128128
# Add patch to jupyter notebook for export to One Codex document portal
129-
COPY notebook/notebook.patch /usr/local/lib/python3.8/site-packages/notebook
130-
RUN cd /usr/local/lib/python3.8/site-packages/notebook \
129+
COPY notebook/notebook.patch /usr/local/lib/python3.9/site-packages/notebook
130+
RUN cd /usr/local/lib/python3.9/site-packages/notebook \
131131
&& patch -p0 < notebook.patch
132132

133133
# Finally fix permissions on everything
134134
# See https://github.com/jupyter/docker-stacks/issues/188
135135
# RUN chown -R $NB_USER:root /home/$NB_USER && chmod -R u+rw,g+rw /home/$NB_USER
136136
RUN chown -R $NB_USER:root /home/$NB_USER && find /home/$NB_USER -type d -exec chmod 775 {} \;
137137

138-
ENV PYTHONPATH "/home/jovyan/.local/lib/python3.8"
138+
ENV PYTHONPATH "/home/jovyan/.local/lib/python3.9"
139139

140140
# Provide full access to the Python directory to allow for pip installs
141-
RUN chown -R $NB_USER:root /usr/local/lib/python3.8
141+
RUN chown -R $NB_USER:root /usr/local/lib/python3.9
142142

143143
# Fix for transparency issue
144144
# Pin in onecodex/onecodex once version w/ fix is released
145145
# https://github.com/Kozea/WeasyPrint/commit/4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef
146146
RUN pip install --force-reinstall 'git+https://github.com/Kozea/WeasyPrint.git@4dfe6079c2d1bd91cccfd9a7d78f8924e2dfabef'
147147

148+
RUN pip install --force-reinstall 'git+https://github.com/CourtBouillon/pydyf.git@f340fcc949382e183118b4807491b9f5cab4a89b'
149+
148150
# Switch to unprivileged user, jovyan
149151
USER $NB_USER

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
awscli==1.22.55
22
numpy==1.22.3
3-
scikit-bio==0.5.8
3+
scikit-bio==0.6.0
44
biopython==1.79
55
ipywidgets
66
jupyter_contrib_nbextensions
77
nbconvert==6.5.0
88
openpyxl==3.0.3
99
xlrd==1.2.0
1010
statsmodels==0.13.2
11-
onecodex[all,reports]==0.15.1
11+
onecodex[all,reports]==0.16.0
1212
traitlets==5.9.0
1313
taxonomy==0.10.0
1414
widgetsnbextension

test/notebooks/example.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"# filter warning because timestamp shows up in diff-pdf\n",
7373
"with warnings.catch_warnings():\n",
7474
" warnings.filterwarnings(\"ignore\", message=\".*SampleCollection contains multiple.*\")\n",
75+
" warnings.filterwarnings(\"ignore\", message=\".*is deprecated.*\")\n",
7576
" \n",
7677
" observed_taxa = samples.plot_metadata(vaxis=\"observed_taxa\", haxis=\"geo_loc_name\", return_chart=True)\n",
7778
" simpson = samples.plot_metadata(vaxis=\"simpson\", haxis=\"geo_loc_name\", return_chart=True)\n",

test/notebooks/example_expected.pdf

-31 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)