Skip to content

Instantly share code, notes, and snippets.

@tuxfight3r
Last active February 4, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxfight3r/8a0a64408793dc7c4c1e7bf065ba98aa to your computer and use it in GitHub Desktop.
Save tuxfight3r/8a0a64408793dc7c4c1e7bf065ba98aa to your computer and use it in GitHub Desktop.
amory cli dinghyfile render notes

dinghyfile

#$ cat dinghyfile 
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
      "limitConcurrent": true,
      "name": "Made By Armory Pipeline Templates",
      "stages": [
        {{ module "wait.stage.module" }} 
      ],
      "triggers": []
    }
  ]
}

Dinghy Modules dir

#$ ls modules
wait.stage.module

#$ cat modules/wait.stage.module 
{
    "name": "Wait",
    "refId": "1",
    "requisiteStageRefIds": [],
    "type": "wait",
    "waitTime": 120
}

Render Dinghy Modules using armory cli

$ ./arm dinghy render dinghyfile --modules modules | jq .
INFO[0000] Output:                                      
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
      "limitConcurrent": true,
      "name": "Made By Armory Pipeline Templates",
      "stages": [
        {
          "name": "Wait",
          "refId": "1",
          "requisiteStageRefIds": [],
          "type": "wait",
          "waitTime": 120
        }
      ],
      "triggers": []
    }
  ]
}

Armory CLI built on windows 7 machine

Download Link: https://github.com/tuxfight3r/arm/releases

Virus Scan Report: http://r.virscan.org/language/en/report/b2a07a0fb5cb28829e329f802bc12646

Mohan Balasundaram@WIN-P8SFQ79BH3A MINGW64 ~/Desktop/dinghy
$ ./arm.exe dinghy render dinghyfile --modules modules/
time="2020-02-04T21:31:24Z" level=info msg="Output:\n"
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
      "limitConcurrent": true,
      "name": "Made By Armory Pipeline Templates",
      "stages": [
        {
    "name": "Wait",
    "refId": "1",
    "requisiteStageRefIds": [],
    "type": "wait",
    "waitTime": 120
}
      ],
      "triggers": []
    }
  ]
}


Mohan Balasundaram@WIN-P8SFQ79BH3A MINGW64 ~/Desktop/dinghy
$ ./arm.exe dinghy render dinghyfile --modules modules/ | ./jq .
time="2020-02-04T21:31:37Z" level=info msg="Output:\n"
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
      "limitConcurrent": true,
      "name": "Made By Armory Pipeline Templates",
      "stages": [
        {
          "name": "Wait",
          "refId": "1",
          "requisiteStageRefIds": [],
          "type": "wait",
          "waitTime": 120
        }
      ],
      "triggers": []
    }
  ]
}

Mohan Balasundaram@WIN-P8SFQ79BH3A MINGW64 ~/Desktop/dinghy
$ cat dinghyfile
{
  "application": "yourspinnakerapplicationname",
  "pipelines": [
    {
      "application": "yourspinnakerapplicationname",
      "keepWaitingPipelines": false,
      "limitConcurrent": true,
      "name": "Made By Armory Pipeline Templates",
      "stages": [
        {{ module "wait.stage.module" }}
      ],
      "triggers": []
    }
  ]
}

Mohan Balasundaram@WIN-P8SFQ79BH3A MINGW64 ~/Desktop/dinghy
$ ls
arm.exe*  dinghyfile  jq.exe*  modules/

Mohan Balasundaram@WIN-P8SFQ79BH3A MINGW64 ~/Desktop/dinghy
$ ./arm.exe
The Armory Platform CLI

Usage:
  arm [command]

Available Commands:
  dinghy      Run dinghy subcommands
  help        Help about any command
  version     Prints version information

Flags:
  -h, --help              help for arm
  -l, --loglevel string   log level (default "info")

Use "arm [command] --help" for more information about a command.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment