From a99d1750da2805e8a4a210b2fb79e11ba27328c2 Mon Sep 17 00:00:00 2001
From: gmillot <gael.millot@pasteur.fr>
Date: Wed, 4 May 2022 17:45:22 +0200
Subject: [PATCH] release v8.7: python dockerfiles added

---
 README.md                               |  6 +++
 python/v3.9.10/extended/v3.1/Dockerfile | 49 +++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 python/v3.9.10/extended/v3.1/Dockerfile

diff --git a/README.md b/README.md
index 1bffb13..ac2ee41 100644
--- a/README.md
+++ b/README.md
@@ -71,6 +71,12 @@ Hub-CDB Institut Pasteur & DSI Institut Pasteur
 
 Use the gitlab tag of the docker image (e.g., gitlab_v5.0) to get the description of the modifications below
 
+### v8.7
+
+Dockerfiles added: <br />
+python\v3.9.10\extended\v3.1 at date 20220504: from gmillot/python_v3.9.10_extended_v2.0:gitlab_v8.4 with cyvcf2 and scipy package added
+
+
 ### v8.6
 
 Dockerfiles added: <br />
diff --git a/python/v3.9.10/extended/v3.1/Dockerfile b/python/v3.9.10/extended/v3.1/Dockerfile
new file mode 100644
index 0000000..2e69956
--- /dev/null
+++ b/python/v3.9.10/extended/v3.1/Dockerfile
@@ -0,0 +1,49 @@
+#########################################################################
+##                                                                     ##
+##     Dockerfile                                                      ##
+##     Python extended                                                 ##
+##                                                                     ##
+##     Gael A. Millot                                                  ##
+##     Bioinformatics and Biostatistics Hub                            ##
+##     Computational Biology Department                                ##
+##     Institut Pasteur Paris                                          ##
+##                                                                     ##
+#########################################################################
+
+
+# to see the log of the building:
+# sudo docker run -ti --entrypoint bash <IMAGE_NAME>
+# cat building.log
+
+# to export the log file of the image building from the container:
+# sudo docker images
+# sudo docker run -ti --entrypoint bash <IMAGE_NAME>
+# exit
+# sudo docker container ls -a # to get all the active containers
+# sudo docker cp <containerNAMES>:/building.log </host/path/target>
+
+
+FROM gmillot/python_v3.9.10_extended_v2.0:gitlab_v8.4
+
+LABEL Gael.Millot=gael.millot@pasteur.fr
+LABEL gitlab.dockerfiles="https://gitlab.pasteur.fr/gmillot/dockerfiles"
+
+ENV PY_LIB="\
+  cyvcf2 \
+  scipy \
+"
+
+    # install the packages
+RUN echo "\n\n\n\n================\n\npip install\n\n================\n\n\n\n" > /building.log \
+    && pip install $PY_LIB | tee -a /building.log \
+    && echo "\n\n\n\n================\n\nPIP PACKAGES INSTALLED\n\n================\n\n\n\n" >> /building.log \
+    && pip list >> /building.log \
+    # end install the packages
+    # inactivated packages because are in the base installation
+
+ENV LC_ALL en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US.UTF-8
+ENV LC_NUMERIC en_US.UTF-8
+
+ENTRYPOINT ["/usr/bin/python3"]
-- 
GitLab