Coder Social home page Coder Social logo

funcx-web-service's Introduction

FuncX Web Service

This is the client interface to FuncX

How to build docker image

First build the docker image

docker build -t funcx_web_service:develop .

How to Test With Kubernetes

You can create all of the required infrstructure for funcX web service and run it on your host for debugging.

  1. Deploy the helm chart
  2. Set up your local app config with the following values:
    DB_NAME = "public"
    DB_USER = "funcx"
    DB_PASSWORD = "leftfoot1"
    DB_HOST = "localhost"
    
    REDIS_PORT = 6379
    REDIS_HOST = "localhost"
  3. Forward the postgres pod ports to your host. This command will not return so start it in another shell.
    kubectl port-forward funcx-postgresql-0 5432:5432
  4. Forward the Redis master pod ports to your host. This command will not return so start it in another shell.
    kubectl port-forward funcx-redis-master-0 6379:6379
  5. Launch the flask app:
    APP_CONFIG_FILE=../conf/app.conf PYTHONPATH=. python funcx_web_service/application.py
  6. Obtain a JWT to authenticate requests to the REST server
     python integration_tests/get_valid_token.py
  7. Use the postman tests in integration_tests/funcX.postman_collection.json with the host variable set to localhost:5000 and the access_token set to your JWT.

funcx-web-service's People

Contributors

ryanchard avatar yadudoc avatar theodore-ando avatar avresl avatar sirosen avatar knagaitsev avatar bengalewsky avatar leeteresamaria avatar zhuozhaoli avatar tskluzac avatar joshbryan-globus avatar xjc-git avatar tginsbu avatar yongyanrao avatar benclifford avatar dependabot[bot] 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.