Skip to main content

Hydra Launcher for DHCore

Project description

Hydra DigitalHub Launcher

license GitHub Release Status

DigitalHub Launcher for Hydra apps uses the DigitalHub platform to launch single tasks. It is expected that the task function is defined as a corresponding hydra runtime function. The launcher spawns the execution of the task functions either locally or within the platform, in a batch of parallel jobs.

Development

See CONTRIBUTING for contribution instructions.

Build container images

To build the container image, you need to:

Clone the repository and navigate to the digitalhub-serverless directory. The build process consists of three main steps:

  • Build the processor image (modify the Makefile file to change the SERVERLESS_DOCKER_REPO and SERVERLESS_CACHE_REPO variable to your Docker repository, e.g., docker.io/yourusername)
make processor
  • Build the base image (chooses the Python 3 version from 9, 10, 11 or 12)
docker build -t python-base-3-<ver> -f ./Dockerfile/Dockerfile-base-3-<ver> .
  • Build the onbuild image (Modify the Dockerfile/Dockerfile-onbuild-3-<ver> file to change the SERVERLESS_DOCKER_REP variable to your Docker repository, e.g., docker.io/yourusername)
docker build -t python-onbuild-3-<ver> -f ./Dockerfile/Dockerfile-onbuild-3-<ver> .
  • Build the runtime image (Modify the Dockerfile/Dockerfile-handler-3-<ver> file to change the NUCLIO_BASE_IMAGE and NUCLIO_ONBUILD_IMAGE variables that point to the base and onbuild image you just built, e.g., python-onbuild-3-<ver>)
docker build -t python-runtime-3-<ver> -f ./Dockerfile/Dockerfile-handler-3-<ver> --build-arg GIT_TAG=<some-tag> .

Launch container

To run the container, use the following command:

docker run -e PROJECT_NAME=<project-name> -e RUN_ID=<run-id> python-runtime-3-<ver>

Required environment variables:

  • PROJECT: The name of the project
  • RUN_ID: The ID of the run to execute

Security Policy

The current release is the supported version. Security fixes are released together with all other fixes in each new release.

If you discover a security vulnerability in this project, please do not open a public issue.

Instead, report it privately by emailing us at digitalhub@fbk.eu. Include as much detail as possible to help us understand and address the issue quickly and responsibly.

Contributing

To report a bug or request a feature, please first check the existing issues to avoid duplicates. If none exist, open a new issue with a clear title and a detailed description, including any steps to reproduce if it's a bug.

To contribute code, start by forking the repository. Clone your fork locally and create a new branch for your changes. Make sure your commits follow the Conventional Commits v1.0 specification to keep history readable and consistent.

Once your changes are ready, push your branch to your fork and open a pull request against the main branch. Be sure to include a summary of what you changed and why. If your pull request addresses an issue, mention it in the description (e.g., “Closes #123”).

Please note that new contributors may be asked to sign a Contributor License Agreement (CLA) before their pull requests can be merged. This helps us ensure compliance with open source licensing standards.

We appreciate contributions and help in improving the project!

Authors

This project is developed and maintained by DSLab – Fondazione Bruno Kessler, with contributions from the open source community. A complete list of contributors is available in the project’s commit history and pull requests.

For questions or inquiries, please contact: digitalhub@fbk.eu

Copyright and license

Copyright © 2025 DSLab – Fondazione Bruno Kessler and individual contributors.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydra_dh_launcher-0.16.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydra_dh_launcher-0.16.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file hydra_dh_launcher-0.16.1.tar.gz.

File metadata

  • Download URL: hydra_dh_launcher-0.16.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hydra_dh_launcher-0.16.1.tar.gz
Algorithm Hash digest
SHA256 d746fa5143552bd19240c68d5107a52ae16ebb8693c5e354d7340002c65ff004
MD5 605808d651138f3a719503f119d53a52
BLAKE2b-256 0b09b36a5efa47a603f01fa79b0d7ada7481ac7ee34f5f96ba989a06ac7414a3

See more details on using hashes here.

File details

Details for the file hydra_dh_launcher-0.16.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hydra_dh_launcher-0.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f95ecb30d7656165c9cf0b707e008ed3fbadf3888f792897dccf094ecc31610
MD5 ff02be88e44817feac7deb127b70fc8d
BLAKE2b-256 df1f3da97f65a27156afd85bcc94eca24a97464bd6b48968cbb29c0cdf099790

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page