diff --git a/Dockerfile b/Dockerfile index bfe90df..ce02cee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM osgeo/grass-gis:releasebranch_8_3-alpine +FROM osgeo/grass-gis:main-ubuntu_wxgui # is this needed or already set in the base image? -# ---> +# ---> SHELL ["/bin/bash", "-c"] # set SHELL var to avoid /bin/sh fallback in interactive GRASS GIS sessions ENV SHELL /bin/bash @@ -12,12 +12,12 @@ ENV GRASS_SKIP_MAPSET_OWNER_CHECK 1 ENV PROJ_NETWORK=ON # <--- +# set GRASS_ADDON_BASE +ENV GRASS_ADDON_BASE=/usr/local/grass84 + # install external dependencies -RUN apk add --no-cache gcc make py3-psutil bash musl-dev python3-dev proj-dev -RUN apk add --no-cache py3-scikit-learn -RUN pip3 install py7zr tqdm requests -# workaround for broken pyproj release, remove when pyproj 3.6.1 is out -RUN pip3 install pyproj@git+https://github.com/pyproj4/pyproj.git@main +# RUN apt install musl-dev ?? +RUN pip3 install py7zr tqdm requests psutil scikit-learn pyproj # install official addons RUN grass --tmp-location EPSG:4326 --exec g.extension r.mapcalc.tiled -s diff --git a/README.md b/README.md index 70ad736..fb5c0bc 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,12 @@ Instead of "latest", a version number can be used. This should create a local docker image with all needed addons and dependencies. Once the docker image has been created locally, it can be started with e.g. ```bash -docker run -it \ +xhost local:* +docker run -it --privileged --rm \ -v /path/to/grassdata:/grassdb \ -v /path/to/rvr_daten:/mnt/data \ - rvr_interface:latest sh + -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \ + --env DISPLAY=$DISPLAY \ + --device="/dev/dri/card0:/dev/dri/card0" \ + rvr_interface:latest bash ``` diff --git a/grass-gis-addons/m.import.rvr/m.import.rvr.html b/grass-gis-addons/m.import.rvr/m.import.rvr.html index 45bf274..0fb6ff7 100644 --- a/grass-gis-addons/m.import.rvr/m.import.rvr.html +++ b/grass-gis-addons/m.import.rvr/m.import.rvr.html @@ -11,7 +11,7 @@

DESCRIPTION