-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathisisasp.dockerfile
More file actions
68 lines (53 loc) · 2.81 KB
/
isisasp.dockerfile
File metadata and controls
68 lines (53 loc) · 2.81 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ARG BASE_IMAGE="jupyter/minimal-notebook:latest"
FROM $BASE_IMAGE
# ARG JUPYTERHUB_VERSION="3.0.0"
# RUN python -m pip install --no-cache jupyterhub==$JUPYTERHUB_VERSION && \
# echo "jupyterhub $(jupyterhub --version)" >> $CONDA_DIR/conda-meta/pinned
# This lines above are necessary to guarantee a smooth coupling JupyterHub.
# -------------------------------------------------------------------------
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
USER root
RUN [ -n "${BASE_IMAGE##*isis*}" ] && \
apt-get update -y && \
apt-get install -y --no-install-recommends \
bzip2 \
ca-certificates \
curl \
git \
libgl1-mesa-glx \
libjpeg9 \
libjpeg9-dev \
rsync \
wget \
vim && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove || \
echo "Nothing apt-installed, base 'isis' image already did it."
USER $NB_UID
ARG ASP_VERSION=""
COPY isisasp.yml /tmp/asp.tmp
RUN [ -n "${ASP_VERSION}" ] && \
sed "s/\(.*- stereo-pipeline\).*/\1=$ASP_VERSION/" /tmp/asp.tmp \
> /tmp/asp.yml || \
cp /tmp/asp.tmp /tmp/asp.yml
RUN source activate isis && \
mamba env update --file /tmp/asp.yml && \
mamba clean -a
## Write a README file for user
#
ENV README=$HOME/README.md
COPY readmes/readme.isisasp.md /tmp/readme.isisasp.md
RUN echo "" >> $README && \
cat /tmp/readme.isisasp.md | envsubst >> $README && \
echo "" >> $README
# RUN source activate gispy && \
# pip install -y \
# asap_stereo \
# pds4-tools \
# rio-cogeo
# # If WORK_DIR is not defined (when notebook/user is started), use (~) Home.
# RUN echo 'conda config --add envs_dirs ${WORK_DIR:-~}/.conda/envs 2> /dev/null' \
# >> $HOME/.bashrc
# RUN python3 -m pip install nbgitpuller
# RUN echo 'http://localhost:8888/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Feuroplanet-gmap%2FBasemappingUtils&urlpath=lab%2Ftree%2FBasemappingUtils%2FREADME.md&branch=master' > $HOME/README.md
# COPY etc/jupyterlab/user_settings.json /opt/conda/share/jupyter/lab/settings/overrides.json