Skip to content
Snippets Groups Projects
Commit 203b0589 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

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
parent 61c4ecd8
No related branches found
No related tags found
No related merge requests found
......@@ -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"]
......
......@@ -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
----------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment