comparison Dockerfile @ 90:0dceb5dbea0d

change Dockerfile
author aka
date Tue, 26 Jun 2018 14:47:17 +0900
parents 70e6b10d9220
children
comparison
equal deleted inserted replaced
89:6f8c3f8b5c07 90:0dceb5dbea0d
1 FROM jupyter/minimal-notebook 1 FROM jupyter/minimal-notebook
2 MAINTAINER Brendan Rius <ping@brendan-rius.com> 2 #MAINTAINER aka
3 3
4 USER root 4 USER root
5 5
6 WORKDIR /tmp 6 WORKDIR /tmp
7 7
8 COPY ./ jupyter_CbC_kernel/ 8 COPY ./ jupyter_CbC_kernel/
9 9
10 RUN pip install --no-cache-dir jupyter_CbC_kernel/ 10 RUN pip install --no-cache-dir jupyter_CbC_kernel/
11 RUN cd jupyter_CbC_kernel && install_c_kernel --user 11 RUN cd jupyter_CbC_kernel && install_CbC_kernel --user
12
13 # install CbC-gcc
14
15 ## install dependence package
16 RUN apt update && apt install -y mercurial \
17 flex \
18 libc6-dev-i386 &&\
19 apt clean && apt -y autoremove
20
21 ## clone CbC
22 RUN hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/CbC/CbC_gcc/
23
24 ## install dependencepackage and fix file.
25 RUN cd ./CbC_gcc && contrib/download_prerequisites && \
26 sed -i".back" -e 's/struct siginfo/siginfo_t/g' -e 's/struct ucontext/ucontext_t/g' ./gcc/config/i386/linux-unwind.h
27
28 ## add LIBRARY_PATH
29 ENV LIBRARY_PATH "/usr/lib/x86_64-linux-gnu:/usr/lib32"
30
31 ## make build dir
32 RUN mkdir build-gcc
33
34 WORKDIR build-gcc
35
36 ## make && make install
37 RUN ../CbC_gcc/configure CFLAGS="-g3 -O0" \
38 --prefix=/usr/ --disable-nls \
39 --disable-bootstrap --enable-languages=c \
40 --enable-checking=tree,rtl,assert,types
41
42 RUN make && make install
12 43
13 WORKDIR /home/$NB_USER/ 44 WORKDIR /home/$NB_USER/
14 45
15 USER $NB_USER 46 USER $NB_USER