Skip to content
Snippets Groups Projects
Commit 855e1253 authored by EXT Soraya Arias's avatar EXT Soraya Arias
Browse files

First version to construct docker image for fidle (cpu version only for now)...

First version to construct docker image for fidle (cpu version only for now) and data not included (too large)
parent 0814d097
No related branches found
No related tags found
No related merge requests found
# Configuration file for jupyter-notebook.
#------------------------------------------------------------------------------
# Application(SingletonConfigurable) configuration
#------------------------------------------------------------------------------
## Set the log level by value or name.
c.Application.log_level = 'INFO'
#------------------------------------------------------------------------------
# NotebookApp(JupyterApp) configuration
#------------------------------------------------------------------------------
## The IP address the notebook server will listen on.
c.NotebookApp.ip = '*'
# Password to access the server
c.NotebookApp.password = ''
c.NotebookApp.allow_password_change = False
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = '/notebooks'
## Whether to open in a browser after starting. The specific browser used is
# platform dependent and determined by the python standard library `webbrowser`
# module, unless it is overridden using the --browser (NotebookApp.browser)
# configuration option.
c.NotebookApp.open_browser = False
## The port the notebook server will listen on.
c.NotebookApp.port = 8888
## Allow running as root
c.NotebookApp.allow_root = True
## Disable the "Quit" button on the Web UI (shuts down the server)
c.NotebookApp.quit_button = False
{
"load_extensions": {
"execute_time/ExecuteTime": true,
"tree-filter/index": true
}
}
tensorflow_cpu
Scikit-image
Scikit-learn
Matplotlib
Pandas
Pandoc
pyyaml
Jupyterlab
FROM python:3.7-slim
LABEL maintainer=soraya.arias@inria.fr
# Ensure a sane environment
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 DEBIAN_FRONTEND=noninteractive
RUN apt update --fix-missing && \
apt install -y apt-utils wget git \
python3-venv python3-pip && \
apt -y dist-upgrade && \
apt clean && \
rm -fr /var/lib/apt/lists/*
COPY requirements.txt /root/requirements.txt
# Add & Update Python tools and install requirements packages
RUN pip install --upgrade pip && \
pip install -I --upgrade setuptools && \
pip install -r /root/requirements.txt
# Add Jupyter configuration (no browser, listen all interfaces, ...)
COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
COPY notebook.json /root/.jupyter/nbconfig/notebook.json
# Notebooks as a volume
RUN mkdir /notebooks/; cd /notebooks && \
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/talks/fidle.git
VOLUME /notebooks
WORKDIR /notebooks
#COPY data/fidle-datasets /data
# Set a folder in the volume as Python Path
ENV PYTHONPATH=/notebooks/python_path:$PYTHONPATH
# Force bash as the default shell (useful in the notebooks)
ENV SHELL=/bin/bash
# Set Fidle dataset directory variable
ENV FIDLE_DATASETS_DIR=/data
# Run a notebook by default
CMD ["jupyter", "notebook", "--port=8888", "--ip=0.0.0.0"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment