Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker(Alpine): Add additional GDAL driver #3058

Merged
merged 3 commits into from
Jun 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ ENV GRASS_RUN_PACKAGES="\
gcc \
gdal \
gdal-dev \
gdal-driver-GMLAS \
gdal-driver-HDF5 \
gdal-driver-JP2OpenJPEG \
gdal-driver-LIBKML \
gdal-driver-MSSQLSpatial \
gdal-driver-netCDF \
gdal-driver-ODBC \
gdal-driver-PG \
gdal-driver-PNG \
gdal-driver-WMS \
mmacata marked this conversation as resolved.
Show resolved Hide resolved
gdal-tools \
gettext \
geos \
Expand Down Expand Up @@ -175,6 +185,14 @@ RUN cp /usr/local/grass84/gui/wxpython/xml/module_items.xml module_items.xml; \
mkdir -p /usr/local/grass84/gui/wxpython/xml/; \
mv module_items.xml /usr/local/grass84/gui/wxpython/xml/module_items.xml;

RUN git clone https://github.com/OSGeo/gdal-grass /src/gdal-grass
WORKDIR /src/gdal-grass
RUN ./configure \
--with-gdal=/usr/bin/gdal-config \
--with-grass=/usr/local/grass84 && \
make -j $NUMTHREADS && \
make install -j $NUMTHREADS


FROM common as grass

Expand All @@ -188,9 +206,10 @@ ENV GRASSBIN="/usr/local/bin/grass" \
GRASSBIN=grass \
LC_ALL="en_US.UTF-8"

# Copy GRASS GIS from build image
# Copy GRASS GIS and GDAL GRASS driver from build image
COPY --from=build /usr/local/bin/grass /usr/local/bin/grass
COPY --from=build /usr/local/grass* /usr/local/grass/
COPY --from=build /usr/lib/gdalplugins/*_GRASS.so /usr/lib/gdalplugins/
# run simple LAZ test
COPY docker/testdata/simple.laz /tmp/
COPY docker/testdata/test_grass_session.py docker/alpine/grass_tests.sh /scripts/
Expand Down