-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
49 lines (37 loc) · 1.14 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
48
49
FROM jupyter/scipy-notebook
MAINTAINER Heinrich Hartmann <[email protected]>
USER root
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y\
emacs \
tmux \
curl \
less \
man \
autoconf \
strace
# Give $NB_USER passwordless sudo
RUN printf "$NB_USER\tALL=(ALL)\tNOPASSWD: ALL" > /etc/sudoers.d/$NB_USER
USER $NB_USER
RUN pip install --upgrade pip
RUN pip install \
jupyter_contrib_nbextensions \
jupyter_nbextensions_configurator
RUN jupyter contrib nbextension install --user &&\
jupyter nbextensions_configurator enable --user
# install latest circonusapi package from GitHUb
RUN (cd /tmp && \
git clone https://github.com/circonus-labs/python-circonusapi.git && \
cd python-circonusapi && \
python setup.py install)
# install latest libcircllhist
RUN git clone https://github.com/circonus-labs/libcircllhist/ /tmp/libcircllhist
RUN (cd /tmp/libcircllhist && \
autoconf && ./configure --libdir /usr/lib/x86_64-linux-gnu/ && \
make && sudo make install && (cd src && make install-python))
EXPOSE 9998
EXPOSE 9999
ADD cmd.sh ./
ADD service.sh ./
CMD ["./cmd.sh"]