Docker usage
Posted: Sat Jan 09, 2021 2:01 pm
In Linmux (mainly CentOS) distributions is not possible to run the application since libpng is missing.
Is possible to run the application through a Docker container.
Here the Dockerfile content:
Buils the image with this command:
Place the OWm files in a folder so you can mount it in the container.
The run script is:
Is possible to run the application through a Docker container.
Here the Dockerfile content:
Code: Select all
FROM ubuntu:20.10
RUN apt-get -y update
RUN apt-get -y install expat x11-apps libgtk2.0-0
Code: Select all
docker build -t owm .
The run script is:
Code: Select all
#!/bin/sh
XSOCK=/tmp/.X11-unix
XAUTH=/tmp/.docker.xauth
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
docker run -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /tmp/.docker.xauth:/tmp/.docker.xauth:rw -e XAUTHORITY=/tmp/.docker.xauth -v "$(pwd)"/OtherWorldMapper:/owm owm:latest /owm/OWM