Skip to content

Commit

Permalink
Testing dependencies and editable repo source
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-czech committed May 6, 2020
1 parent 30e41d1 commit 44869ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/prototype/Dockerfile.proto.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ COPY environment.yml /tmp/
RUN conda env update -n rapids --file /tmp/environment.yml
RUN PATH=/conda/envs/rapids/bin/:$PATH bash -c 'jupyter labextension install dask-labextension'

# Install test/ci dependencies
COPY environment.ci.yml /tmp/
RUN conda env update -n rapids --file /tmp/environment.ci.yml

# Install pysnptools separately (does not work as pip install with conda env update)
RUN apt-get update && apt-get install -y g++
RUN /conda/envs/rapids/bin/pip install --no-cache-dir pysnptools==0.4.11
Expand Down Expand Up @@ -47,4 +51,7 @@ ENV JUPYTERLAB_PORT 8888
ENV CODESERVER_PORT 8887
ENV SHELL /bin/bash

# As a temporary workaround until this project has its own repo, put the conda on the PYTHONPATH for the environment
RUN echo "$WORK_DIR/repos/gwas-analysis/notebooks/platform/xarray" >> /conda/envs/rapids/lib/python3.7/site-packages/local.pth

CMD /bin/bash init.sh && /bin/bash
7 changes: 7 additions & 0 deletions docker/prototype/environment.ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
channels:
- defaults
dependencies:
- pytest
- hypothesis
- black
- flake8

0 comments on commit 44869ed

Please sign in to comment.