-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 916 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Test+Install Dask
## Upstream scipy image
ARG BASE=celsiustx/scipy:dc07698a66d6729b3264af795c282d874e3f5a17
FROM $BASE
WORKDIR /opt/src
# Clone
RUN git clone --recurse-submodules https://github.com/celsiustx/dask.git
WORKDIR dask
RUN git remote add -f upstream https://github.com/dask/dask.git
# Checkout
ARG REF=origin/ctx
RUN git checkout $REF
# Install
RUN apt-get install -y graphviz
RUN pip install -e .[complete]
# Test
RUN pip install pytest
## Run tests as a non-root user (dask/tests/test_config.py::test_collect_yaml_permission_errors fails when run as root!)
RUN useradd user -g root
RUN chmod g+w /opt/src/dask # some distributed tests write temporary data under the source tree
USER user
# Canary test; prone to failure if linalg (in numpy/scipy) isn't compiled/available as expected
RUN pytest -v dask/array/tests/test_linalg.py::test_inv
# Run all tests
RUN pytest -v
USER root
WORKDIR /