File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM python:3.8
2+
3+ LABEL maintainer=
"Vincent Prevosto <[email protected] >" 4+
5+ # Ubuntu package installs
6+ RUN apt update && \
7+ apt install -y --no-install-recommends \
8+ git \
9+ nano && \
10+ apt clean && \
11+ rm -rf /var/lib/apt/lists/*
12+
13+ # Install dependencies
14+ RUN pip install \
15+ numpy \
16+ scipy \
17+ matplotlib \
18+ PyWavelets \
19+ tables \
20+ pyqt5 \
21+ ipython
22+
23+ # Clone Combinato
24+ WORKDIR /src
25+ RUN git clone https://github.com/jniediek/combinato.git
26+
27+ # Add Combinato repository to paths
28+ ENV COMBINATO_PATH=/src/combinato
29+ ENV PATH=$PATH:$COMBINATO_PATH
30+ ENV PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:$COMBINATO_PATH
31+ RUN echo '\n \
32+ export PATH=$PATH:/src/combinato\n \
33+ export PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:/src/combinato\n \
34+ export COMBINATO_PATH=/src/combinato' >> /root/.bashrc
35+
36+ # Install Combinato
37+ WORKDIR /src/combinato
38+ RUN python3 setup_options.py
39+
40+
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-base /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+ docker run --rm -it spikeinterface/combinato-base /bin/sh
14+ 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-base:latest -t spikeinterface/combinato-base:0.1.0 .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker push --all-tags spikeinterface/combinato-base
You can’t perform that action at this time.
0 commit comments