Skip to content

Commit 7ce2ade

Browse files
authored
Merge pull request #91 from MetaCell/release
Fixes for prod environments
2 parents 7ae4aaf + 9efd344 commit 7ce2ade

3 files changed

Lines changed: 26 additions & 5 deletions

File tree

Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM metacell/jupyter-neuron:latest
2-
# Switch to non sudo, create a Python 3 virtual environment
32
USER $NB_USER
43

4+
ARG netpyneuiBranch=development
5+
ENV netpyneuiBranch=${netpyneuiBranch}
6+
RUN echo "$netpyneuiBranch";
7+
58
ARG INCUBATOR_VER=unknown
69
RUN /bin/bash -c "INCUBATOR_VER=${INCUBATOR_VER} source activate snakes && pip install netpyne_ui"
710
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py jupyter_geppetto"
@@ -11,4 +14,13 @@ RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py widg
1114
WORKDIR /home/jovyan
1215
RUN git clone --branch CNS18 https://github.com/Neurosim-lab/netpyne_workspace
1316
WORKDIR /home/jovyan/netpyne_workspace
14-
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token=''"
17+
18+
# Uncomment to run travis using this Dockerfile
19+
# Clone the source code and creates a symlink to the test folder
20+
WORKDIR /home/jovyan/work
21+
RUN wget https://github.com/MetaCell/NetPyNE-UI/archive/$netpyneuiBranch.zip -q
22+
RUN unzip $netpyneuiBranch.zip
23+
WORKDIR /home/jovyan/netpyne_workspace
24+
RUN ln -sfn /home/jovyan/work/NetPyNE-UI-$netpyneuiBranch/netpyne_ui/tests tests
25+
26+
CMD /bin/bash -c "source activate snakes && exec jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui"

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Include everything inside this folder
2+
graft netpyne_ui/geppetto/src/main/webapp/build
3+
4+
# Include any of these resources at any level
5+
recursive-include netpyne_ui/geppetto *.png *.css *.woff *.woff2
6+
7+
# Include any of these resources at any level
8+
recursive-include netpyne_ui/tests *.hoc
9+
10+
# Include also root files (basically the extension)
11+
include netpyne_ui/*

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
long_description=open('README.rst').read(),
2525
data_files=data_files,
2626
packages=setuptools.find_packages(),
27-
package_data={
28-
'': ['*.hoc']
29-
},
27+
include_package_data=True,
3028
scripts=['NetPyNE-UI'],
3129
classifiers=[
3230
'Development Status :: 3 - Alpha',

0 commit comments

Comments
 (0)