Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fidle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Talks
Fidle
Commits
4b3fd1f2
Commit
4b3fd1f2
authored
2 years ago
by
EXT Soraya Arias
Browse files
Options
Downloads
Patches
Plain Diff
Modif to integrate fidle pip module
parent
e9c99429
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/fidle_python_pip.dockerfile
+18
-16
18 additions, 16 deletions
docker/fidle_python_pip.dockerfile
docker/requirements-cpu.txt
+23
-0
23 additions, 0 deletions
docker/requirements-cpu.txt
with
41 additions
and
16 deletions
docker/fidle_python_pip.dockerfile
+
18
−
16
View file @
4b3fd1f2
#
#
ARG
PYTHON_VERSION=3.
7
ARG
PYTHON_VERSION=3.
8
ARG
docker_image_base=python:${PYTHON_VERSION}-slim
FROM
${docker_image_base}
MAINTAINER
soraya.arias@inria.fr
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
\
apt
install
-y
apt-utils
\
python3-venv python3-pip
&&
\
apt
-y
dist-upgrade
&&
\
apt clean
&&
\
rm
-fr
/var/lib/apt/lists/
*
# Get Python requirement packages list
COPY
requirements.txt /root/requirements.txt
COPY
requirements
-cpu
.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
RUN
python
-m
pip
install
--upgrade
pip
&&
\
pip
install
--no-cache-dir
-I
--upgrade
setuptools
&&
\
pip
install
--no-cache-dir
-r
/root/requirements.txt
# Get Fidle datasets
# - datasets
RUN
mkdir
/data
&&
\
wget
-c
https://fidle.cnrs.fr/fidle-datasets.tar
&&
tar
-xf
fidle-datasets.tar
-C
/data/
&&
\
rm
fidle-datasets.tar
# Notebooks as a volume
RUN
mkdir
/notebooks/
;
cd
/notebooks
&&
\
git clone https://gricad-gitlab.univ-grenoble-alpes.fr/talks/fidle.git
#wget -c https://fidle.cnrs.fr/fidle-datasets.tar && tar -xf fidle-datasets.tar -C /data/ &&
\
#rm fidle-datasets.tar
fid install_datasets --quiet --install_dir /data
# - notebooks
RUN
mkdir
/notebooks/
&&
\
fid install_notebooks
--quiet
--install_dir
/notebooks
#git clone https://gricad-gitlab.univ-grenoble-alpes.fr/talks/fidle.git
# Add Jupyter configuration (no browser, listen all interfaces, ...)
#COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
COPY
jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
COPY
notebook.json /root/.jupyter/nbconfig/notebook.json
COPY
fidle_env_test.py /root/fidle_env_test.py
# Jupyter notebook uses 8888
EXPOSE
8888
...
...
@@ -52,7 +53,8 @@ ENV PYTHONPATH=/notebooks/fidle/:$PYTHONPATH
ENV
SHELL=/bin/bash
# Set Fidle dataset directory variable
ENV
FIDLE_DATASETS_DIR=/data/
fidle-
datasets
ENV
FIDLE_DATASETS_DIR=/data/datasets
-fidle
# Run a notebook by default
CMD
["jupyter", "notebook", "--port=8888", "--ip=*", "--allow-root", "--notebook-dir=/notebooks/fidle", "--no-browser"]
#CMD ["jupyter", "notebook", "--port=8888", "--ip=*", "--allow-root", "--notebook-dir=/notebooks/fidle-master", "--no-browser"]
CMD
["jupyter", "lab"]
This diff is collapsed.
Click to expand it.
docker/requirements-cpu.txt
0 → 100644
+
23
−
0
View file @
4b3fd1f2
# ----------------------------------------------------
# ______ _ _ _ __ __
# | ____(_) | | | \ \ / /
# | |__ _ __| | | ___ \ \ / /__ _ ____ __
# | __| | |/ _` | |/ _ \ \ \/ / _ \ '_ \ \ / /
# | | | | (_| | | __/ \ / __/ | | \ V /
# |_| |_|\__,_|_|\___| \/ \___|_| |_|\_/
# Fidle pip virtual env
# ----------------------------------------------------
#
# To install your Fidle env, see https://fidle.cnrs.fr/installation
tensorflow_cpu>=2.7,<=2.9
scikit-image
scikit-learn
matplotlib
plotly
barviz
fidle
jupyterlab
-f https://download.pytorch.org/whl/cpu
torch
torchvision
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment