Giter VIP home page Giter VIP logo

azure-storage-publish's Introduction

Cosmo Tech Azure Storage Publish

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.

Env vars

Mandatory

  • 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

Options

  • 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)

Shared Access Signature

The URL with Shared Access Signature will be stored in CSM_OUT_SAS_FILE (default: /var/csmoutput/download_url)

Local run

npm install
npm run local

linter

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

Docker local build

npm run build

Docker registry build & publish

build:

REGISTRY=YOUR_REGISTRY TAG=YOUR_TAG npm run build

push:

REGISTRY=YOUR_REGISTRY TAG=YOUR_TAG npm run publish

Github workflows

2 workflows are setup:

  • linter
  • packaging

azure-storage-publish's People

Contributors

dependabot[bot] avatar vcarluer avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.