Advanced Platform for Reproducible Infrastructures in the Cloud via Open Tools (APRICOT)
539
APRICOT is an open-source extension to support customised virtual infrastructure deployment and usage from Jupyter notebooks. It allows multi-cloud infrastructure provisioning using a wizard-like GUI that guides the user step by step through the deployment process. It implements Ipython magic functionality to use and manage the deployed infrastructures within Jupyter notebooks for increased usability.
A generic computational experimentation involves the elements shown in the following figure. So, to be able to reproduce any experiment, any researcher needs:
Required input data or a method to produce it.
Specific hardware needs, like memory requirements, GPGPUs, FPGAs, multi-node cluster, etc.
A list of all the required software and their configuration, such as MPI on a cluster, specific language compilers, specific software or libraries, source codes, etc.
Clear instructions on how to reproduce the entire experiment.

APRICOT can be used to achieve reproducible experiments for experiments that require complex customised computing infrastructures using Jupyter notebooks. The key points to develop reproducible experiments using APRICOT extensions are:
Required data must be provided using external storage systems or a notebook with instructions to create it. APRICOT has been configured to use OneData as external storage provider.
APRICOT provides a set of predefined configurable infrastructures to fit the experiments. Any researcher can easily deploy the same computing infrastructure than the one used in a previous experimentation carried out with the deployed infrastructure in APRICOT.
APRICOT allows remote execution of commands at the deployed infrastructures to ease interaction. So, extra needed software can be documented and installed at the infrastructure within the same Jupyter notebook where the experimentation has been documented in order to be executed step by step.
Since APRICOT extension uses Jupyter notebooks as base environment, all the experiment can be documented using text, life code and images.

APRICOT has been constructed using the following components:
APRICOT requires the EC3 client to deploy the infrastructure and get the access credentials. The installation details can be found at EC3 documentationā .
Also, APRICOT requires a Jupyter installationā , since uses its environment to run. It is compatible with Jupyter 4.x and 5.x versions.
To install APRICOT package, run the provided install script
bash install.sh
Infrastructure deployment with APRICOT is done using a notebook extension. This one, creates the button showed at next image, which opens a GUI to guide the user step by step trough deployment process.

Deployment process include,

If any error occurs during deployment, this will be shown in the web console. Also, it is possible to get cluster configuration logs using implemented magics functions or get them directly using EC3 client via a terminal or bash magics into the notebook.
To manage and use previous deployed infrastructures within Jupyter notebook environment, a set of Ipython magic functions have been implemented. These functions are listed below:
Like any Jupyter magics, these must be lodaded at the notebook using %reload_ext apricot_magic or configure jupyter to load these magics in all notebooks.
A docker file has been provided to construct a docker image with jupyter and apricot configured. Use
docker pull grycap/apricot
to pull the image. Then, use
docker run --publish 8888:8888 -it grycap/apricot
to create and execute a container. The container will start automatically a jupyter server with apricot preconfigured. Then, use the url provided by jupyter to access to the server.
APRICOT is licensed under the Apache License, Version 2.0. See LICENSEā for the full license text.
Content type
Image
Digest
Size
422 MB
Last updated
almost 7 years ago
docker pull grycap/apricot