File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM python:3.8
2+
3+ LABEL maintainer="Vincent Prevosto <prevosto@mit.edu>"
4+
5+ # Ubuntu package installs
6+ RUN apt update && \
7+ apt install -y --no-install-recommends \
8+ git && \
9+ apt clean && \
10+ rm -rf /var/lib/apt/lists/*
11+
12+ # Install dependencies
13+ RUN pip install \
14+ numpy \
15+ scipy \
16+ matplotlib \
17+ PyWavelets \
18+ tables \
19+ pyqt5 \
20+ ipython
21+
22+ # Clone Combinato
23+ WORKDIR /src
24+ RUN git clone https://github.com/jniediek/combinato.git
25+
26+ # Add Combinato repository to paths
27+ ENV COMBINATO_DIR /src/combinato
28+ ENV PATH=$PATH:$COMBINATO_DIR
29+ ENV PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:$COMBINATO_DIR
30+ RUN echo $' \n \
31+ PATH=$PATH:/src/combinato \n \
32+ PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:$COMBINATO_DIR \n \
33+ export PATH PYTHONPATH ' >> /root/.bashrc
34+
35+ # Install Combinato
36+ WORKDIR /src/combinato
37+ RUN python3 setup_options.py
38+
39+
Original file line number Diff line number Diff line change 1+ ### Build this image
2+ Build default image:
3+ docker build -t combinato: latest .
4+
5+ ### Run container in bash
6+ docker run --rm -it -v <host-data-folder >:<docker-data-folder > spikeinterface/combinato /bin/sh
7+ flags:
8+ --rm: removes container once it's stopped
9+ -it: for interactive session
10+ -v: mounted volumes (directories)
11+
12+ ### Test
13+ python3 tools/test_installation.py
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker build -t spikeinterface/combinato:latest -t spikeinterface/combinato:0.1.0 .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker push --all-tags spikeinterface/combinato
You can’t perform that action at this time.
0 commit comments