Giter Site home page Giter Site logo

central's Introduction

SDMC


Central Instance Registry.


Installation

Install mongodb. - debian installation

Install Nginx, uwsgi, uwsgi-plugin-python, git and python stuff.

sudo apt-get install \
    nginx \
    build-essential python python-dev python-virtualenv \
    uwsgi uwsgi-plugin-python \
    git

Create and activated virtualenv.

sudo chmod ugo+rw /var/local/
virtualenv /var/local/sdmc_env
source /var/local/sdmc_env/bin/activate

Clone sdmc git repository.

git clone [email protected]:scitran/internims.git /var/local/sdmc

Install requirements.

pip install -r requirements.txt

Create a logging directory, and make it writeable from webserver users (www-data?).

mkdir -p /var/local/sdmc/log
chown :www-data /var/local/sdmc/log
chmod g+w /var/local/sdmc/log

Copy and edit configuration files. The nginx configuration will need to know the location of the server certificate and server key. The uwsgi configuration will need to know the location of the pem file. Certificate file should contain certificate only, server.cert. Key file should contain key only, server.key. Pem file should contain private key, then certificate, and intermediates. See instructions for creating a pem file for more information.

cp production.ini.sample production.ini
cp nginx.conf.sample nginx.conf
vim production.ini nginx.conf

Configure nginx.

ln -s /var/local/sdmc/nginx.conf \
    /etc/nginx/sites-available/sdmc
ln -s /etc/nginx/sites-available/sdmc \
    /etc/nginx/sites-enabled/sdmc

Configure uwsgi.

ln -s /var/local/sdmc/production.ini \
    /etc/uwsgi/apps-available/sdmc.ini
ln -s /etc/uwsgi/apps-available/sdmc.ini \
    /etc/uwsgi/apps-enabled/sdmc.ini

Fire it up.

sudo service nginx restart
sudo service mongodb restart
sudo service uwsgi restart sdmc

central's People

Contributors

kevlarkevin avatar

Stargazers

Andrew J. Gerber, MD, PhD avatar

Watchers

James Cloos avatar Andy Nemzek avatar Erik Anderson avatar  avatar Brian Wandell avatar Michael Perry avatar Joe Schneider avatar Ryan Chamberlain avatar Vincent Sitzmann avatar  avatar Dan Puccetti avatar

Forkers

19coders

central's Issues

include remote users with group access

fix to support issue cni/nimsweb#66.

Internimsclient will also include remote users who have access on experiments (projects), collections (virtual projects), and groups.

send site id in url as 'site', instead of 'iid'

Internimsclient will send its site identification as 'site' (instead of 'iid') and its site human-readable name as 'name' in the POST payload.

Internims central will include the human readable site names when reporting about remote sites.

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.