FROM ubuntu:18.04

#########################################
### Python, etc
RUN apt-get update && apt-get -y install git wget build-essential
RUN apt-get install -y python3 python3-pip
RUN ln -s python3 /usr/bin/python
RUN ln -s pip3 /usr/bin/pip
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3-tk

RUN echo "1 July 2019"

#########################################
### Spyking Circus
RUN apt-get update && apt-get install -y libopenmpi-dev
RUN pip install spyking-circus==0.8.2
RUN pip install pyqt5
RUN apt-get update && apt-get install -y libglib2.0-0
RUN apt-get update && apt-get install -y libgl1-mesa-glx
RUN apt-get update && apt-get install -y qt5-default
RUN apt-get update && apt-get install -y packagekit-gtk3-module
RUN apt-get update && apt-get install -y libcanberra-gtk-module libcanberra-gtk3-module
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y xserver-xorg xorg jwm

### spikeinterface
RUN pip install spikeextractors==0.4.2
RUN pip install spiketoolkit==0.3.4
RUN echo "1 July 2019" && pip install git+https://github.com/spikeinterface/spikesorters
#RUN pip install spikesorters==0.1.1

### Other dependencies
RUN pip install requests

ENV LANG C.UTF-8  
ENV LC_ALL C.UTF-8 
