armory-io / arm Goto Github PK
View Code? Open in Web Editor NEWOne of many Armory CLIs, collect them all
License: Apache License 2.0
One of many Armory CLIs, collect them all
License: Apache License 2.0
When using the pipelineID
function i'm getting the following error:
Error: template: dinghy-render:165:26: executing "dinghy-render" at <pipelineID "test123" "Bake">: error calling pipelineID: runtime error: invalid memory address or nil pointer dereference arm-cli-test=
ERRO[2020-06-17 10:24:53] Parsing dinghyfile failed: template: dinghy-render:165:26: executing "dinghy-render" at <pipelineID "test123" "Bake">: error calling pipelineID: runtime error: invalid memory address or nil pointer dereference
How i used it
"triggers": [
{
"application": "{{ var "application" }}",
"enabled": true,
"pipeline": "{{ pipelineID "test123" "Bake" }}",
"runAsUser": "[email protected]",
"status": [
"successful"
],
"type": "pipeline"
}
]
When running arm version
version number is missing
malachi@pulsar-work Downloads $ ./arm-2.1.1-linux-amd64 version
rainmaker (-)
As most of the corporate environment uses windows workstation it would be good to have a windows binary. we can download source and cross compile for windows but most of the corporate environments is behind proxy and its really hard to download all the dependency go packages.
I'm unable to build from source
malachi@pulsar arm-2.1.1 $ GOOS=linux go build -o arm_linux_amd64
go: github.com/armory-io/[email protected]: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/malachi/go/pkg/mod/cache/vcs/91972d041389a34289ac7228c88e01406095cb4c789d5958e54d250156fbf11c: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I presume because some of the vendor dependencies are private?
I am currently trying to pass a global variable named application_name
to the triggerApp
function. Arm cli gives me the following error-
ERRO[0000] Error parsing value {{var application}}: invalid character '{' looking for beginning of object key string
Just checked out the repo, no modifications. Both the dinghyfile_list_range and dinghyfile_dict_range examples fail. I'm running with the v2.1.1 binary.
$ arm-2.1.1-darwin-amd64 dinghy render ./examples/json/dinghyfile_list_range --modules ./examples/json/modules
INFO[2021-05-20 14:07:17] [Checking dinghyfile]
INFO[2021-05-20 14:07:17] [Parsing dinghyfile]
ERRO[2021-05-20 14:07:17] Failed to parse global vars:
[{
"application": "listrangeexample",
"pipelines": [
{
"name": "Loop Example",
"application": "listrangeexample",
"stages": [
{{ $listdev := list "10" "dev" }}
{{ $listqa := list "20" "qa" }}
{{ $myenvs := list $listdev $listqa }}
{{ $count := 1 }}
{{ range $myenvs }}
{{ module "stage.minimal.wait.module" "waitname" ( index . 1 ) "waitTime" ( index . 0 ) }}
{{ if ne $count (len $myenvs) }}
{{ $count = add $count 1 }}
,
{{ end }}
{{ end }}
]
}
]
}
]
ERRO[2021-05-20 14:07:17] Parsing dinghyfile failed: [invalid character '{' looking for beginning of object key string]
arm-2.1.1-darwin-amd64 dinghy render ./examples/json/dinghyfile_dict_range --modules ./examples/json/modules
INFO[2021-05-20 14:09:14] [Checking dinghyfile]
INFO[2021-05-20 14:09:14] [Parsing dinghyfile]
ERRO[2021-05-20 14:09:14] Failed to parse global vars:
[{
"application": "maprangeexample",
"pipelines": [
{
"name": "Loop Example",
"application": "maprangeexample",
"stages": [
{{ $dictdev := dict "waitTime" "10" "name" "dev" }}
{{ $dictqa := dict "waitTime" "20" "name" "qa" }}
{{ $myenvs := list $dictdev $dictqa }}
{{ $count := 1 }}
{{ range $myenvs }}
{{ module "stage.minimal.wait.module" "waitname" ( get . "name" ) "waitTime" ( get . "waitTime" ) }}
{{ if ne $count (len $myenvs) }}
{{ $count = add $count 1 }}
,
{{ end }}
{{ end }}
]
}
]
}]
ERRO[2021-05-20 14:09:14] Parsing dinghyfile failed: [invalid character '{' looking for beginning of object key string]
running go get
from within the working copy yields:
# cd .; git clone https://github.com/armory-io/dinghy /Users/me/.go/src/github.com/armory-io/dinghy
Cloning into '/Users/me/.go/src/github.com/armory-io/dinghy'...
remote: Repository not found.
fatal: repository 'https://github.com/armory-io/dinghy/' not found
package github.com/armory-io/dinghy/pkg/dinghyfile: exit status 128
package github.com/armory-io/dinghy/pkg/cache: cannot find package "github.com/armory-io/dinghy/pkg/cache" in any of:
/usr/local/opt/go/libexec/src/github.com/armory-io/dinghy/pkg/cache (from $GOROOT)
/Users/me/.go/src/github.com/armory-io/dinghy/pkg/cache (from $GOPATH)
Dinghy supports YAML (and HCL) templates, but the arm CLI doesn't - it assumes all input is JSON.
Using latest master, I rendered examples/dinghyfile_basic
into YAML and tried to run it:
---
application: helloworldapp
pipelines:
- application: helloworldapp
name: my-pipeline-name
stages:
- name: one
type: wait
waitTime: 10
$ ./arm dinghy render examples/dinghyfile_yaml
INFO[2020-10-27 14:47:28] Checking dinghyfile
INFO[2020-10-27 14:47:28] Parsing dinghyfile
ERRO[2020-10-27 14:47:28] Failed to parse global vars:
---
application: helloworldapp
pipelines:
- application: helloworldapp
name: my-pipeline-name
stages:
- name: one
type: wait
waitTime: 10 arm-cli-test=
ERRO[2020-10-27 14:47:28] Parsing dinghyfile failed: invalid character '-' in numeric literal
test issue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.