-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (42 loc) · 1.77 KB
/
Dockerfile
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
#=================================================================================
#
# Create a docker image for ESMValTool that can be used in combination with
# the Nird Toolkit application : jupyter notebook
#
#=================================================================================
# Create a docker image based on a uninett base image
# See the value of dockerImage in
#
# https://github.com/Uninett/helm-charts/blob/master/repos/stable/jupyter/values.yaml
# https://quay.io/repository/uninett/jupyter-spark?tab=tags
#
# to determine the latest base image
#=================================================================================
FROM quay.io/uninett/jupyter-spark:20200420-1131dd2
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
#=================================================================================
# Install ESMValTool
# Based on:
# https://github.com/ESMValGroup/ESMValTool/blob/version2_development/docker/Dockerfile
#=================================================================================
# update the root environment and conda packages
USER root
RUN apt-get update && apt-get install -y vim
RUN conda update -y conda pip
# create "esmvaltool" environment
RUN conda env create -f environment.yml
# install environment packages
#RUN conda env update -n base --file environment.yml
# Install esmvaltool python package
#RUN cd /app/esmvaltool_v2.0.0b1 \
# && pip install --user . \
# && chmod -R 777 /home/notebook/.local
USER notebook
ENV PATH="~/.local/bin:${PATH}"
LABEL maintainer="Tomas Torsvik <[email protected]>" \
version="1.0.5"
## # check installation
## RUN esmvaltool --help