diff --git a/Dockerfile b/Dockerfile index 9c31e5c..777c551 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,22 @@ RUN source activate esmvaltool && \ /opt/conda/bin/jupyter labextension install @pyviz/jupyterlab_pyviz \ jupyter-leaflet +# Install requirements for cesm +ADD cesm_environment.yml cesm_environment.yml + +# Python packages +RUN conda env create -f cesm_environment.yml && conda clean -yt +RUN ["/bin/bash" , "-c", ". /opt/conda/etc/profile.d/conda.sh && \ + conda activate cesm && \ + python -m pip install ipykernel && \ + ipython kernel install --user --name cesm && \ + python -m ipykernel install --user --name=cesm && \ + jupyter labextension install @jupyterlab/hub-extension \ + @jupyter-widgets/jupyterlab-manager && \ + jupyter labextension install jupyterlab-datawidgets && \ + conda deactivate && \ + conda init bash"] + # Fix hub failure RUN fix-permissions $HOME diff --git a/cesm_environment.yml b/cesm_environment.yml new file mode 100644 index 0000000..84765a7 --- /dev/null +++ b/cesm_environment.yml @@ -0,0 +1,52 @@ +name: cesm +channels: + - conda-forge + - bioconda + - defaults +dependencies: + - biopython + # core scipy packages + - numpy + - scipy + - matplotlib + - pandas + - xarray + # geospatial + - iris + - cartopy + - basemap + - basemap-data-hires + - geopandas + - rasterio + - netcdf4 + - erddapy + - pydap + - h5py + - h5netcdf + - regionmask + - rio-cogeo + # geoscience-related + - climlab + - metpy + - satpy + - gsw + - eofs + - esmpy + - xesmf + - windspharm + # misc + - python-wget + - wget + - pip + - pyaerocom + - nc-time-axis + - nco + - jupytext + - cdo + - cdsapi + - cfgrib + - cis + - cesm + - pip: + - bioblend + - galaxy-ie-helpers