Skip to content

AmpelProject/Ampel-argo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


AMPEL-argo

Translates Ampel analysis schemas into Argo Workflows templates.

Usage

(for the deployment at https://ampel-dev.ia.zeuthen.desy.de)

  1. Obtain an API token from the Ampel dashboard
  2. Validate an Ampel jobfile with
curl -k -X 'POST' \
  'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1/lint' \
  -H 'accept: application/json'
  -H "Authorization: Bearer $AMPEL_TOKEN" \
  -H 'Content-Type: application/json' \
  -d "$(yq your_jobfile.yml -o json)" \
  | yq . -P

where AMPEL_TOKEN is your API token from step 1 3. Create an Argo workflow template from your jobfile (skipping validation)

curl -k -X 'POST' \
  'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1?validate=0' \
  -H 'accept: application/json'
  -H "Authorization: Bearer $AMPEL_TOKEN" \
  -H 'Content-Type: application/json' \
  -d "$(yq your_jobfile.yml -o json)" \
  | yq . -P
  1. Submit a job from your template using the Argo UI (alternatively, the Argo CLI)

About

Argo Workflows translation layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages