|
|
* [D2.1 - general](D2.1-Documentation#D2.1 - general)
|
|
|
* [Deliverable report](D2.1-Documentation#Deliverable report)
|
|
|
* [Archive and Parsers (Base Layer) setup](D2.1-Documentation#Archive and Parsers (Base Layer) setup)
|
|
|
* [Encyclopedia infrastructure setup](D2.1-Documentation#Encyclopedia infrastructure setup)
|
|
|
* [Mini-API](D2.1-Documentation#Mini-API)
|
|
|
* [b](D2.1-Documentation#)
|
|
|
* [b](D2.1-Documentation#)
|
|
|
|
|
|
# D2.1 - general
|
|
|
|
|
|
The deliverable report describes the whole picture of the NOMAD database development status as of month 6.
|
... | ... | @@ -5,9 +13,73 @@ The deliverable report describes the whole picture of the NOMAD database develop |
|
|
Technical details going beyond this can be found here. This is supplementary information, thus this page is not exhaustive.
|
|
|
|
|
|
# Deliverable report
|
|
|
... submitted report will be downloadable here as soon as submitted
|
|
|
... report will be downloadable here as soon as submitted
|
|
|
|
|
|
# Archive and Parsers (Base Layer) setup
|
|
|
## Git Repositories
|
|
|
|
|
|
You can get the main git repository with
|
|
|
|
|
|
git clone --recursive git@gitlab.mpcdf.mpg.de:nomad-lab/nomad-lab-base.git
|
|
|
|
|
|
the metadata description repository is at
|
|
|
|
|
|
git clone git@gitlab.mpcdf.mpg.de:nomad-lab/nomad-meta-info.git
|
|
|
|
|
|
The main git repository (nomad-lab-base) contains submodules (nomad-meta-info etc.), hence the --recursive option is required during clone. If you clone the main git repository without the --recursive option, then you can initialize the submodules with
|
|
|
|
|
|
git submodule update --init
|
|
|
|
|
|
This command initializes your local configuration file and then fetches the submodule. More information on submodule can be found on [Git Tools: Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
### submodules
|
|
|
|
|
|
Get the git submodules in this repo:
|
|
|
|
|
|
git submodule update --init
|
|
|
|
|
|
### scala
|
|
|
|
|
|
Scala by itself is not strictly required, but it ensures that all dependencies are there (mainly java).
|
|
|
|
|
|
#wget http://downloads.typesafe.com/scala/2.11.5/scala-2.11.5.deb?_ga=1.172612385.307956976.1430825833
|
|
|
wget http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.deb
|
|
|
sudo dpkg -i scala-2.11.6.deb
|
|
|
|
|
|
### sbt installation
|
|
|
|
|
|
if [ ! -e "/etc/apt/sources.list.d/sbt.list" ] ; then
|
|
|
echo "deb http://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
|
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
|
|
|
fi
|
|
|
sudo aptitude update
|
|
|
sudo aptitude install sbt
|
|
|
|
|
|
### hdf5 / netCDF installation
|
|
|
|
|
|
read & execute (line by line if you have problems/worry about security)
|
|
|
|
|
|
hdf5/getAndBuild.sh
|
|
|
|
|
|
### compilation
|
|
|
|
|
|
just use sbt normally:
|
|
|
|
|
|
$ sbt
|
|
|
> compile
|
|
|
> test
|
|
|
> testOnly *MyTests*
|
|
|
> myParser/test
|
|
|
> tool/run
|
|
|
> re-start
|
|
|
> re-stop
|
|
|
...
|
|
|
|
|
|
this interactive use keeps things cached and gives faster compilation/test, console will start an interactive scala environment where you can import and play with all the infrastructure (i.e. scala REPL + all dependencies and compiled code).
|
|
|
|
|
|
|
|
|
# [Archive and Parsers setup](https://gitlab.mpcdf.mpg.de/nomad-lab/nomad-lab-base/wikis/Getting-started)
|
|
|
|
|
|
# Encyclopedia infrastructure setup
|
|
|
Connecting to NOMAD virtual machine
|
... | ... | @@ -383,8 +455,8 @@ server { |
|
|
}
|
|
|
~~~
|
|
|
|
|
|
# Software implemented
|
|
|
## Mini-API
|
|
|
|
|
|
# Mini-API
|
|
|
The API exposes to the GUI the following properties:
|
|
|
|
|
|
[List of data to be shown in the mini-GUI for the database - deliverable 2.1](https://gitlab.mpcdf.mpg.de/nomad-lab/encyclopedia-general/wikis/WM5-D2.1-mini-GUI-data)
|
... | ... | |