Skip to content

Commit

Permalink
Update docker spec and remove pytorch deps
Browse files Browse the repository at this point in the history
  • Loading branch information
berkgercek committed Sep 16, 2024
1 parent fa92142 commit 9651085
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
10 changes: 8 additions & 2 deletions brainwidemap/encoding/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ COPY ./environment.yaml /data/environment.yaml
SHELL ["/bin/bash", "-c"]
# For some reason ibllib.io.video needs opencv which requires libgl1-mesa-dev ¯\_(ツ)_/¯
RUN apt update && apt install -y wget git libgl1-mesa-dev
RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
RUN /bin/bash -c "bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opt/conda && rm Mambaforge.sh"
RUN wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
RUN bash Miniforge3.sh -b -p /opt/conda && rm Miniforge3.sh
RUN wget -O iblreq.txt "https://raw.githubusercontent.com/int-brain-lab/ibllib/master/requirements.txt"
RUN head -n -1 iblreq.txt > requirements.txt
RUN rm iblreq.txt
RUN /bin/bash -c "source /opt/conda/etc/profile.d/conda.sh && \
mamba install --yes conda-build &&\
mamba env create -n iblenv --file=environment.yaml"
RUN /bin/bash -c "source /opt/conda/etc/profile.d/conda.sh && \
conda activate iblenv && pip install -r requirements.txt && pip install ibllib --no-deps"
RUN rm requirements.txt
# The below allows interactively running the container with the correct environment, but be warned
# that this will not work with commands passed to the container in a non-interactive shell.
# In the case of e.g. `docker run thiscontainer python myscript.py`, the environment will not
Expand Down
13 changes: 1 addition & 12 deletions brainwidemap/encoding/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,11 @@ dependencies:
- ipython
- matplotlib
- numba
- numpy
- pandas
- scikit-learn
- scipy >=1.4.1
- seaborn
- statsmodels
- tqdm
- pip
- pip:
- iblutil
- ibllib
- iblapps
- ibl-neuropixel
- ONE-api
- phylib
- phy
- pynrrd
- slidingRP
- neurencoding
- pyqt<6

0 comments on commit 9651085

Please sign in to comment.