Docker image for serving a local database containing datasets of plant phenotyping experiment
1.1K
The open source code for this project is on github.
More detailed instructions on the official ROMI documentation here.
To run it, you need to have a valid local ROMI database.
You need to create a directory where to put the data, e.g. /data/ROMI_DB and add a file called romidb:
mkdir -p /data/ROMI_DB
touch /data/ROMI_DB/romidb
Then define its location in an environment variable ROMI_DB:
export ROMI_DB=/data/ROMI_DB
Notes:
To permanently set this directory as the location of the DB, add it to your
~/.bashrcor~/.profilefile.
To populate your database with example datasets, you may use the shared_fsdb CLI as follows:
shared_fsdb $ROMI_DB --dataset all
plantdb docker imageAssuming you either have a $ROMI_DB environment variable pointing at a local ROMI database or used the shared_fsdb to set up one, you can then start a container based on the the roboticsmicrofarms/plantdb docker image with:
docker run -p 5000:5000 -v $ROMI_DB:/myapp/db -it roboticsmicrofarms/plantdb
Note that -v ROMI_DB:/myapp/db performs a bind mount of the host directory $ROMI_DB inside the container under /myapp/db.
This allows to access the local database from within the running container.
See the official Docker documentation.
Once it's up, you should be able to access the REST API here: http://localhost:5000/
To access the REST API, open your favourite browser and use URLs to access:
You should see JSON formatted text.
This software was developed during the Romi Project, which received funding from the European Union’s Horizon 2020 research and innovation program under grant agreement No 773875.
Content type
Image
Digest
sha256:a80c4a84d…
Size
801 MB
Last updated
over 1 year ago
docker pull roboticsmicrofarms/plantdb