From 203b0589787d7309a99e7b6b0a2cc96c1c78a83f Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Wed, 30 Jun 2021 20:31:03 +0200 Subject: [PATCH] remove GUI support in Dockerfile QT5 may cause hard to interpret import errors on older Linux kernels: https://bbs.archlinux.org/viewtopic.php?id=232682 --- docker/Dockerfile | 7 ++----- docker/README.rst | 11 ----------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0b20db695..ed7b8286f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,10 +25,7 @@ RUN apt-get update -y && apt-get install -y cmake \ libeigen3-dev \ libboost-all-dev \ libpng-dev \ - qt5-qmake \ - qtbase5-dev \ python3-all \ - python3-pyqt5 \ python3-numpy \ python3-scipy \ python3-pandas \ @@ -83,7 +80,8 @@ RUN cd ${SRC_FOLDER} && \ -DOPEN_MM_INCLUDE_DIR=$OPENMM_INCLUDE_PATH \ -DOPEN_MM_PLUGIN_DIR=$OPENMM_LIB_PATH/plugins \ -DENABLE_GFX=ON \ - -DENABLE_GUI=ON \ + -DENABLE_GUI=OFF \ + -DENABLE_INFO=OFF \ -DCMAKE_C_FLAGS="-isystem /usr/include/boost/ -isystem ${OPENMM_INCLUDE_PATH}/include" \ -DCMAKE_CXX_FLAGS="-isystem /usr/include/boost/ -isystem ${OPENMM_INCLUDE_PATH}/include" && \ make -j ${CPUS_FOR_MAKE} && \ @@ -100,7 +98,6 @@ WORKDIR /home ENV OST_ROOT="/usr/local" ENV PYTHONPATH="/usr/local/lib64/python3.8/site-packages" ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib64:/usr/local/openmm/lib/" -ENV QT_X11_NO_MITSHM=1 ENV OPENSTRUCTURE_VERSION=$OPENSTRUCTURE_VERSION ENTRYPOINT ["ost"] diff --git a/docker/README.rst b/docker/README.rst index 974c4807b..10656dce5 100644 --- a/docker/README.rst +++ b/docker/README.rst @@ -164,17 +164,6 @@ To see the help for compare-structures action run: cd <PATH TO OST>/docker ./run_docker_ost <IMAGE NAME> compare-structures -Run GUI -------- - -The container is built with GUI support, but this is still to be considered an -experimental feature as it is known to depend on some properties of the host -where Docker is run. What works on some Linux machines is the following: - -.. code-block:: bash - - xhost +local:docker - docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --entrypoint dng <IMAGE NAME> Running other commands ---------------------- -- GitLab