Skip to content

Commit 329a82d

Browse files
zoncaconsideRatio
andauthored
Install bokeh and numpy in the Helm chart's scheduler and worker sample image (#561)
* Install numpy in dask gateway docker image Numpy is not a requirement either of `dask` or `dask-gateway`, however, `dask.array` won't work without `numpy` * Install bokeh and pandas in dask-gateway image bokeh for the dashboard, pandas for dask.dataframe * Explain why we install bokeh, numpy, pandas Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> * test image: include numpy but not pandas & link to supported test Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com> Co-authored-by: Erik Sundell <erik@sundellopensource.se>
1 parent e7b612a commit 329a82d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

dask-gateway/Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,22 @@ WORKDIR /home/dask/
3434

3535
# Install dask-gateway
3636
COPY --chown=dask:dask . /opt/dask-gateway
37-
RUN pip install --no-cache-dir /opt/dask-gateway
37+
# Install dask-gateway, which is the only thing needed for our CI test suite.
38+
#
39+
# We also install the bare minimum to provide end users with a primitive
40+
# end-to-end demonstrative test doing work in the worker pods and accessing the
41+
# scheduler dashboard without changing the image.
42+
#
43+
# - bokeh is required by the scheduler pod to present dashbaords.
44+
# - numpy is required for running a basic computation test:
45+
# https://gateway.dask.org/usage.html#run-computations-on-the-cluster
46+
#
47+
COPY --chown=dask:dask . /opt/dask-gateway
48+
RUN pip install --no-cache-dir
49+
/opt/dask-gateway \
50+
&& pip install --no-cache-dir \
51+
bokeh \
52+
numpy
3853

3954
# Only set ENTRYPOINT, CMD is configured at runtime by dask-gateway-server
4055
ENTRYPOINT ["tini", "-g", "--"]

0 commit comments

Comments
 (0)