From 4aeb6697201919c72306cdc44b22e22d0d46518f Mon Sep 17 00:00:00 2001
From: Tru Huynh <tru@pasteur.fr>
Date: Tue, 14 Feb 2023 19:37:32 +0100
Subject: [PATCH] build from a complete Singularity file instead of a docker
 image

---
 Singularity             | 15 ++++++++++++++-
 Singularity_from_docker |  3 +++
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 Singularity_from_docker

diff --git a/Singularity b/Singularity
index 8b893e2..b287731 100644
--- a/Singularity
+++ b/Singularity
@@ -1,3 +1,16 @@
 BootStrap: docker
-From: registry-gitlab.pasteur.fr/tru/docker-miniconda3-jupyter:main
+From: continuumio/miniconda3
 
+%post
+# update conda and the OS
+conda update conda && \
+conda upgrade --all -y && \
+apt-get update && \
+DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
+DEBIAN_FRONTEND=noninteractive apt-get -y autoremove && \
+DEBIAN_FRONTEND=noninteractive apt-get -y clean autoclean
+
+conda install ipykernel jupyterlab
+# download the yml file
+# curl  https://gitlab.pasteur.fr/tru/conda-container-howto/-/raw/main/pythonnet.yml > pythonnet.yml
+# conda env create --file pythonnet.yml
diff --git a/Singularity_from_docker b/Singularity_from_docker
new file mode 100644
index 0000000..8b893e2
--- /dev/null
+++ b/Singularity_from_docker
@@ -0,0 +1,3 @@
+BootStrap: docker
+From: registry-gitlab.pasteur.fr/tru/docker-miniconda3-jupyter:main
+
-- 
GitLab