File tree Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Expand file tree Collapse file tree 4 files changed +30
-12
lines changed Original file line number Diff line number Diff line change 1
- FROM jupyter/notebook
1
+ FROM jupyter/base- notebook
2
2
3
- COPY . /root/jupyter-nodejs
4
- WORKDIR /root/jupyter-nodejs
3
+ USER root
4
+ RUN wget -O - https://deb.nodesource.com/setup_5.x | bash
5
+ RUN apt-get install -y nodejs g++ make software-properties-common libzmq3-dev
5
6
6
- RUN mkdir -p /root/.ipython/kernels/nodejs/
7
+ RUN mkdir -p $HOME/jupyter-nodejs
8
+ COPY . $HOME/jupyter-nodejs
9
+ RUN chown -R $NB_USER $HOME/jupyter-nodejs
10
+ WORKDIR $HOME/jupyter-nodejs
11
+ RUN touch /etc/ld.so.conf
12
+ RUN echo "/opt/conda/lib" >> /etc/ld.so.conf
13
+
14
+ # RUN add-apt-repository ppa:chris-lea/zeromq -y
15
+ # RUN add-apt-repository ppa:chris-lea/libpgm -y
16
+ # RUN apt-get update
17
+ RUN conda install -y jupyter_console
18
+
19
+ USER $NB_USER
20
+ RUN mkdir -p $HOME/.ipython/kernels/nodejs/
7
21
RUN npm install
8
22
RUN node install.js
9
- RUN make
23
+ RUN npm run build
24
+ RUN npm run build-ext
25
+ WORKDIR $HOME/jupyter-nodejs/node_modules/zmq/
26
+ RUN npm run install
10
27
11
- CMD sh -c 'jupyter notebook --NotebookApp.port=8888 --no-browser --ip=* --debug'
28
+ USER root
29
+ WORKDIR $HOME/jupyter-nodejs
30
+ RUN ldconfig
12
31
13
32
EXPOSE 8888
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ Get it while it's hot! or view the [example notebook](http://nbviewer.ipython.or
13
13
git clone git@github.com:notablemind/jupyter-nodejs.git
14
14
mkdir -p ~ /.ipython/kernels/nodejs/
15
15
npm install && node install.js
16
- make
16
+ npm run build
17
+ npm run build-ext
17
18
ipython console --kernel nodejs
18
19
```
19
20
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
+ "build" : " babel lib -d build" ,
8
+ "build-ext" : " babel ext -d build/ext" ,
7
9
"test" : " echo \" Error: no test specified\" && exit 1"
8
10
},
9
11
"author" : " Jared Forsyth" ,
31
33
"contextify" : " ^0.1.13" ,
32
34
"mkdirp" : " ^0.5.1" ,
33
35
"superagent" : " ^1.2.0" ,
34
- "zmq" : " ^2.11.0 "
36
+ "zmq" : " ^2.15.3 "
35
37
},
36
38
"devDependencies" : {
37
39
"mkdirp" : " ^0.5.0"
You can’t perform that action at this time.
0 commit comments