Skip to content

Instantly share code, notes, and snippets.

@tuxfight3r

tuxfight3r/notes.md

Last active Feb 4, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.