forked from mundialis/docker-qgis2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qgis2
executable file
·39 lines (34 loc) · 935 Bytes
/
qgis2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
# QGIS 2.18.latest in docker
#
# INSTALLATION:
# docker pull mundialis/docker-qgis2
#
# AUTHORS:
# mundialis GmbH & Co. KG
# Markus Neteler, 2018 <[email protected]>
#
# 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
#xhost local:root
sudo docker run --rm --name qgis2 \
-it \
-v ${HOME}:/home/${USER_NAME} \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
-e MYHOME=${HOME} \
--env="QT_X11_NO_MITSHM=1" \
mundialis/docker-qgis2