-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (40 loc) · 1.84 KB
/
Copy pathDockerfile
File metadata and controls
70 lines (40 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM docker:dind
ENV NODE_OPTIONS="--openssl-legacy-provider"
MAINTAINER p.gleeson@gmail.com
USER root
RUN apk update
RUN apk add git htop wget gnupg sudo
RUN mkdir -p /etc/apk/sources.list.d/
RUN mkdir $HOME/testing/
RUN mkdir $HOME/tmp/
# Install Neurodebian repos
RUN wget -O- http://neuro.debian.net/lists/focal.de-fzj.libre | tee /etc/apk/sources.list.d/neurodebian.sources.list
RUN gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0xA5D32F012649A5A9
RUN apk update
RUN apk add g++ postgresql-dev cargo gcc python3-dev libffi-dev musl-dev zlib-dev jpeg-dev build-base sed
RUN apk add git-annex
# Install additional Python dependencies
RUN apk add python3 py3-pip
RUN pip install --upgrade pip setuptools wheel
RUN apk update && apk add --no-cache hdf5-dev
RUN pip install h5py
COPY ./requirements.txt $HOME/requirements.txt
# RUN git clone --branch development https://github.com/MetaCell/nwb-explorer
# RUN pip install --editable nwb-explorer
# RUN python nwb-explorer/utilities/install.py --npm-skip
#RUN pip install --extra-index-url https://alpine-wheels.github.io/index numpy
RUN pip install --requirement requirements.txt
RUN pip install datalad
RUN pip list
RUN git config --global user.email "github_ci@test.test"
RUN git config --global user.name "github ci"
ENV DOCKER_HOST: tcp://thedockerhost:2375/
# Some aliases
RUN echo '\n\nalias cd..="cd .."\nalias h=history\nalias ll="ls -alt"\nalias python=python3\nalias ipython=ipython3\nalias pip=pip3' >> ~/.bashrc
RUN pip install --upgrade numpy
RUN git clone https://github.com/OpenSourceBrain/OSBv2.git -b develop
RUN sed -i '27d;27i\RUN mkdir /home/jovyan/nwb-explorer/tmp' OSBv2/applications/nwb-explorer/Dockerfile
WORKDIR /tmp
RUN datalad install -s https://github.com/dandi/dandisets.git --recursive --recursion-limit 1 --jobs 4
WORKDIR /
RUN echo "Built the Docker image!"