Skip to main content

CI Coverage PyPI License

deploy_tools

A set of tools used for deploying applications to a shared filesystem.

This is used for deploying containerised desktop applications to many users who have access to a shared filesystem. We use the Environment Modules package to make these applications available to the end user.

What Where
Source https://github.com/DiamondLightSource/deploy-tools
PyPI pip install dls-deploy-tools
Docker docker run ghcr.io/diamondlightsource/deploy-tools:latest
Documentation https://diamondlightsource.github.io/deploy-tools
Releases https://github.com/DiamondLightSource/deploy-tools/releases

The demo_configuration folder in this repository can be passed as the config_folder to the deploy-tools commands. The deployment_root needs to be a writeable location for all files to get deployed under.

These commands act on a shared deployment area, so we recommend running them from a CI pipeline gated by change review rather than by hand. Running them manually against the demo configuration, as below, is the quickest way to see what each does — the documentation has a hands-on tutorial and a guide to driving them from CI.

The examples below use the deploy-tools console script; python -m deploy_tools is equivalent if you prefer to invoke the module directly.

deployment_root = /path/to/deployment/root
config_folder = /path/to/config/folder

# Validate the deployment configuration files, also ensuring that the required updates
# are compatible with the previous deployments.
deploy-tools validate $deployment_root $config_folder

# Synchronise the deployment area with the configuration files. This will first run
# validation as part of determining the required changes
deploy-tools sync $deployment_root $config_folder

# Compare the current deployment snapshot against what is actually deployed in the
# deployment area. Run this before a deploy to confirm a healthy state.
deploy-tools compare $deployment_root

Generating the JSON schema files with deploy-tools schema <folder> is a separate, occasional task: it produces the schemas that editors use to validate configuration files, and is not part of a deployment. See the schema reference in the documentation.

See https://diamondlightsource.github.io/deploy-tools for more detailed documentation.

Metadata

Release files for dls-deploy-tools 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dls-deploy-tools 0.8.0
File Size Uploaded
dls_deploy_tools-0.8.0.tar.gz 203.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dls-deploy-tools 0.8.0
File Interpreter ABI Platform
dls_deploy_tools-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 264.6 kB

Release files / dls_deploy_tools-0.8.0.tar.gz

Download URL dls_deploy_tools-0.8.0.tar.gz
Size 203.8 kB
Tags Source
SHA-256 checksum
How to use checksums
12b921ac001d03f9cbad453bd1cc1034790037d0dc5fa2976c1a51bb0dadfc24
BLAKE2b-256 checksum
How to use checksums
cbcd1a2e592d325027cf9388be5df475bb0a6dff0f6c6f0c676374d5833da030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dls_deploy_tools-0.8.0-py3-none-any.whl

Download URL dls_deploy_tools-0.8.0-py3-none-any.whl
Size 60.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abc768c6b36c8c750dc1678bca78f6e601417571466502a961e6680d5477f907
BLAKE2b-256 checksum
How to use checksums
a54ea30bbc3c1c0cbbdf7a6957e1e1c8a4623528689522ae246125febcd42f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.1

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page