Public Repository

Last pushed: 5 months ago
Short Description
Container for QGis application running on Ubuntu 16.04
Full Description

Introduction

I needed the QGis software but found out some dependencies were annoying to resolve on host machines other than Ubuntu. Add to that the fact that it comes with its own internal python, and you can conclude that managing it can be a little annoying. This repository comes to save everyone that needs to do geospatial analysis without headaches.

Instructions

The following is a sample command I would use to run QGis with sound and data volumes on a Ubuntu 16.04 host:

$ docker run --rm \
-e DISPLAY \
-e QT_X11_NO_MITSHM=1 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v /home/user/qgis_projects:/qgis_projects \
crsilva/qgis:latest

Dockerfile

FROM ubuntu:latest
MAINTAINER Cristobal Silva <crsilva@ing.uchile.cl>

RUN printf "deb http://qgis.org/debian xenial main\ndeb-src http://qgis.org/debian xenial main\n" >> /etc/apt/sources.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv-key 073D307A618E5811

RUN apt-get update && \
    apt-get install -y qgis python-qgis qgis-plugin-grass && \
    rm -rf /var/lib/apt/lists/*

CMD ["/usr/bin/qgis"]
Docker Pull Command
Owner
crsilva

Comments (0)