Skip to content

Commit 1a00670

Browse files
author
rodriguez-facundo
committed
Fix dockerfile
1 parent 5d87678 commit 1a00670

5 files changed

Lines changed: 24 additions & 9 deletions

File tree

.dockerignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
org.geppetto.frontend.jupyter
2+
pygeppetto
3+
.vscode
4+
.ipynb_checkpoints
5+
netpyne_ui/geppetto
6+
*.egg-info
7+
notebook.ipynb
8+
.git
9+
netpyne

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ pygeppetto/
88
netpyne/
99
org.geppetto.frontend.jupyter/
1010
*.ipynb
11-
init.py
11+
init.py
12+
.vscode

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ RUN unzip $netpyneuiBranch.zip
2323
WORKDIR /home/jovyan/netpyne_workspace
2424
RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui/tests tests
2525

26-
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui"
26+
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui --NotebookApp.disable_check_xsrf=True"

Dockerfile_dev

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ ARG netpyneuiBranch=development
55
ENV netpyneuiBranch=${netpyneuiBranch}
66
RUN echo "$netpyneuiBranch";
77

8-
# Clone NetPyNE-UI and install the development version
9-
RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip -q
10-
RUN unzip $netpyneuiBranch.zip
11-
WORKDIR /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/utilities
8+
ENV FOLDER=NetPyNE-UI
9+
WORKDIR /home/jovyan/work
10+
11+
COPY --chown=1000:1000 . NetPyNE-UI
12+
WORKDIR ${FOLDER}/utilities
13+
1214
RUN /bin/bash -c "source activate snakes && python --version"
1315
RUN /bin/bash -c "source activate snakes && exec python install.py branch $netpyneuiBranch"
16+
1417
WORKDIR /home/jovyan
18+
1519
RUN git clone https://github.com/Neurosim-lab/netpyne_workspace
1620
WORKDIR /home/jovyan/netpyne_workspace
17-
RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui/tests tests
18-
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui"
21+
22+
RUN ln -sfn /home/jovyan/work/NetPyNE-UI/netpyne_ui/tests tests
23+
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui --NotebookApp.disable_check_xsrf=True"

NetPyNE-UI

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui
2+
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui --NotebookApp.disable_check_xsrf=True

0 commit comments

Comments
 (0)