Duke-GCB/bespin-webapp-docker

Name: bespin-webapp-docker

Owner: Duke Center for Genomic and Computational Biology

Description: Dockerfile and docker-compose script for running bespin-api and bespin-ui together

Created: 2017-03-01 20:30:18.0

Updated: 2017-11-15 14:23:56.0

Pushed: 2017-11-15 14:23:21.0

Homepage: null

Size: 26

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bespin-webapp-docker

Archived

This repo is no longer active. Apache+wsgi build has moved into bespin-api.

Usage

The Dockerfile contained in web is used to build an image containing the Django (backend), hosted by Apache httpd. The Ember frontend application is not included in the image, but should be downloaded from its release and mounted at /srv/ui/

It also includes a docker-compose file that can deploy the image and its backing Postgres database

  1. Create files bespin-database.env and bespin-web.env, based on the .sample files.
  2. Create self signed certificates:
    r certs
    erts
    ssl req -x509 -newkey rsa:4096 -keyout privkey.pem -out cacert.pem -days 365 -nodes
    .
    
  3. Start the application with docker-compose up -d
  4. Create a django superuser with docker-compose run bespin-web create-superuser.sh
  5. Create a lando user (and token) with docker-compose run bespin-web create-lando-user.sh
  6. Load sample data with docker-compose run bespin-web load-sample-data.sh
  7. Visit http://localhost
  8. Stop the service with docker-compose down

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.