-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix docker build command * Include conda env from antonio * Added mamba doc for recipe * Update dockerfile to 1.5.0 * Update README (conda as preferred install method) * upgraded docker to 1.5.1 (added python packages) * Added python dependencies and using mambabuild * Change channel order in conda install command Setting conda-forge as primary channel avoids conflicts with the default channel * reduced meta.yml dependencies * Update README.md Include additional aid for jupyter notebook installation in new climate4r dedicated environments * Update README.md * Generated Dockerfile for 1.5.0 * updated conda to 1.5.1 * Updated README * using r- packages instead of install.R * The first release based only on conda packages * Fix build string * Relaxing R and Python version specification * Preparing release v2.5.3 Co-authored-by: zequihg50 <[email protected]> Co-authored-by: Jesus Fernandez <[email protected]> Co-authored-by: Jesus Fernandez <[email protected]> Co-authored-by: Joaquin Bedia <[email protected]>
- Loading branch information
1 parent
a18ef5a
commit 8a02b51
Showing
13 changed files
with
139 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
FROM santandermetgroup/climate4r:1.4.1 | ||
FROM jupyter/base-notebook:latest | ||
|
||
COPY --chown=jovyan:users notebooks /home/$NB_USER/notebooks | ||
USER root | ||
RUN apt-get update && apt-get install -y xorg git | ||
|
||
USER $NB_USER | ||
RUN conda install mamba -y -n base -c conda-forge && \ | ||
mamba install -y -c conda-forge -c r -c defaults -c santandermetgroup \ | ||
r-climate4r=2.5.3 \ | ||
xarray pandas matplotlib cartopy netcdf4 cftime dask iris \ | ||
jupyter_contrib_nbextensions jupyter_nbextensions_configurator r-irkernel && \ | ||
chown -R jovyan:users /home/jovyan && \ | ||
R --vanilla -e 'IRkernel::installspec()' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Conda recipe for climate4R metapackage | ||
|
||
## Installing climate4R conda metapackage | ||
|
||
```bash | ||
conda install -c conda-forge -c r -c defaults -c santandermetgroup r-climate4r | ||
``` | ||
|
||
*** | ||
_Note for jupyter notebook users_: From a dedicated environment, to run notebooks using climate4R include it as: | ||
|
||
```bash | ||
conda install -c conda-forge -c r -c defaults -c santandermetgroup r-climate4r | ||
jupyter r-irkernel | ||
``` | ||
|
||
in order to include jupyter notebooks in your newly created environment | ||
*** | ||
|
||
## Building climate4R conda metapackage | ||
|
||
```bash | ||
conda build -c conda-forge -c r -c defaults -c santandermetgroup . | ||
anaconda login | ||
anaconda upload -u SantanderMetGroup PATH_TO_TAR_BZ2 | ||
``` | ||
|
||
## ToDo, explore mamba and boa | ||
|
||
[mamba](https://github.com/mamba-org/mamba) and [boa](https://github.com/mamba-org/boa) | ||
|
||
Install: | ||
|
||
```bash | ||
conda install mamba -n base -c conda-forge | ||
``` | ||
|
||
Build: | ||
|
||
```bash | ||
rm -rf ${HOME}/miniconda3/conda-bld/src_cache | ||
conda mambabuild -c conda-forge -c r -c defaults -c santandermetgroup . &>log & | ||
``` |
Oops, something went wrong.