Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Cookiecutter template to make python-based DAFNI model creation nice and simple

License

Notifications You must be signed in to change notification settings

TColl/dafni-python-model-template

Repository files navigation

DAFNI python model template

cookiecutter template to wrap up your python scripts/packages for easy deployment as shiny new DAFNI models.

This template includes:

  • standard layout reflecting volume mounts on DAFNI
  • a simple, slim python dockerfile to install your dependencies and run your model script
  • bash script to simulate DAFNI runs in docker/podman on your local machine
  • github workflow to build and upload any new releases (marked with a tag starting in v)

Just add a model and some test data and you're good to go!

Quick start

Requires cookiecutter to be installed - see the link above.

cookiecutter https://github.com/TColl/dafni-python-model-template

You'll then be prompted to provide your details and model information (see cookiecutter.json for more information on what's required), which will be used to generate a new subdirectory with your new image name.

Add your python code under the src directory, tweak the dockerfile and model definition file however you see fit, use the provided quick_start file to carry out local testing, then use the makefile to manually build, export and zip your final image ready for upload to DAFNI, or let github actions do the hard work for you

About

Cookiecutter template to make python-based DAFNI model creation nice and simple

Resources

License

Stars

Watchers

Forks

Releases

No releases published