#!/bin/sh # QGIS 2.18.latest in docker # # INSTALLATION: # docker pull mundialis/docker-qgis2 # # AUTHORS: # mundialis GmbH & Co. KG # Markus Neteler, 2018 # # inspired by # https://github.com/timcera/qgis-desktop-ubuntu # https://github.com/wessm/Dockerfiles/tree/master/qgis2 # # # SOURCE CODE: # https://github.com/mundialis/docker-qgis2 # ################### # get user name USER_NAME=`basename $HOME` # MYHOME is used to pass the HOME directory of the user running qgis # and is used in "launch_prep.sh" to create the same user within the container. # The user home is mounted as HOME # --rm will remove the container as soon as it ends sudo docker run --rm --name qgis2 \ -it \ -v ${HOME}:/home/${USER_NAME} \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=unix$DISPLAY \ -e MYHOME=${HOME} \ mundialis/docker-qgis2