This is the client interface to FuncX
First build the docker image
docker build -t funcx_web_service:develop .
You can create all of the required infrstructure for funcX web service and run it on your host for debugging.
- Deploy the helm chart
- 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"
- 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
- 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
- Launch the flask app:
APP_CONFIG_FILE=../conf/app.conf PYTHONPATH=. python funcx_web_service/application.py
- Obtain a JWT to authenticate requests to the REST server
python integration_tests/get_valid_token.py
- Use the postman tests in
integration_tests/funcX.postman_collection.json
with thehost
variable set tolocalhost:5000
and theaccess_token
set to your JWT.