From d9135f115436c5121302e6ba3dcbfcb67f24078c Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 13 Dec 2022 08:52:33 +0100
Subject: [PATCH] [ogs] Added xvfb for PyVista notebooks.

---
 ogscm/recipes/ogs.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ogscm/recipes/ogs.py b/ogscm/recipes/ogs.py
index 8dbde66..b04e598 100644
--- a/ogscm/recipes/ogs.py
+++ b/ogscm/recipes/ogs.py
@@ -645,5 +645,6 @@ if local_args.ogs != "off" and local_args.ogs != "clean":
 
 # Required for vtk from Python (for notebooks, VTUInterface)
 # https://github.com/Kaggle/docker-python/pull/358
-Stage0 += packages(apt=["libgl1"], yum=["mesa-libGL"])
-Stage1 += packages(apt=["libgl1"], yum=["mesa-libGL"])
+# xvfb for PyVista
+Stage0 += packages(apt=["libgl1", "xvfb"], yum=["mesa-libGL", "xorg-x11-server-Xvfb"])
+Stage1 += packages(apt=["libgl1", "xvfb"], yum=["mesa-libGL", "xorg-x11-server-Xvfb"])
-- 
GitLab