Giter Club home page Giter Club logo

bracelet-lite's Introduction

BRACELET-Lite

Lite version of BRACELET, connecting scientific instruments running on old operating systems to 4CeeD cloud.

Based on the following open-source projects:

Prerequisites

  • Docker version 1.10.0+
  • Docker Compose version 1.6.0+
  • A running instance of cloud-based 4CeeD
  • A NGINX reverse proxy running on BRACELET edge server

Configuration

Configure 4CeeD Uploader

Configure 4ceeduploader service in docker-compose.yml file with information of 4CeeD instance:

  • UPLOADER_HOME: Home address of this uploader
  • CURATOR_HOME: Alias address of the cloud-based 4CeeD instance that uploader will communicate with on behalf of the instruments. This address is set as UPLOADER_HOME/curatorhome/.
  • CURATOR_API_URL: Alias address of the cloud-based 4CeeD APIs' base URL that uploader will communicate with on behalf of the instruments. This address is set as UPLOADER_HOME/curatorapi/.

Configure NGINX reverse proxy

Edit NGINX configuration file (i.e., often located at /etc/nginx/nginx.conf), and add the following reverse proxy configuration to the http server block:

location / {
    proxy_pass http://127.0.0.1:8000/;
}

location /curatorhome/ {
    proxy_pass http://[CURATOR_IP_ADDR];
}

location /curatorapi/ {
    proxy_pass http://[CURATOR_IP_ADDR]/api/;
}

In the above configuration, the first location block configures reverse proxy for accessing 4CeeD Uploader on BRACELET server, the second location block configures reverse proxy for accessing cloud-based 4CeeD instance via BRACELET, and the third location block configures reverse proxy for accessing APIs on cloud-based 4CeeD via BRACELET.

Run the following command for the new configurations to take effect:

sudo nginx -s reload

Configure Bro

Configure bro service in docker-compose.yml to listen to different network interface (default is eth0).

Deploy

To run BRACELET-Lite:

docker-compose up

Or, to run BRACELET-Lite in detached mode:

docker-compose up -d

To stop BRACELET-Lite, simply press Ctrl+C if running in foreground mode, or run the following command if running in detached mode:

docker-compose down

After deploying BRACELET-Lite, 4CeeD uploader can be accessed at the address specify in UPLOADER_HOME.

Next Steps

bracelet-lite's People

Contributors

pvnguyen avatar

Watchers

James Cloos 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.