From 381f00dc1f82a17c17465c2972c164e3426908a1 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Tue, 4 Jun 2024 23:09:48 +0200 Subject: [PATCH] update README and run script to be verbose and show errors --- README.md | 80 ++++++++----------------------------------------------- run | 18 +++++-------- 2 files changed, 18 insertions(+), 80 deletions(-) diff --git a/README.md b/README.md index 4cd6639..20ef80e 100644 --- a/README.md +++ b/README.md @@ -1,74 +1,16 @@ -# OntoPortal docker development environment - -This repo contains docker compose and [DIP](https://github.com/bibendi/dip) configuration for running and -developing OntoPortal stack in 3 different ways: - -1. docker-compose.backend_only.yml contains just the backend services required for developing and running API on your local system. To take advantage of that you would need to run `docker compose -f docker-compose.backend_only.yml up -d` -2. Run API/ncbo_cron and depenencies in docker using DIP -3. Run API/ncbo_cron in docker with mounted source code volumes from your local system. This will allow editing files on your local machine while running code inside docker container. - - -```sh -# clone this repo -git clone https://github.com/bioportal/ontoportal_docker.git - -# clone ontologies_linked_data repo which is needed for creating solr configsets -git clone https://github.com/bioportal/ontologies_linked_data.git - -# generate configsets: -cd ontologies_linked_data -./test/solr/generate_ncbo_configsets.sh - -cd ../ontoportal_docker - -# install DIP -bundle install - -# export bioportal APIKEY which is needed for importing ontologies from bioportal when provisioning -cp .env.sample .env - -# run provisioning via dip -dip provision +# OntoPortal docker environment +See help ``` - -`dip provision` will: -- clear existing volumes, i.e removing all data -- create 4store kb -- run ncbo_cron rake tasks for creating admin user acccount -- run bin/ncbo_ontology_import script on ncbo_cron container to import STY - ontology from bioportal -- run ontology pull script -- process STY ontology - -# DIP commands: - -list available dip commands - -`dip ls` - -starts api which you would be able to access on http://localhost:9393 - -`dip api rackup` - -run ncbo_cron scripts: - -`dip cron bundle exe bin/