install
- Rust latest
- Python 3.7.7
- Jupyter Lab
- evcxr_juypyter (Rust Kernel)
docker build -t example .
docker run -p 8888:8888 -v $PWD:/app -it example
kick jupyterlab
$ jupyter lab --allow-root --ip 0.0.0.0
access to http://127.0.0.1:8888/lab
FROM rust:latest | |
WORKDIR /app | |
RUN apt update &&\ | |
rm -rf ~/.cache &&\ | |
apt clean all &&\ | |
apt install -y cmake &&\ | |
apt install -y clang | |
RUN apt install -y build-essential libffi-dev libssl-dev zlib1g-dev liblzma-dev libbz2-dev libreadline-dev libsqlite3-dev libopencv-dev tk-dev git | |
# install python | |
ENV HOME="/root" | |
ENV PYENV_ROOT="$HOME/.pyenv" | |
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}" | |
RUN git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv | |
RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc | |
RUN eval "$(pyenv init -)" | |
RUN pyenv install 3.7.7 | |
RUN pyenv global 3.7.7 | |
# jupyterlab, evcxr | |
RUN pip install jupyterlab | |
RUN cargo install evcxr_jupyter --no-default-features | |
RUN evcxr_jupyter --install | |
ENTRYPOINT [ "/bin/bash" ] |
の前にlibzmqのインストールが必要かもしれない。