Skip to content

Commit

Permalink
Add (but not enable) STAC plugin by default
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Sep 13, 2023
1 parent ca6f889 commit fc2a159
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ additional tags:

All the available tags can be found [here](https://quay.io/repository/jupyter-remote-desktop-proxy/qgis?tab=tags)

QGIS plugins that are deemed useful when working in the cloud are included
by default. This currently includes the following plugins:

1. [QGIS STAC API browser](https://stac-utils.github.io/qgis-stac-plugin/)

However, these are not _enabled_ by default. The user still has to go to the
plugins menu and enable them.

## Policy for adding images

To reduce maintenance burden, we will only accept maintaining images here that
Expand Down
3 changes: 3 additions & 0 deletions images/qgis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ FROM ${IMAGE_PREFIX}base:latest
RUN mamba install -c conda-forge --yes \
qgis

COPY --chown=1000:1000 setup-qgis-plugins.bash /tmp/setup-qgis-plugins.bash
RUN /tmp/setup-qgis-plugins.bash && rm /tmp/setup-qgis-plugins.bash

COPY qgis.desktop ${DESKTOP_FILES_DIR}/qgis.desktop
COPY qgis.xml ${MIME_FILES_DIR}/qgis.xml
19 changes: 19 additions & 0 deletions images/qgis/setup-qgis-plugins.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# Sets up various QGIS plugins that are useful when running
# on the cloud
set -euo pipefail

# First, let's install the plugin manager
# Install from pip until https://github.com/conda-forge/staged-recipes/pull/23971
# is merged and available from `conda-forge`
pip install --no-cache qgis-plugin-manager

# Tell qgis-plugin-manager where our qgis plugins are
export QGIS_PLUGINPATH=/opt/conda/share/qgis/python/plugins

# Initialize the qgis plugin manager
qgis-plugin-manager init
qgis-plugin-manager update

# Install the STAC API Browser plugin: https://stac-utils.github.io/qgis-stac-plugin/
qgis-plugin-manager install "STAC API Browser"

0 comments on commit fc2a159

Please sign in to comment.