Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.09 KB

README.md

File metadata and controls

45 lines (33 loc) · 2.09 KB

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.

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

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

VSCode configuration has been added to perform the primary functions using defaults that reference locations in the VSCode dev container.

An additional 'Clean deployment' task has been provided to set up the deployment_root correctly. For the moment, this will output everything to a 'demo-output' folder.

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

# Generate the schema for configuration yaml files
python -m deploy_tools schema $schema_folder

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

# Synchronise the deployment area with the configuration files. This will first run
# validation
python -m deploy_tools sync $deployment_root $config_folder