Skip to main content

The 3Di simulation container hub

Project description

container-hub

https://img.shields.io/pypi/v/container-hub.svg https://github.com/nens/container-hub/workflows/Python%20application/badge.svg?branch=master Updates

Container Hub

Spiritual successor of the machine manager. Main purpose is starting and stopping threedi simulation containers.

Usage

The container hub solely exposes two functions, up() and down() in backend classes. A backend class can be imported via the get_backend` helper function

from container_hub import get_backend backend = get_backend(settings) # settings is either simple-settings/Django settings or similar object.

Based on provided settings this gives you a carrier backend, either from the container_hub.carriers.marathon.backend or the container_hub.carriers.docker.backend.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.7 (2022-12-07)

  • Need to use V1DeleteOptions from openapi

0.1.6 (2022-09-19)

  • Automically remove pod under job.

  • Add the option of opening a debug port for the docker backend.

0.1.5 (2022-06-24)

  • Added imagePullSecrets, NodeAffinity and Resources options for Kubernetes simulation Job.

0.1.4 (2022-06-17)

  • Kubernetes backend container_list() needs to return simulation-id’s only.

0.1.3 (2022-06-15)

  • Changes in Kubernetes backend after testing.

0.1.2 (2022-05-09)

  • Added kubernetes support.

0.1.1 (2022-04-15)

  • Major refactor: carriers now are available via backend modules.

0.0.19 (2022-04-13)

  • Don’t pick SENTRY settings up from simple-settings. Should be given via up function envs parameter.

0.0.18 (2021-12-21)

  • Updated pypi token.

0.0.17 (2021-12-21)

  • Dynamically set container “LOG_LEVEL” via env parameter.

0.0.16 (2021-09-03)

  • Disable model mount when gridadmin_download_url and tables_download_url parameters are both given.

0.0.15 (2021-07-27)

  • Added options for passing gridadmin_download_url and tables_download_url parameters to the up() function

0.0.14 (2021-06-09)

  • Removed threedi-api-client as requirement.

  • Added a pypi release pipeline to github action workflow.

0.0.13 (2020-10-13)

  • Added the ‘clean_up_files’ arg to ‘up()’ function.

0.0.12 (2020-08-11)

  • Bumped docker version

0.0.11 (2020-05-15)

  • Added the ‘max_rate’ arg to up() function.

0.0.10 (2020-04-20)

  • All MarathonApp args must be strings.

0.0.9 (2020-04-20)

  • Session memory argument mem must be string for marathon strange enough.

0.0.8 (2020-04-16)

  • Added the pause_timeout arg to the up() function.

0.0.7 (2020-02-19)

  • Strip the ‘simulation-’ prefix when querying for the docker container_list to ensure uniformity between all carriers.

0.0.6 (2020-01-27)

  • Use a generic envs arg that will set the container env variables.

  • Added args sim_uid, sim_ref_datetime, end_time, duration and start_mode to container CMD.

0.0.5 (2020-01-17)

  • Use generic marathon constraints settings.

0.0.4 (2019-12-19)

  • Added support for host and ip lookups.

0.0.3 (2019-12-19)

  • Catch also ImportErrors for simple settings.

0.0.2 (2019-12-19)

  • Rename env var only_initialize to scheduler_action.

0.0.1 (2019-12-19)

  • First release on PyPI.

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

container_hub-0.1.7.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

container_hub-0.1.7-py2.py3-none-any.whl (18.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file container_hub-0.1.7.tar.gz.

File metadata

  • Download URL: container_hub-0.1.7.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for container_hub-0.1.7.tar.gz
Algorithm Hash digest
SHA256 7ec4f0ab033cd70cb38892fedcb8946385b39f2a5cc71052a679ec6b1329e820
MD5 45c01af015804656d980bd77c9fd0bb2
BLAKE2b-256 80d94cf866e39774d9e55d123dbc06189a2800449070e49f84e7d17e5c23300a

See more details on using hashes here.

File details

Details for the file container_hub-0.1.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for container_hub-0.1.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1815c315853bced14ecd254b7a26f3150f8c1cb6588d962cb4723459a1f6ee14
MD5 ce958f506980698a1ccdaba614b05226
BLAKE2b-256 207ea07fd2437b546660f9fb8812d52cf5e64ef3d38e6b3d6d40f3c268b88afd

See more details on using hashes here.

Supported by

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