Skip to content

Commit

Permalink
docker: fix GRASS lib path detection (#883)
Browse files Browse the repository at this point in the history
- create generic GRASS GIS lib name regardless of version number in a robust way

Fixes #869
  • Loading branch information
neteler committed Aug 8, 2020
1 parent 0d8ea92 commit be04eb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docker/debian/Dockerfile_debian_pdal
Expand Up @@ -211,7 +211,8 @@ ENV GRASS_SKIP_MAPSET_OWNER_CHECK 1

# Create generic GRASS GIS binary name regardless of version number
RUN ln -sf `find /usr/local/bin -name "grass??" | sort | tail -n 1` /usr/local/bin/grass
RUN ln -sf `find /usr/local -type d -name "grass??" | sort | tail -n 1` /usr/local/grass
# Create generic GRASS GIS lib name regardless of version number
RUN ln -sf `grass --config path` /usr/local/grass

# show GRASS GIS, PROJ, GDAL etc versions
RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu/Dockerfile_ubuntu_latest_pdal
Expand Up @@ -157,7 +157,8 @@ ENV GRASS_SKIP_MAPSET_OWNER_CHECK 1

# Create generic GRASS GIS binary name regardless of version number
RUN ln -sf `find /usr/local/bin -name "grass??" | sort | tail -n 1` /usr/local/bin/grass
RUN ln -sf `find /usr/local -type d -name "grass??" | sort | tail -n 1` /usr/local/grass
# Create generic GRASS GIS lib name regardless of version number
RUN ln -sf `grass --config path` /usr/local/grass

# show GRASS GIS, PROJ, GDAL etc versions
RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
Expand Down
3 changes: 2 additions & 1 deletion docker/ubuntu/Dockerfile_ubuntu_pdal
Expand Up @@ -212,7 +212,8 @@ ENV GRASS_SKIP_MAPSET_OWNER_CHECK 1

# Create generic GRASS GIS binary name regardless of version number
RUN ln -sf `find /usr/local/bin -name "grass??" | sort | tail -n 1` /usr/local/bin/grass
RUN ln -sf `find /usr/local -type d -name "grass??" | sort | tail -n 1` /usr/local/grass
# Create generic GRASS GIS lib name regardless of version number
RUN ln -sf `grass --config path` /usr/local/grass

# show GRASS GIS, PROJ, GDAL etc versions
RUN grass --tmp-location EPSG:4326 --exec g.version -rge && \
Expand Down

0 comments on commit be04eb7

Please sign in to comment.