-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
49 lines (33 loc) · 1.27 KB
/
Dockerfile
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
FROM andrewosh/binder-base
MAINTAINER Michael Bright <[email protected]>
USER root
RUN apt-get update
RUN pip install --upgrade pip
# ---- As advised here:
# https://github.com/binder-project/binder/issues/50
RUN pip install jupyter_client
# ---- Install bash_kernel:
# Make sure not to create a cache dir else NB_UID switching
# will hit issues.
RUN pip install --no-cache-dir bash_kernel
RUN python -m bash_kernel.install
# ---- Install RISE extension:
RUN mkdir -p ~/src/git && \
cd ~/src/git && \
git clone https://github.com/damianavila/RISE && \
cd RISE && \
python setup.py install
## # ---- Install nbextensions (so can install table-of-contents extension):
## RUN cd ~/src/git && \
## git clone https://github.com/ipython-contrib/Ipython-notebook-extensions.git && \
## cd Ipython-notebook-extensions && \
## python setup.py install
# ---- Show installed kernels and python/pip versions:
RUN jupyter kernelspec list
# Install man
RUN apt-get install -y man
# Install a set of networking tools, including tcpdump/tshark for writing tcpdump/tshark tutorials:
RUN apt-get install -y dhcpdump ipgrab libnet-frame-dump-perl nstreams tcpdump tcpreplay tcpslice tcptrace tshark
# Install Perl6 rakudo
RUN apt-get install -y rakudo
USER main