Skip to content

Commit 941e584

Browse files
committed
Update Jupyter notebook base image to jupyter/scipy-notebook:2024-12-09 and reorganize package installations in Dockerfile
1 parent 57e98e0 commit 941e584

File tree

1 file changed

+40
-63
lines changed

1 file changed

+40
-63
lines changed

notebook/Dockerfile

Lines changed: 40 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) SIPist Development Team
22
# Distributed under the terms of the Modified BSD License.
3-
FROM quay.io/jupyter/scipy-notebook:2024-11-11
3+
FROM quay.io/jupyter/scipy-notebook:2024-12-09
44

55
LABEL maintainer="Flavio Martins <[email protected]>"
66

@@ -29,32 +29,34 @@ RUN apt-get update --yes && \
2929

3030
USER ${NB_UID}
3131

32-
# Install PostgreSQL Python drivers
33-
RUN mamba install --yes \
34-
'psycopg' \
35-
'psycopg-c' \
36-
'psycopg-pool' && \
37-
mamba clean --all -f -y && \
38-
fix-permissions "${CONDA_DIR}" && \
39-
fix-permissions "/home/${NB_USER}"
40-
41-
# Install PostgreSQL extras
42-
RUN mamba install --yes \
43-
'pgcli' && \
44-
mamba clean --all -f -y && \
45-
fix-permissions "${CONDA_DIR}" && \
46-
fix-permissions "/home/${NB_USER}"
47-
48-
# Install sqlite
32+
# Install utils
4933
RUN mamba install --yes \
50-
'sqlite' && \
34+
'bat' \
35+
'fd-find' \
36+
'file' \
37+
'git-delta' \
38+
'git-lfs' \
39+
'htop' \
40+
'jc' \
41+
'jq' \
42+
'ncdu' \
43+
'ripgrep' \
44+
'rclone' \
45+
'rsync' && \
5146
mamba clean --all -f -y && \
5247
fix-permissions "${CONDA_DIR}" && \
5348
fix-permissions "/home/${NB_USER}"
5449

55-
# Install sqlite-utils
50+
# Install special extras
5651
RUN mamba install --yes \
57-
'sqlite-utils' && \
52+
'cchardet' \
53+
'dateparser' \
54+
'ftfy' \
55+
'html5lib' \
56+
'langcodes' \
57+
'lxml' \
58+
'tld' \
59+
'yarl' && \
5860
mamba clean --all -f -y && \
5961
fix-permissions "${CONDA_DIR}" && \
6062
fix-permissions "/home/${NB_USER}"
@@ -68,80 +70,56 @@ RUN echo 'redis-server=7.2.*' >> "${CONDA_DIR}/conda-meta/pinned" && \
6870
fix-permissions "${CONDA_DIR}" && \
6971
fix-permissions "/home/${NB_USER}"
7072

71-
# Install DuckDB
73+
# Install DuckDB and SQLalchemy driver
7274
RUN mamba install --yes \
7375
'duckdb-cli' \
76+
'duckdb-engine' \
7477
'python-duckdb' && \
7578
mamba clean --all -f -y && \
7679
fix-permissions "${CONDA_DIR}" && \
7780
fix-permissions "/home/${NB_USER}"
7881

79-
# Install DuckDB SQLAlchemy driver
80-
RUN mamba install --yes \
81-
'duckdb-engine' && \
82-
mamba clean --all -f -y && \
83-
fix-permissions "${CONDA_DIR}" && \
84-
fix-permissions "/home/${NB_USER}"
85-
86-
# Install JupySQL
82+
# Install sqlite
8783
RUN mamba install --yes \
88-
'jupysql' && \
84+
'sqlite' && \
8985
mamba clean --all -f -y && \
9086
fix-permissions "${CONDA_DIR}" && \
9187
fix-permissions "/home/${NB_USER}"
9288

93-
# Install measurement extras
89+
# Install PostgreSQL Python drivers
9490
RUN mamba install --yes \
95-
'jupyterlab_execute_time' && \
91+
'psycopg' \
92+
'psycopg-c' \
93+
'psycopg-pool' && \
9694
mamba clean --all -f -y && \
9795
fix-permissions "${CONDA_DIR}" && \
9896
fix-permissions "/home/${NB_USER}"
9997

100-
# Install utility extras
98+
# Install PostgreSQL extras
10199
RUN mamba install --yes \
102-
'jupyter-archive' \
103-
'jupyterlab-spellchecker' && \
100+
'pgcli' && \
104101
mamba clean --all -f -y && \
105102
fix-permissions "${CONDA_DIR}" && \
106103
fix-permissions "/home/${NB_USER}"
107104

108-
# Install Python language server
105+
# Install JupySQL
109106
RUN mamba install --yes \
110-
'jupyterlab-lsp' \
111-
'python-lsp-server' \
112-
'python-lsp-ruff' && \
107+
'jupysql' && \
113108
mamba clean --all -f -y && \
114109
fix-permissions "${CONDA_DIR}" && \
115110
fix-permissions "/home/${NB_USER}"
116111

117-
# Install utils
112+
# Install utility extras
118113
RUN mamba install --yes \
119-
'bat' \
120-
'fd-find' \
121-
'file' \
122-
'git-delta' \
123-
'git-lfs' \
124-
'htop' \
125-
'jc' \
126-
'jq' \
127-
'ncdu' \
128-
'ripgrep' \
129-
'rclone' \
130-
'rsync' && \
114+
'jupyterlab_execute_time' \
115+
'jupyterlab-spellchecker' && \
131116
mamba clean --all -f -y && \
132117
fix-permissions "${CONDA_DIR}" && \
133118
fix-permissions "/home/${NB_USER}"
134119

135-
# Install special extras
120+
# Install collaboration extras
136121
RUN mamba install --yes \
137-
'cchardet' \
138-
'dateparser' \
139-
'ftfy' \
140-
'html5lib' \
141-
'langcodes' \
142-
'lxml' \
143-
'tld' \
144-
'yarl' && \
122+
'jupyter-archive' && \
145123
mamba clean --all -f -y && \
146124
fix-permissions "${CONDA_DIR}" && \
147125
fix-permissions "/home/${NB_USER}"
@@ -154,7 +132,6 @@ RUN mamba install --yes \
154132
fix-permissions "${CONDA_DIR}" && \
155133
fix-permissions "/home/${NB_USER}"
156134

157-
158135
USER ${NB_UID}
159136

160137
COPY --chown=${NB_UID}:${NB_GID} ./.psqlrc ${HOME}/.psqlrc

0 commit comments

Comments
 (0)