view Dockerfile @ 92:9cde0dc0699e default tip

fix README.md
author aka
date Wed, 27 Jun 2018 00:10:30 +0900
parents 0dceb5dbea0d
children
line wrap: on
line source

FROM jupyter/minimal-notebook
#MAINTAINER aka 

USER root

WORKDIR /tmp

COPY ./ jupyter_CbC_kernel/

RUN pip install --no-cache-dir jupyter_CbC_kernel/
RUN cd jupyter_CbC_kernel && install_CbC_kernel --user

# install CbC-gcc

## install dependence package
RUN apt update && apt install -y mercurial \
         flex \
         libc6-dev-i386 &&\
         apt clean && apt -y autoremove

## clone CbC
RUN hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/CbC/CbC_gcc/

## install dependencepackage and fix file.
RUN cd ./CbC_gcc && contrib/download_prerequisites && \
         sed -i".back" -e 's/struct siginfo/siginfo_t/g' -e 's/struct ucontext/ucontext_t/g' ./gcc/config/i386/linux-unwind.h

## add LIBRARY_PATH
ENV LIBRARY_PATH "/usr/lib/x86_64-linux-gnu:/usr/lib32"

## make build dir
RUN mkdir build-gcc

WORKDIR build-gcc

## make && make install
RUN ../CbC_gcc/configure CFLAGS="-g3 -O0" \
             --prefix=/usr/ --disable-nls \
             --disable-bootstrap --enable-languages=c \
             --enable-checking=tree,rtl,assert,types 

RUN make && make install

WORKDIR /home/$NB_USER/

USER $NB_USER