Coder Social home page Coder Social logo

awe_service's Introduction

awe_service

Enables deployment of AWE server and clients within the kbase release environment.

The following are instructions on how to deploy the AWE service in KBase from launching a fresh KBase instance to starting the service...

  • Create a security group for your AWE server (this isn't required with the test ports in the Makefile but makes it convenient if you want to change those ports later)

  • Using this security group and your key, launch a KBase instance

  • Get the code:
    sudo -s
    cd /kb
    git clone [email protected]:dev_container.git
    cd dev_container/modules
    git clone [email protected]:awe_service.git
    cd awe_service

  • Edit the Makefile if you would like to configure the IP and port numbers for your AWE server.

  • Create a mongo data directory on the mounted drive and symbolic link to point to it:
    (NOTE: mongodb is only required if you are deploying the AWE server, not the client)
    cd /mnt
    mkdir db
    cd /
    mkdir data
    cd data/
    ln -s /mnt/db .

  • Start mongod (preferably in a screen session):
    cd /kb/dev_container
    ./bootstrap /kb/runtime
    source user-env.sh
    mongod

(NOTE: mongod needs a few minutes to start. Once you can run "mongo" from the command line and connect to mongo db, then proceed with deploying AWE)

  • Deploy AWE:
    cd /kb/dev_container
    ./bootstrap /kb/runtime
    source user-env.sh
    make
    make deploy

  • Start/Stop AWE Server:
    /kb/deployment/services/awe_service/start_service
    /kb/deployment/services/awe_service/stop_service

  • After deployment has completed, if you've associated an IP with your instance you should be able to confirm that AWE is running by going to either url below (ports are defined in Makefile prior to deployment):
    site -> http://[AWE Server IP]:7079/
    api -> http://[AWE Server IP]:7080/

  • Start/Stop AWE Client:
    /kb/deployment/services/awe_service/start_aweclient
    /kb/deployment/services/awe_service/stop_aweclient
    (note: before start awe-client, make sure the fields in awe_client.cfg.tt have been configured with proper values by modifying Makefile.)

awe_service's People

Contributors

brettin avatar jaredbischof avatar wtangiit 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.