Skip to content

ontoportal-lirmm/ontoportal-docker-swarm

 
 

Repository files navigation

Deploy OntoPortal API and UI in a server

image

Pre-requisites

* Docker
* Ram > 8GB
* Space > 5GB

Steps

Clone the repo

git clone https://github.com/syphax-bouazzouni/ontoportal-swarm-docker.git
cd ontoportal-swarm-docker

Init Docker Swarm

docker swarm init

Create a shared network for the API and UI

docker network create --driver=overlay --attachable --opt encrypted shared-network

Create an .env file and edit it with your own values

cp .env.sample .env

Deploy the API stack

docker stack deploy -c api.compose.yml ontoportal-api

Deploy the UI stack

docker stack deploy -c ui.compose.yml ontoportal-ui

(OPTIONAL) Deploy Swarmpit to help manage and monitor the swarm cluster

 docker run -it --rm \                              
  --name swarmpit-installer \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  swarmpit/install:1.9

Provisioning admin user and importing STY

# Create the admin user with a random password
docker exec -it $(docker ps -q -f name=ontoportal-api_ncbo_cron) bash -c './provision/create_admin_user.sh'
# Import and parse the STY ontology from the NCBO BioPortal
docker exec -it $(docker ps -q -f name=ontoportal-api_ncbo_cron) bash -c './provision/create_parse_sty.sh'

About

Run OntoPortal API and UI using docker sawrm in a linux server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%