Skip to content

ben-cutler-datarobot/custom-apps-aiohttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a basic example of an app which uses aiohttp. The key code of note is:

  1. It runs all the API routes off of the SCRIPT_PATH environment variable which is supplied by the custom apps runtime. This is required because datarobot performs liveness checks to the root path.
  2. It routes calls from / to //. This is important because the liveness checks get sent to the root (eg: /custom_applications/ and we need to redirect that to /custom_applications// so the result is not a 404.
  3. It runs on port 8080

To get this running on custom apps, simply run docker build . -t my-aiohttp-custom-app to build the image, then run docker save my-aiohttp-custom-app -o myAiohttpApp.tgz to save the app to a tgz. That tgz can then be uploaded on the applications page.

About

Example Custom app using aiohttp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published