-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerfile-oct24
33 lines (26 loc) · 1.3 KB
/
dockerfile-oct24
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ghcr.io/nmfs-opensci/container-images/py-rocket-geospatial:4.4-3.10
LABEL org.opencontainers.image.maintainers="[email protected]"
LABEL org.opencontainers.image.source=https://github.com/nmfs-opensci/container-images/coastwatch
LABEL org.opencontainers.image.description="CoastWatch image for satellite training courses"
LABEL org.opencontainers.image.licenses=Apache2.0
# Make sure R uses the conda path
USER root
RUN echo "PATH=${PATH}" >>"${R_HOME}/etc/Renviron.site"
USER ${NB_USER}
WORKDIR ${HOME}
# install into the coastwatch packages if missing environment
COPY install.R install.R
RUN Rscript install.R && rm install.R
# set-up the base coastwatch environment
# make sure we install in the notebook environment which is default in the
# Openscapes image
COPY coastwatch-environment.yml coastwatch-environment.yml
RUN mamba env update --name notebook -f coastwatch-environment.yml && mamba clean --all
RUN rm coastwatch-environment.yml
# Install CW Utilities
USER root
# Download, extract, create a symlink, and clean up
RUN 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 && \
ln -s /tmp/cwutils-4_0_0_198/bin/* ${NB_USER} && \
rm -rf cwutils-4_0_0_198-linux-x86_64.tar.gz cwutils-4_0_0_198