-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* backport GDAL #8788 * add testing Dockerfile
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# Needed in case tzdata gets upgraded | ||
ENV TZ=Australia/Brisbane | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Use Aussie mirrors | ||
RUN sed -i 's/http:\/\/archive./http:\/\/au.archive./g' /etc/apt/sources.list | ||
|
||
# Update Ubuntu software stack and install base GDAL stack | ||
RUN apt-get update | ||
RUN apt-get upgrade -y | ||
RUN apt-get install -y wget g++ cmake libhdf5-dev libgdal-dev gdal-bin | ||
|
||
RUN apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /tmp/kealib | ||
RUN cd /tmp/kealib \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -D LIBKEA_WITH_GDAL=ON .. \ | ||
&& make \ | ||
&& make install \ | ||
&& cd ../.. \ | ||
&& rm -rf kealib | ||
|
||
ENV LD_LIBRARY_PATH=/usr/local/lib | ||
ENV GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins | ||
|
||
RUN gdal_translate --formats | grep KEA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters