diff --git a/draft_images/test/Desktop/cdat.desktop b/draft_images/test/Desktop/cdat.desktop new file mode 100644 index 0000000..ea6c36e --- /dev/null +++ b/draft_images/test/Desktop/cdat.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=CWUtils +GenericName=CoastWatch Data Analysis Tool +Icon=cdat +TryExec=cdat +Exec=cdat %F +Terminal=false +StartupNotify=false +Categories=Qt;Education;Science;Geography; +Keywords=map;globe; diff --git a/draft_images/test/Desktop/cdat.png b/draft_images/test/Desktop/cdat.png new file mode 100644 index 0000000..3af4539 Binary files /dev/null and b/draft_images/test/Desktop/cdat.png differ diff --git a/draft_images/test/Desktop/panoply.desktop b/draft_images/test/Desktop/panoply.desktop new file mode 100644 index 0000000..50fe985 --- /dev/null +++ b/draft_images/test/Desktop/panoply.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Panoply +GenericName=Panoply netCDF, HDF and GRIB Data Viewer +Icon=panoply +Exec=/tmp/PanoplyJ/panoply.sh %F +Terminal=false +StartupNotify=false +Categories=Qt;Education;Science;Geography; +Keywords=map; diff --git a/draft_images/test/Desktop/panoply.png b/draft_images/test/Desktop/panoply.png new file mode 100644 index 0000000..59325b7 Binary files /dev/null and b/draft_images/test/Desktop/panoply.png differ diff --git a/draft_images/test/Desktop/qgis.desktop b/draft_images/test/Desktop/qgis.desktop new file mode 100644 index 0000000..2f42bd7 --- /dev/null +++ b/draft_images/test/Desktop/qgis.desktop @@ -0,0 +1,14 @@ +# From: https://github.com/qgis/QGIS/blob/ltr-3_28/linux/org.qgis.qgis.desktop.in +[Desktop Entry] +Type=Application +Name=QGIS Desktop +GenericName=Geographic Information System +Icon=/srv/conda/envs/notebook/share/qgis/images/icons/qgis-icon-512x512.png +TryExec=qgis +Exec=qgis %F +Terminal=false +StartupNotify=false +Categories=Qt;Education;Science;Geography; +MimeType=application/x-qgis-project;application/x-qgis-project-container;application/x-qgis-layer-settings;application/x-qgis-layer-definition;application/x-qgis-composer-template;image/tiff;image/jpeg;image/jp2;application/x-raster-aig;application/x-raster-ecw;application/x-raster-mrsid;application/x-mapinfo-mif;application/x-esri-shape;application/vnd.google-earth.kml+xml;application/vnd.google-earth.kmz;application/geopackage+sqlite3; +Keywords=map;globe;postgis;wms;wfs;ogc;osgeo; +StartupWMClass=QGIS3 \ No newline at end of file diff --git a/draft_images/test/Desktop/qgis.xml b/draft_images/test/Desktop/qgis.xml new file mode 100644 index 0000000..d8f2ec0 --- /dev/null +++ b/draft_images/test/Desktop/qgis.xml @@ -0,0 +1,212 @@ + + + + + + QGIS Project + QGIS-Projekt + + + + + + + + + + + QGIS Project + QGIS-Projekt + + + + + + + + QGIS layer settings + QGIS-Layereinstellungen + + + + + + + + + + QGIS layer definition + QGIS-Layerdefinition + + + + + + + + + + QGIS composer template + QGIS-Druckzusammenstellungsvorlage + + + + + + + + + + ESRI shape file + ESRI-Shapedatei + + + + + + + + + + + + + + + + + + + + + + ESRI coordinate reference system + ESRI-Koordinatenreferenzsystem + + + + + + + + + + + TIFF raster data + TIFF-Rasterdaten + + + + + + + + + + + + + + + JPEG raster data + JPEG-Rasterdaten + + + + + + + + + + JPEG2000 raster data + JPEG2000-Rasterdaten + + + + + + + + + + + + + + + + + + + + + + + + AIG raster data + AIG-Rasterdaten + + + + + + ECW raster data + ECW-Rasterdaten + + + + + + MrSID raster data + MrSID-Rasterdaten + + + + + + MapInfo file + MapInfo-Datei + + + + + + + + + + + + + + + Adobe FrameMaker MIF file + + + + + + + + Keyhole Markup Language data + + + + + + + Zipped Keyhole Markup Language data + + + + + + + GeoPackage data + + + + + + \ No newline at end of file diff --git a/draft_images/test/Dockerfile b/draft_images/test/Dockerfile index 36d2bbb..de50061 100644 --- a/draft_images/test/Dockerfile +++ b/draft_images/test/Dockerfile @@ -4,12 +4,35 @@ RUN echo ${PATH} USER root RUN echo ${PATH} -RUN /pyrocket_scripts/install-conda-packages.sh || echo "install-conda-packages.sh failed" || true -RUN /pyrocket_scripts/install-r-package.sh || echo "install-r-package.sh failed" || true -RUN /pyrocket_scripts/install-pip-packages.sh || echo "install-pip-packages.sh failed" || true -RUN /pyrocket_scripts/install-apt-packages.sh || echo "install-apt-packages.sh failed" || true +RUN /pyrocket_scripts/install-conda-packages.sh environment.yml || echo "install-conda-packages.sh failed" || true +RUN /pyrocket_scripts/install-r-packages.sh install.R || echo "install-r-package.sh failed" || true +RUN /pyrocket_scripts/install-pip-packages.sh requirements.txt || echo "install-pip-packages.sh failed" || true +RUN /pyrocket_scripts/install-apt-packages.sh apt.txt || echo "install-apt-packages.sh failed" || true +RUN /pyrocket_scripts/install-desktop.sh || echo "setup-desktop.sh failed" || true RUN /pyrocket_scripts/run-postbuild.sh || echo "run-postbuild.sh failed" || true RUN /pyrocket_scripts/setup-start.sh || echo "setup-start.sh failed" || true -RUN /pyrocket_scripts/setup-desktop.sh || echo "setup-desktop.sh failed" || true USER ${NB_USER} +USER root +# install the geospatial libraries and R spatial; the rocket script are part of py-rocket-base +RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \ + /rocker_scripts/install_geospatial.sh + +# Install cwutils +RUN cd /tmp && \ + wget https://www.star.nesdis.noaa.gov/socd/coastwatch/cwf/cwutils-4_0_0_198-linux-x86_64.tar.gz && \ + tar -zxf cwutils-4_0_0_198-linux-x86_64.tar.gz && \ + rm -rf cwutils-4_0_0_198-linux-x86_64.tar.gz +ENV PATH=${PATH}:/tmp/cwutils_4.0.0.198/bin +ENV MANPATH=${MANPATH}:/tmp/cwutils_4.0.0.198/doc/man +ENV INSTALL4J ADD VM PARAMS=-Dsun.java2d.uiScale=2.0 + +# Install panoply +RUN cd /tmp && \ + wget --user-agent="Mozilla/5.0" https://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-5.5.4.tgz && \ + tar -zxf PanoplyJ-5.5.4.tgz && \ + rm -rf PanoplyJ-5.5.4.tgz +ENV PATH=${PATH}:/tmp/PanoplyJ + +USER ${NB_USER} +WORKDIR ${HOME} diff --git a/draft_images/test/apt.txt b/draft_images/test/apt.txt index 3a9f755..458ce60 100644 --- a/draft_images/test/apt.txt +++ b/draft_images/test/apt.txt @@ -1,5 +1,3 @@ -# Some useful stuff +# for qgis libgl1-mesa-glx -# Add some more -# or not diff --git a/draft_images/test/environment.yml b/draft_images/test/environment.yml index a764317..7022409 100644 --- a/draft_images/test/environment.yml +++ b/draft_images/test/environment.yml @@ -114,8 +114,7 @@ dependencies: - xmip - spectral # pure Python module for processing hyperspectral image data - - # Desktop tools whose versions are more recent on conda-forge than ubuntu + # Desktop tools - qgis - pyopencl # Maybe needed for qgis? https://github.com/conda-forge/qgis-feedstock/issues/263 # Resolves warning "No ICDs were found": https://github.com/CryoInTheCloud/hub-image/issues/50 diff --git a/draft_images/test/requirements,txt b/draft_images/test/requirements.txt similarity index 100% rename from draft_images/test/requirements,txt rename to draft_images/test/requirements.txt diff --git a/draft_images/test/start b/draft_images/test/start new file mode 100644 index 0000000..1ceb4a0 --- /dev/null +++ b/draft_images/test/start @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +export TEST=abc + +exec "$@"