-
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.
- Loading branch information
Showing
8 changed files
with
57 additions
and
6 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
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
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
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
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
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,42 @@ | ||
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 libproj-dev libgeos-dev | ||
|
||
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 .. \ | ||
&& make -j2 \ | ||
&& make install \ | ||
&& cd ../.. \ | ||
&& rm -rf kealib | ||
|
||
RUN cd /tmp \ | ||
&& wget https://github.com/OSGeo/gdal/releases/download/v3.8.1/gdal-3.8.1.tar.gz \ | ||
&& tar xf gdal-3.8.1.tar.gz \ | ||
&& cd gdal-3.8.1 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make -j2 \ | ||
&& make install \ | ||
&& cd .. \ | ||
&& rm -rf gdal-3.8.1 gdal-3.8.1.tar.gz | ||
|
||
ENV LD_LIBRARY_PATH=/usr/local/lib | ||
#ENV GDAL_DRIVER_PATH=/usr/local/lib/gdalplugins | ||
RUN which gdal_translate | ||
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
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