ontoportal / ontoportal_docker

Scripts for running and developing OntoPortal with docker
2 stars 1 forks source link

Feature: Add a run script for building an ontologies_api server #3

Closed syphax-bouazzouni closed 10 months ago

syphax-bouazzouni commented 1 year ago

Context

This repository at first started as a way to easily do an ontoportal development environment using Docker for the API. Since then in each of our projects we developed, Dockerfiles, docker-compose, and dip files, making it possible to run an environment development for each directly in the working repository.

So maintaining a separate repository for docker development makes no more sense. This PR is the first push to transform this repository from OntoPortal docker development environment to OntoPortal docker appliance

Requirements

How it works

See Help using run --help

➜  ontoportal_docker git:(main) run --help
Usage: run -k API_KEY -u API_URL -s STARTER_ONTOLOGY
    -k, --api-key API_KEY            Your Ontoportal API key
    -u, --api-url API_URL            Ontoportal API URL (default: https://data.bioontology.org)
    -r DOCKER_HUB_REPOSITORY,        Ontoportal API image repository (default: bioportal)
        --docker-hub-repository
    -t, --image-tag DOCKER_IMAGE_TAG Ontoportal API image version (default: latest)
    -s [STARTER_ONTOLOGY],           Starter ontology code (default: STY)
        --starter-ontology
    -h, --help                       Show this message

Run an API using Bioportal code

run -k <api_key> -r bioportal

Run an API using Agroportal code

run -k <api_key> -r agroportal -t stage

Changes

syphax-bouazzouni commented 10 months ago

Moved to https://github.com/ontoportal/ontoportal_docker/pull/6