-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.json
executable file
·251 lines (251 loc) · 8.61 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "Docker",
"viewName": "Docker",
"type": "executer",
"execProgram": "node",
"main": "app.js",
"imgUrl": "logo.png",
"version": "4.3.0",
"description": "Build, Push and Pull Docker Containers or run other Docker Commands",
"category": [
"Containers"
],
"keywords": [
"cloud",
"container",
"image",
"docker",
"push",
"pull",
"tag",
"repository",
"cli"
],
"methods": [
{
"name": "build",
"viewName": "Build Image",
"allowEmptyResult": true,
"params": [
{
"name": "PATH",
"viewName": "Working Directory",
"type": "string",
"description": "Path on Kaholo agent to use as working directory, if empty default working directory is used.",
"placeholder": "myrepo/docker",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_build/",
"parserType": "filePath",
"parserOptions": {
"throwIfDoesntExist": true,
"acceptedTypes": ["directory"]
}
},
{
"name": "dockerfileName",
"viewName": "Dockerfile Path",
"description": "Dockerfile name or relative path within the working directory",
"type": "string",
"default": "Dockerfile",
"placeholder": "Dockerfile"
},
{
"name": "TAG",
"viewName": "Tag",
"type": "string",
"description": "If specified, tag the new Docker image with the specified tag.",
"placeholder": "kaholo:1.0.0",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_tag/"
}
]
},
{
"name": "run",
"viewName": "Run Docker Container",
"allowEmptyResult": true,
"params": [
{
"name": "imageName",
"viewName": "Image",
"type": "string",
"description": "Name of the docker image to use to create container",
"placeholder": "alpine",
"learnUrl": "https://docs.docker.com/engine/reference/run/",
"required": true
},
{
"name": "command",
"viewName": "Command",
"type": "text",
"description": "Command to be executed by the container",
"learnUrl": "https://docs.docker.com/engine/reference/run/",
"required": false
},
{
"name": "environmentalVariables",
"viewName": "Environment variables",
"type": "text",
"parserType": "keyValuePairs",
"description": "Optional one-per-line key=value pairs for the container's environment",
"placeholder": "DEPLOYMODE=Test",
"required": false
},
{
"name": "secretEnvVariables",
"viewName": "Secret Environment Variables",
"type": "vault",
"parserType": "keyValuePairs",
"description": "One-per-line Key=Value pairs stored as a Kaholo Vault item"
},
{
"name": "workingDirectory",
"viewName": "Working directory",
"type": "string",
"placeholder": "/twiddlebug/workspace/",
"parserType": "filePath",
"parserOptions": {
"throwIfDoesntExist": true
},
"description": "Directory on Kaholo agent that will be mounted by container and be the working directory within the container",
"required": false
}
]
},
{
"name": "pull",
"viewName": "Pull Image",
"allowEmptyResult": true,
"params": [
{
"name": "USER",
"viewName": "Username",
"type": "string",
"description": "The username of the Docker user used to authenticate for this request.",
"placeholder": "username",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_pull/"
},
{
"name": "PASSWORD",
"viewName": "Password",
"type": "vault",
"description": "The password of the Docker user used to authenticate for this request.",
"placeholder": "pass1234!",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_pull/"
},
{
"name": "image",
"viewName": "Image",
"type": "string",
"description": "Docker-style URL:port/repository:tag string, where URL, port, and tag default (if excluded) to docker.io, 443, and latest, respectively.",
"placeholder": "mydockerrepos.myorg.com:8088/dev/builds/myproject:1.0.0",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/",
"required": true
}
]
},
{
"name": "pushImage",
"viewName": "Push Image",
"allowEmptyResult": true,
"params": [
{
"name": "USER",
"viewName": "Username",
"type": "string",
"description": "The username of the Docker user used to authenticate for this request.",
"placeholder": "username",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/",
"required": true
},
{
"name": "PASSWORD",
"viewName": "Password",
"type": "vault",
"description": "The password of the Docker user used to authenticate for this request.",
"placeholder": "pass1234!",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/",
"required": true
},
{
"name": "image",
"viewName": "Image",
"type": "string",
"description": "Docker-style URL:port/repository:tag string, where URL, port, and tag default (if excluded) to docker.io, 443, and latest, respectively.",
"placeholder": "mydockerrepos.myorg.com:8088/dev/builds/myproject:1.0.0",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/",
"required": true
}
]
},
{
"name": "tag",
"viewName": "Tag image",
"allowEmptyResult": true,
"params": [
{
"name": "sourceImage",
"viewName": "Source Image",
"type": "string",
"description": "Source Image in the same format as SOURCE_IMAGE in \"docker tag\" command.",
"placeholder": "docker.io/alpine:latest",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_tag/",
"required": true
},
{
"name": "targetImage",
"viewName": "Target Image",
"type": "string",
"description": "Target Image in the same format as TARGET_IMAGE in \"docker tag\" command.",
"placeholder": "my-repo.io/my-new-tag:1.0.0",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_tag/",
"required": true
}
]
},
{
"name": "cmdExec",
"viewName": "Run Docker Command",
"allowEmptyResult": true,
"params": [
{
"name": "USER",
"viewName": "Username",
"type": "string",
"description": "The username of the Docker user used to authenticate for this request.",
"placeholder": "username",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/"
},
{
"name": "PASSWORD",
"viewName": "Password",
"type": "vault",
"description": "The password of the Docker user used to authenticate for this request.",
"placeholder": "pass1234!",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/"
},
{
"name": "registryUrl",
"viewName": "Registry URL",
"type": "string",
"description": "URL of the docker registry.",
"placeholder": "https://registry-1.docker.io",
"learnUrl": "https://docs.docker.com/engine/reference/commandline/image_push/"
},
{
"name": "PARAMS",
"viewName": "Command",
"type": "string",
"description": "The docker command to run. No need to specify 'docker' in the start of the command.",
"placeholder": "build https://github.com/docker/rootfs.git#container:docker",
"learnUrl": "https://docs.docker.com/"
},
{
"name": "attemptJson",
"viewName": "Attempt JSON Output",
"type": "boolean",
"default": false,
"description": "If selected '--format {{json . }}' will be appended to the command, and output will be parsed as JSON"
}
]
}
]
}