Skip to content

Commit

Permalink
Add r.in.pdal test for alpine image (#2758)
Browse files Browse the repository at this point in the history
* add r.in.pdal test for alpine image
* fix r.in.pdal tests
* removement of r.in.pdal addon installation in Ubuntu and Debian docker images (as being replaced in C++ version in #1200)

Co-authored-by: anikaweinmann <aweinmann@mundialis.de>
  • Loading branch information
anikaweinmann and anikaweinmann committed Jan 18, 2023
1 parent 2b946ed commit cf284fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
6 changes: 5 additions & 1 deletion docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,16 @@ ENV GRASSBIN="/usr/local/bin/grass" \
SHELL="/bin/bash"
ENV PROJ_NETWORK="ON"


# show installed version
RUN grass --tmp-location XY --exec g.version -rge && \
pdal --version && \
python3 --version

# test r.in.pdal in final image because test stage is not executed in github action
COPY docker/testdata/simple.laz /tmp/simple.laz
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -g


# Data workdir
WORKDIR /grassdb
VOLUME /grassdb
Expand Down
5 changes: 1 addition & 4 deletions docker/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,6 @@ WORKDIR /scripts
# install external GRASS GIS session Python API
RUN pip3 install grass-session

# install GRASS GIS extensions
RUN grass --tmp-location EPSG:4326 --exec g.extension extension=r.in.pdal

# add GRASS GIS envs for python usage
ENV GISBASE "/usr/local/grass/"
ENV GRASSBIN "/usr/local/bin/grass"
Expand All @@ -242,7 +239,7 @@ COPY docker/testdata/test_grass_session.py .
## just scan the LAZ file
# Not yet ready for GRASS GIS 8:
#RUN /usr/bin/python3 /scripts/test_grass_session.py
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -s
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -g

WORKDIR /grassdb
VOLUME /grassdb
5 changes: 1 addition & 4 deletions docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ WORKDIR /scripts
# install external GRASS GIS session Python API
RUN pip3 install grass-session

# install GRASS GIS extensions
RUN grass --tmp-location EPSG:4326 --exec g.extension extension=r.in.pdal

# add GRASS GIS envs for python usage
ENV GISBASE "/usr/local/grass/"
ENV GRASSBIN "/usr/local/bin/grass"
Expand All @@ -236,7 +233,7 @@ COPY docker/testdata/test_grass_session.py .
## just scan the LAZ file
# Not yet ready for GRASS GIS 8:
#RUN /usr/bin/python3 /scripts/test_grass_session.py
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -s
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -g

WORKDIR /grassdb
VOLUME /grassdb
5 changes: 1 addition & 4 deletions docker/ubuntu/wxgui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ WORKDIR /scripts
# install external GRASS GIS session Python API
RUN pip3 install grass-session

# install GRASS GIS extensions
RUN grass --tmp-location EPSG:4326 --exec g.extension extension=r.in.pdal

# add GRASS GIS envs for python usage
ENV GISBASE "/usr/local/grass/"
ENV GRASSBIN "/usr/local/bin/grass"
Expand All @@ -273,7 +270,7 @@ COPY docker/testdata/test_grass_session.py .
## just scan the LAZ file
# Not yet ready for GRASS GIS 8:
#RUN /usr/bin/python3 /scripts/test_grass_session.py
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -s
RUN grass --tmp-location EPSG:25832 --exec r.in.pdal input="/tmp/simple.laz" output="count_1" method="n" resolution=1 -g

WORKDIR /grassdb
VOLUME /grassdb

0 comments on commit cf284fa

Please sign in to comment.