8000 Fix docker image. · notablemind/jupyter-nodejs@3b23ff0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b23ff0

Browse files
committed
Fix docker image.
1 parent e21e4e7 commit 3b23ff0

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

Dockerfile

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
1-
FROM jupyter/notebook
1+
FROM jupyter/base-notebook
22

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
56

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/
721
RUN npm install
822
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
1027

11-
CMD sh -c 'jupyter notebook --NotebookApp.port=8888 --no-browser --ip=* --debug'
28+
USER root
29+
WORKDIR $HOME/jupyter-nodejs
30+
RUN ldconfig
1231

1332
EXPOSE 8888

Makefile

Lines changed: 0 additions & 4 deletions
This file was deleted.

Readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Get it while it's hot! or view the [example notebook](http://nbviewer.ipython.or
1313
git clone git@github.com:notablemind/jupyter-nodejs.git
1414
mkdir -p ~/.ipython/kernels/nodejs/
1515
npm install && node install.js
16-
make
16+
npm run build
17+
npm run build-ext
1718
ipython console --kernel nodejs
1819
```
1920

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7+
"build": "babel lib -d build",
8+
"build-ext": "babel ext -d build/ext",
79
"test": "echo \"Error: no test specified\" && exit 1"
810
},
911
"author": "Jared Forsyth",
@@ -31,7 +33,7 @@
3133
"contextify": "^0.1.13",
3234
"mkdirp": "^0.5.1",
3335
"superagent": "^1.2.0",
34-
"zmq": "^2.11.0"
36+
"zmq": "^2.15.3"
3537
},
3638
"devDependencies": {
3739
"mkdirp": "^0.5.0"

0 commit comments

Comments
 (0)
0