GithubHelp home page GithubHelp logo

biopragmatics / biolookup-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 30 KB

๐Ÿ‹ A dockerfile for the frontend to the Biolookup Service

License: MIT License

Dockerfile 11.00% Shell 89.00%
biopragmatics docker

biolookup-docker's Introduction

biolookup-docker

This repository uses Docker to containerize the Biolookup Service web application, built on top of PyOBO. A public instance maintained by the INDRA Lab is served at http://biolookup.io.

Running the Biolookup Service

Before running the Biolookup Service, you'll need to prepare either a local database or get a connection string to a remote database. See here for instructions on loading the database.

๐ŸŒ Running Locally from Source

A dockerfile for pulling the latest Biolookup service and running its web app. Run with:

  1. Make an .env file with BIOLOOKUP_SQLALCHEMY_URI. If you're on Mac and trying to connect to localhost, use host.docker.internal instead (ref) .

  2. Run the following code:

    $ git clone https://github.com/biopragmatics/biolookup-docker.git
    $ cd biolookup-docker
    $ docker-compose up

    In case you're using a non-standard named docker-compose.yml, you can pass the -f flag to give the name of the file like in docker-compose -f biolookup-compose.yml up --detach.

๐Ÿ—๏ธ Building and Running Locally from Docker

After cloning, the image can be built locally with:

$ docker build -t biolookup:latest .
$ docker run --name biolookup -d -p 8765:8765 --env-file biolookup.env biolookup:latest

Where -d means "detached" mode. You'll need an environment file the same as described above. Alternatively, environment variables can be passed with --env (or -e for short) like in:

$ docker build -t biolookup:latest .
$ docker run --name biolookup -d -p 8765:8765 --env BIOLOOKUP_SQLALCHEMY_URI=foo biolookup:latest

๐Ÿ‹ Running Locally from Docker

The image is hosted on Docker Hub under biopragmatics/biolookup:latest and can be run with:

$ docker run -id --name biolookup -p 8765:8765 --env-file biolookup.env biopragmatics/biolookup:latest

The default port run by the app is 8765, but the -p option lets you map it to another port. You'll need an environment file the same as described above. Alternatively, environment variables can be passed with --env (or -e for short) like in:

$ docker run -id --name biolookup -p 8765:8765 --env BIOLOOKUP_SQLALCHEMY_URI=foo biopragmatics/biolookup:latest

๐Ÿ•ต๏ธ Logging

The logs can be shown with

$ docker exec $(docker ps --filter "name=biolookup" -q) /usr/bin/tail -f /root/.data/pyobo/biolookup/log.txt

๐Ÿ“ก Pushing to Docker Hub

This repository is set up with a GitHub Action to build the dockerfile and push to Docker Hub.

๐ŸŽ Support

The Biolookup Service was developed by the INDRA Lab, a part of the Laboratory of Systems Pharmacology and the Harvard Program in Therapeutic Science (HiTS) at Harvard Medical School.

๐Ÿ’ฐ Funding

The development of the Biolookup Service is funded by the DARPA Automating Scientific Knowledge Extraction (ASKE) program under award HR00111990009.

biolookup-docker's People

Contributors

cthoyt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.