Skip to content

Commit

Permalink
add the geospatial stuff and cwutils and panoply
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Nov 5, 2024
1 parent 07e2ac8 commit df47799
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
33 changes: 28 additions & 5 deletions draft_images/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
4 changes: 1 addition & 3 deletions draft_images/test/apt.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Some useful stuff
# for qgis
libgl1-mesa-glx

# Add some more
# or not

0 comments on commit df47799

Please sign in to comment.