Copy files in an Azure Storage and store in a file a generated URL with a Shared Access Token (SAS).
The first target of this project is to build an image container to be used in the context of an Argo Workflow in Kubernetes.
The file containing the URL can be setup in the Argo Workflow specification as an output.
- CSM_DATA_ABSOLUTE_PATH: the absolute path of files to publish to the storage
- AZURE_STORAGE_CONNECTION_STRING: the Azure Storage Connection String (can be found under the Azure Storage overview screen)
- AZURE_STORAGE_CONTAINER_BLOB_PREFIX: The path to the files to write in the form: container/path
- AZURE_STORAGE_SAS_TTL: The time to live for the generated SAS token (default: 15mn)
- AZURE_STORAGE_SAS_IP_FILTER: The IP filter for the generated SAS token (default: none)
- CSM_OUTPUT_ZIP_FILE: The name of the zip file in case of multiple files in the data folder (default: csm-download-data.zip)
- CSM_OUT_SAS_FILE: The name of the file containing the download URL with the SAS token (default: /var/csmoutput/download_url)
- CSM_LOG_LEVEL: The logger level (default: info)
The URL with Shared Access Signature will be stored in CSM_OUT_SAS_FILE (default: /var/csmoutput/download_url)
npm install
npm run local
You can use this command to run eslint:
npm run lint
You can use this command to run eslint with automatic fixing:
npm run lintfix
npm run build
build:
REGISTRY=YOUR_REGISTRY TAG=YOUR_TAG npm run build
push:
REGISTRY=YOUR_REGISTRY TAG=YOUR_TAG npm run publish
2 workflows are setup:
- linter
- packaging