@pulumi/docker 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/container.d.ts +35 -71
- package/container.js.map +1 -1
- package/getNetwork.d.ts +27 -0
- package/getNetwork.js.map +1 -1
- package/getPlugin.d.ts +33 -0
- package/getPlugin.js.map +1 -1
- package/getRegistryImage.d.ts +21 -0
- package/getRegistryImage.js.map +1 -1
- package/getRemoteImage.d.ts +12 -0
- package/getRemoteImage.js.map +1 -1
- package/network.d.ts +7 -13
- package/network.js +1 -1
- package/network.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/registryImage.d.ts +3 -6
- package/registryImage.js.map +1 -1
- package/remoteImage.d.ts +27 -41
- package/remoteImage.js +2 -23
- package/remoteImage.js.map +1 -1
- package/types/input.d.ts +423 -0
- package/types/output.d.ts +423 -0
package/types/input.d.ts
CHANGED
|
@@ -1,36 +1,99 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs } from "../types";
|
|
3
3
|
export interface ContainerCapabilities {
|
|
4
|
+
/**
|
|
5
|
+
* List of linux capabilities to add.
|
|
6
|
+
*/
|
|
4
7
|
adds?: pulumi.Input<pulumi.Input<string>[]>;
|
|
8
|
+
/**
|
|
9
|
+
* List of linux capabilities to drop.
|
|
10
|
+
*/
|
|
5
11
|
drops?: pulumi.Input<pulumi.Input<string>[]>;
|
|
6
12
|
}
|
|
7
13
|
export interface ContainerDevice {
|
|
14
|
+
/**
|
|
15
|
+
* The path in the container where the device will be bound.
|
|
16
|
+
*/
|
|
8
17
|
containerPath?: pulumi.Input<string>;
|
|
18
|
+
/**
|
|
19
|
+
* The path on the host where the device is located.
|
|
20
|
+
*/
|
|
9
21
|
hostPath: pulumi.Input<string>;
|
|
22
|
+
/**
|
|
23
|
+
* The cgroup permissions given to the container to access the device. Defaults to `rwm`.
|
|
24
|
+
*/
|
|
10
25
|
permissions?: pulumi.Input<string>;
|
|
11
26
|
}
|
|
12
27
|
export interface ContainerHealthcheck {
|
|
28
|
+
/**
|
|
29
|
+
* Time between running the check (ms|s|m|h). Defaults to `0s`.
|
|
30
|
+
*/
|
|
13
31
|
interval?: pulumi.Input<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Consecutive failures needed to report unhealthy. Defaults to `0`.
|
|
34
|
+
*/
|
|
14
35
|
retries?: pulumi.Input<number>;
|
|
36
|
+
/**
|
|
37
|
+
* Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
|
|
38
|
+
*/
|
|
15
39
|
startPeriod?: pulumi.Input<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
|
|
42
|
+
*/
|
|
16
43
|
tests: pulumi.Input<pulumi.Input<string>[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
|
|
46
|
+
*/
|
|
17
47
|
timeout?: pulumi.Input<string>;
|
|
18
48
|
}
|
|
19
49
|
export interface ContainerHost {
|
|
50
|
+
/**
|
|
51
|
+
* Hostname to add
|
|
52
|
+
*/
|
|
20
53
|
host: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* IP address this hostname should resolve to.
|
|
56
|
+
*/
|
|
21
57
|
ip: pulumi.Input<string>;
|
|
22
58
|
}
|
|
23
59
|
export interface ContainerLabel {
|
|
60
|
+
/**
|
|
61
|
+
* Name of the label
|
|
62
|
+
*/
|
|
24
63
|
label: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Value of the label
|
|
66
|
+
*/
|
|
25
67
|
value: pulumi.Input<string>;
|
|
26
68
|
}
|
|
27
69
|
export interface ContainerMount {
|
|
70
|
+
/**
|
|
71
|
+
* Optional configuration for the bind type.
|
|
72
|
+
*/
|
|
28
73
|
bindOptions?: pulumi.Input<inputs.ContainerMountBindOptions>;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the mount should be read-only.
|
|
76
|
+
*/
|
|
29
77
|
readOnly?: pulumi.Input<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Mount source (e.g. a volume name, a host path).
|
|
80
|
+
*/
|
|
30
81
|
source?: pulumi.Input<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Container path
|
|
84
|
+
*/
|
|
31
85
|
target: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Optional configuration for the tmpfs type.
|
|
88
|
+
*/
|
|
32
89
|
tmpfsOptions?: pulumi.Input<inputs.ContainerMountTmpfsOptions>;
|
|
90
|
+
/**
|
|
91
|
+
* The mount type
|
|
92
|
+
*/
|
|
33
93
|
type: pulumi.Input<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Optional configuration for the volume type.
|
|
96
|
+
*/
|
|
34
97
|
volumeOptions?: pulumi.Input<inputs.ContainerMountVolumeOptions>;
|
|
35
98
|
}
|
|
36
99
|
export interface ContainerMountBindOptions {
|
|
@@ -45,25 +108,40 @@ export interface ContainerMountVolumeOptions {
|
|
|
45
108
|
driverOptions?: pulumi.Input<{
|
|
46
109
|
[key: string]: pulumi.Input<string>;
|
|
47
110
|
}>;
|
|
111
|
+
/**
|
|
112
|
+
* User-defined key/value metadata
|
|
113
|
+
*/
|
|
48
114
|
labels?: pulumi.Input<pulumi.Input<inputs.ContainerMountVolumeOptionsLabel>[]>;
|
|
49
115
|
noCopy?: pulumi.Input<boolean>;
|
|
50
116
|
}
|
|
51
117
|
export interface ContainerMountVolumeOptionsLabel {
|
|
118
|
+
/**
|
|
119
|
+
* Name of the label
|
|
120
|
+
*/
|
|
52
121
|
label: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Value of the label
|
|
124
|
+
*/
|
|
53
125
|
value: pulumi.Input<string>;
|
|
54
126
|
}
|
|
55
127
|
export interface ContainerNetworkData {
|
|
56
128
|
/**
|
|
129
|
+
* The network gateway of the container.
|
|
130
|
+
*
|
|
57
131
|
* @deprecated Use `network_data` instead. The network gateway of the container as read from its NetworkSettings.
|
|
58
132
|
*/
|
|
59
133
|
gateway?: pulumi.Input<string>;
|
|
60
134
|
globalIpv6Address?: pulumi.Input<string>;
|
|
61
135
|
globalIpv6PrefixLength?: pulumi.Input<number>;
|
|
62
136
|
/**
|
|
137
|
+
* The IP address of the container.
|
|
138
|
+
*
|
|
63
139
|
* @deprecated Use `network_data` instead. The IP address of the container's first network it.
|
|
64
140
|
*/
|
|
65
141
|
ipAddress?: pulumi.Input<string>;
|
|
66
142
|
/**
|
|
143
|
+
* The IP prefix length of the container.
|
|
144
|
+
*
|
|
67
145
|
* @deprecated Use `network_data` instead. The IP prefix length of the container as read from its NetworkSettings.
|
|
68
146
|
*/
|
|
69
147
|
ipPrefixLength?: pulumi.Input<number>;
|
|
@@ -71,51 +149,138 @@ export interface ContainerNetworkData {
|
|
|
71
149
|
networkName?: pulumi.Input<string>;
|
|
72
150
|
}
|
|
73
151
|
export interface ContainerNetworksAdvanced {
|
|
152
|
+
/**
|
|
153
|
+
* The network aliases of the container in the specific network.
|
|
154
|
+
*/
|
|
74
155
|
aliases?: pulumi.Input<pulumi.Input<string>[]>;
|
|
156
|
+
/**
|
|
157
|
+
* The IPV4 address of the container in the specific network.
|
|
158
|
+
*/
|
|
75
159
|
ipv4Address?: pulumi.Input<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The IPV6 address of the container in the specific network.
|
|
162
|
+
*/
|
|
76
163
|
ipv6Address?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The name or id of the network to use. You can use `name` or `id` attribute from a `docker.Network` resource.
|
|
166
|
+
*/
|
|
77
167
|
name: pulumi.Input<string>;
|
|
78
168
|
}
|
|
79
169
|
export interface ContainerPort {
|
|
170
|
+
/**
|
|
171
|
+
* Port exposed out of the container. If not given a free random port `>= 32768` will be used.
|
|
172
|
+
*/
|
|
80
173
|
external?: pulumi.Input<number>;
|
|
174
|
+
/**
|
|
175
|
+
* Port within the container.
|
|
176
|
+
*/
|
|
81
177
|
internal: pulumi.Input<number>;
|
|
178
|
+
/**
|
|
179
|
+
* IP address/mask that can access this port. Defaults to `0.0.0.0`.
|
|
180
|
+
*/
|
|
82
181
|
ip?: pulumi.Input<string>;
|
|
182
|
+
/**
|
|
183
|
+
* Protocol that can be used over this port. Defaults to `tcp`.
|
|
184
|
+
*/
|
|
83
185
|
protocol?: pulumi.Input<string>;
|
|
84
186
|
}
|
|
85
187
|
export interface ContainerUlimit {
|
|
188
|
+
/**
|
|
189
|
+
* The hard limit
|
|
190
|
+
*/
|
|
86
191
|
hard: pulumi.Input<number>;
|
|
192
|
+
/**
|
|
193
|
+
* The name of the ulimit
|
|
194
|
+
*/
|
|
87
195
|
name: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* The soft limit
|
|
198
|
+
*/
|
|
88
199
|
soft: pulumi.Input<number>;
|
|
89
200
|
}
|
|
90
201
|
export interface ContainerUpload {
|
|
202
|
+
/**
|
|
203
|
+
* Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source`
|
|
204
|
+
*/
|
|
91
205
|
content?: pulumi.Input<string>;
|
|
92
206
|
contentBase64?: pulumi.Input<string>;
|
|
207
|
+
/**
|
|
208
|
+
* If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
|
|
209
|
+
*/
|
|
93
210
|
executable?: pulumi.Input<boolean>;
|
|
211
|
+
/**
|
|
212
|
+
* Path to the file in the container where is upload goes to
|
|
213
|
+
*/
|
|
94
214
|
file: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64`
|
|
217
|
+
*/
|
|
95
218
|
source?: pulumi.Input<string>;
|
|
219
|
+
/**
|
|
220
|
+
* If using `source`, this will force an update if the file content has updated but the filename has not.
|
|
221
|
+
*/
|
|
96
222
|
sourceHash?: pulumi.Input<string>;
|
|
97
223
|
}
|
|
98
224
|
export interface ContainerVolume {
|
|
225
|
+
/**
|
|
226
|
+
* The path in the container where the volume will be mounted.
|
|
227
|
+
*/
|
|
99
228
|
containerPath?: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* The container where the volume is coming from.
|
|
231
|
+
*/
|
|
100
232
|
fromContainer?: pulumi.Input<string>;
|
|
233
|
+
/**
|
|
234
|
+
* The path on the host where the volume is coming from.
|
|
235
|
+
*/
|
|
101
236
|
hostPath?: pulumi.Input<string>;
|
|
237
|
+
/**
|
|
238
|
+
* If `true`, this volume will be readonly. Defaults to `false`.
|
|
239
|
+
*/
|
|
102
240
|
readOnly?: pulumi.Input<boolean>;
|
|
241
|
+
/**
|
|
242
|
+
* The name of the docker volume which should be mounted.
|
|
243
|
+
*/
|
|
103
244
|
volumeName?: pulumi.Input<string>;
|
|
104
245
|
}
|
|
105
246
|
export interface NetworkIpamConfig {
|
|
247
|
+
/**
|
|
248
|
+
* Auxiliary IPv4 or IPv6 addresses used by Network driver
|
|
249
|
+
*/
|
|
106
250
|
auxAddress?: pulumi.Input<{
|
|
107
251
|
[key: string]: any;
|
|
108
252
|
}>;
|
|
253
|
+
/**
|
|
254
|
+
* The IP address of the gateway
|
|
255
|
+
*/
|
|
109
256
|
gateway?: pulumi.Input<string>;
|
|
257
|
+
/**
|
|
258
|
+
* The ip range in CIDR form
|
|
259
|
+
*/
|
|
110
260
|
ipRange?: pulumi.Input<string>;
|
|
261
|
+
/**
|
|
262
|
+
* The subnet in CIDR form
|
|
263
|
+
*/
|
|
111
264
|
subnet?: pulumi.Input<string>;
|
|
112
265
|
}
|
|
113
266
|
export interface NetworkLabel {
|
|
267
|
+
/**
|
|
268
|
+
* Name of the label
|
|
269
|
+
*/
|
|
114
270
|
label: pulumi.Input<string>;
|
|
271
|
+
/**
|
|
272
|
+
* Value of the label
|
|
273
|
+
*/
|
|
115
274
|
value: pulumi.Input<string>;
|
|
116
275
|
}
|
|
117
276
|
export interface PluginGrantPermission {
|
|
277
|
+
/**
|
|
278
|
+
* The name of the permission
|
|
279
|
+
*/
|
|
118
280
|
name: pulumi.Input<string>;
|
|
281
|
+
/**
|
|
282
|
+
* The value of the permission
|
|
283
|
+
*/
|
|
119
284
|
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
120
285
|
}
|
|
121
286
|
export interface ProviderRegistryAuth {
|
|
@@ -126,41 +291,137 @@ export interface ProviderRegistryAuth {
|
|
|
126
291
|
username?: pulumi.Input<string>;
|
|
127
292
|
}
|
|
128
293
|
export interface RegistryImageBuild {
|
|
294
|
+
/**
|
|
295
|
+
* The configuration for the authentication
|
|
296
|
+
*/
|
|
129
297
|
authConfigs?: pulumi.Input<pulumi.Input<inputs.RegistryImageBuildAuthConfig>[]>;
|
|
298
|
+
/**
|
|
299
|
+
* Pairs for build-time variables in the form TODO
|
|
300
|
+
*/
|
|
130
301
|
buildArgs?: pulumi.Input<{
|
|
131
302
|
[key: string]: pulumi.Input<string>;
|
|
132
303
|
}>;
|
|
304
|
+
/**
|
|
305
|
+
* BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.
|
|
306
|
+
*/
|
|
133
307
|
buildId?: pulumi.Input<string>;
|
|
308
|
+
/**
|
|
309
|
+
* Images to consider as cache sources
|
|
310
|
+
*/
|
|
134
311
|
cacheFroms?: pulumi.Input<pulumi.Input<string>[]>;
|
|
312
|
+
/**
|
|
313
|
+
* Optional parent cgroup for the container
|
|
314
|
+
*/
|
|
135
315
|
cgroupParent?: pulumi.Input<string>;
|
|
316
|
+
/**
|
|
317
|
+
* The absolute path to the context folder. You can use the helper function '${path.cwd}/context-dir'.
|
|
318
|
+
*/
|
|
136
319
|
context: pulumi.Input<string>;
|
|
320
|
+
/**
|
|
321
|
+
* The length of a CPU period in microseconds
|
|
322
|
+
*/
|
|
137
323
|
cpuPeriod?: pulumi.Input<number>;
|
|
324
|
+
/**
|
|
325
|
+
* Microseconds of CPU time that the container can get in a CPU period
|
|
326
|
+
*/
|
|
138
327
|
cpuQuota?: pulumi.Input<number>;
|
|
328
|
+
/**
|
|
329
|
+
* CPUs in which to allow execution (e.g., `0-3`, `0`, `1`)
|
|
330
|
+
*/
|
|
139
331
|
cpuSetCpus?: pulumi.Input<string>;
|
|
332
|
+
/**
|
|
333
|
+
* MEMs in which to allow execution (`0-3`, `0`, `1`)
|
|
334
|
+
*/
|
|
140
335
|
cpuSetMems?: pulumi.Input<string>;
|
|
336
|
+
/**
|
|
337
|
+
* CPU shares (relative weight)
|
|
338
|
+
*/
|
|
141
339
|
cpuShares?: pulumi.Input<number>;
|
|
340
|
+
/**
|
|
341
|
+
* Dockerfile file. Defaults to `Dockerfile`
|
|
342
|
+
*/
|
|
142
343
|
dockerfile?: pulumi.Input<string>;
|
|
344
|
+
/**
|
|
345
|
+
* A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"]
|
|
346
|
+
*/
|
|
143
347
|
extraHosts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
348
|
+
/**
|
|
349
|
+
* Always remove intermediate containers
|
|
350
|
+
*/
|
|
144
351
|
forceRemove?: pulumi.Input<boolean>;
|
|
352
|
+
/**
|
|
353
|
+
* Isolation represents the isolation technology of a container. The supported values are
|
|
354
|
+
*/
|
|
145
355
|
isolation?: pulumi.Input<string>;
|
|
356
|
+
/**
|
|
357
|
+
* User-defined key/value metadata
|
|
358
|
+
*/
|
|
146
359
|
labels?: pulumi.Input<{
|
|
147
360
|
[key: string]: pulumi.Input<string>;
|
|
148
361
|
}>;
|
|
362
|
+
/**
|
|
363
|
+
* Set memory limit for build
|
|
364
|
+
*/
|
|
149
365
|
memory?: pulumi.Input<number>;
|
|
366
|
+
/**
|
|
367
|
+
* Total memory (memory + swap), -1 to enable unlimited swap
|
|
368
|
+
*/
|
|
150
369
|
memorySwap?: pulumi.Input<number>;
|
|
370
|
+
/**
|
|
371
|
+
* Set the networking mode for the RUN instructions during build
|
|
372
|
+
*/
|
|
151
373
|
networkMode?: pulumi.Input<string>;
|
|
374
|
+
/**
|
|
375
|
+
* Do not use the cache when building the image
|
|
376
|
+
*/
|
|
152
377
|
noCache?: pulumi.Input<boolean>;
|
|
378
|
+
/**
|
|
379
|
+
* Set platform if server is multi-platform capable
|
|
380
|
+
*/
|
|
153
381
|
platform?: pulumi.Input<string>;
|
|
382
|
+
/**
|
|
383
|
+
* Attempt to pull the image even if an older image exists locally
|
|
384
|
+
*/
|
|
154
385
|
pullParent?: pulumi.Input<boolean>;
|
|
386
|
+
/**
|
|
387
|
+
* A Git repository URI or HTTP/HTTPS context URI
|
|
388
|
+
*/
|
|
155
389
|
remoteContext?: pulumi.Input<string>;
|
|
390
|
+
/**
|
|
391
|
+
* Remove intermediate containers after a successful build (default behavior)
|
|
392
|
+
*/
|
|
156
393
|
remove?: pulumi.Input<boolean>;
|
|
394
|
+
/**
|
|
395
|
+
* The security options
|
|
396
|
+
*/
|
|
157
397
|
securityOpts?: pulumi.Input<pulumi.Input<string>[]>;
|
|
398
|
+
/**
|
|
399
|
+
* Set an ID for the build session
|
|
400
|
+
*/
|
|
158
401
|
sessionId?: pulumi.Input<string>;
|
|
402
|
+
/**
|
|
403
|
+
* Size of /dev/shm in bytes. The size must be greater than 0
|
|
404
|
+
*/
|
|
159
405
|
shmSize?: pulumi.Input<number>;
|
|
406
|
+
/**
|
|
407
|
+
* If true the new layers are squashed into a new image with a single new layer
|
|
408
|
+
*/
|
|
160
409
|
squash?: pulumi.Input<boolean>;
|
|
410
|
+
/**
|
|
411
|
+
* Suppress the build output and print image ID on success
|
|
412
|
+
*/
|
|
161
413
|
suppressOutput?: pulumi.Input<boolean>;
|
|
414
|
+
/**
|
|
415
|
+
* Set the target build stage to build
|
|
416
|
+
*/
|
|
162
417
|
target?: pulumi.Input<string>;
|
|
418
|
+
/**
|
|
419
|
+
* Configuration for ulimits
|
|
420
|
+
*/
|
|
163
421
|
ulimits?: pulumi.Input<pulumi.Input<inputs.RegistryImageBuildUlimit>[]>;
|
|
422
|
+
/**
|
|
423
|
+
* Version of the underlying builder to use
|
|
424
|
+
*/
|
|
164
425
|
version?: pulumi.Input<string>;
|
|
165
426
|
}
|
|
166
427
|
export interface RegistryImageBuildAuthConfig {
|
|
@@ -175,42 +436,102 @@ export interface RegistryImageBuildAuthConfig {
|
|
|
175
436
|
}
|
|
176
437
|
export interface RegistryImageBuildUlimit {
|
|
177
438
|
hard: pulumi.Input<number>;
|
|
439
|
+
/**
|
|
440
|
+
* The name of the Docker image.
|
|
441
|
+
*/
|
|
178
442
|
name: pulumi.Input<string>;
|
|
179
443
|
soft: pulumi.Input<number>;
|
|
180
444
|
}
|
|
181
445
|
export interface RemoteImageBuild {
|
|
446
|
+
/**
|
|
447
|
+
* Set build-time variables
|
|
448
|
+
*/
|
|
182
449
|
buildArg?: pulumi.Input<{
|
|
183
450
|
[key: string]: pulumi.Input<string>;
|
|
184
451
|
}>;
|
|
452
|
+
/**
|
|
453
|
+
* Name of the Dockerfile. Defaults to `Dockerfile`.
|
|
454
|
+
*/
|
|
185
455
|
dockerfile?: pulumi.Input<string>;
|
|
456
|
+
/**
|
|
457
|
+
* Always remove intermediate containers
|
|
458
|
+
*/
|
|
186
459
|
forceRemove?: pulumi.Input<boolean>;
|
|
460
|
+
/**
|
|
461
|
+
* Set metadata for an image
|
|
462
|
+
*/
|
|
187
463
|
label?: pulumi.Input<{
|
|
188
464
|
[key: string]: pulumi.Input<string>;
|
|
189
465
|
}>;
|
|
466
|
+
/**
|
|
467
|
+
* Do not use cache when building the image
|
|
468
|
+
*/
|
|
190
469
|
noCache?: pulumi.Input<boolean>;
|
|
470
|
+
/**
|
|
471
|
+
* Context path
|
|
472
|
+
*/
|
|
191
473
|
path: pulumi.Input<string>;
|
|
474
|
+
/**
|
|
475
|
+
* Remove intermediate containers after a successful build. Defaults to `true`.
|
|
476
|
+
*/
|
|
192
477
|
remove?: pulumi.Input<boolean>;
|
|
478
|
+
/**
|
|
479
|
+
* Name and optionally a tag in the 'name:tag' format
|
|
480
|
+
*/
|
|
193
481
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
482
|
+
/**
|
|
483
|
+
* Set the target build stage to build
|
|
484
|
+
*/
|
|
194
485
|
target?: pulumi.Input<string>;
|
|
195
486
|
}
|
|
196
487
|
export interface SecretLabel {
|
|
488
|
+
/**
|
|
489
|
+
* Name of the label
|
|
490
|
+
*/
|
|
197
491
|
label: pulumi.Input<string>;
|
|
492
|
+
/**
|
|
493
|
+
* Value of the label
|
|
494
|
+
*/
|
|
198
495
|
value: pulumi.Input<string>;
|
|
199
496
|
}
|
|
200
497
|
export interface ServiceAuth {
|
|
498
|
+
/**
|
|
499
|
+
* The password
|
|
500
|
+
*/
|
|
201
501
|
password?: pulumi.Input<string>;
|
|
502
|
+
/**
|
|
503
|
+
* The address of the server for the authentication
|
|
504
|
+
*/
|
|
202
505
|
serverAddress: pulumi.Input<string>;
|
|
506
|
+
/**
|
|
507
|
+
* The username
|
|
508
|
+
*/
|
|
203
509
|
username?: pulumi.Input<string>;
|
|
204
510
|
}
|
|
205
511
|
export interface ServiceConvergeConfig {
|
|
512
|
+
/**
|
|
513
|
+
* The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
|
|
514
|
+
*/
|
|
206
515
|
delay?: pulumi.Input<string>;
|
|
516
|
+
/**
|
|
517
|
+
* The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
|
|
518
|
+
*/
|
|
207
519
|
timeout?: pulumi.Input<string>;
|
|
208
520
|
}
|
|
209
521
|
export interface ServiceEndpointSpec {
|
|
522
|
+
/**
|
|
523
|
+
* The mode of resolution to use for internal load balancing between tasks
|
|
524
|
+
*/
|
|
210
525
|
mode?: pulumi.Input<string>;
|
|
526
|
+
/**
|
|
527
|
+
* List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
|
|
528
|
+
*/
|
|
211
529
|
ports?: pulumi.Input<pulumi.Input<inputs.ServiceEndpointSpecPort>[]>;
|
|
212
530
|
}
|
|
213
531
|
export interface ServiceEndpointSpecPort {
|
|
532
|
+
/**
|
|
533
|
+
* Name of the service
|
|
534
|
+
*/
|
|
214
535
|
name?: pulumi.Input<string>;
|
|
215
536
|
protocol?: pulumi.Input<string>;
|
|
216
537
|
publishMode?: pulumi.Input<string>;
|
|
@@ -218,32 +539,86 @@ export interface ServiceEndpointSpecPort {
|
|
|
218
539
|
targetPort: pulumi.Input<number>;
|
|
219
540
|
}
|
|
220
541
|
export interface ServiceLabel {
|
|
542
|
+
/**
|
|
543
|
+
* Name of the label
|
|
544
|
+
*/
|
|
221
545
|
label: pulumi.Input<string>;
|
|
546
|
+
/**
|
|
547
|
+
* Value of the label
|
|
548
|
+
*/
|
|
222
549
|
value: pulumi.Input<string>;
|
|
223
550
|
}
|
|
224
551
|
export interface ServiceMode {
|
|
552
|
+
/**
|
|
553
|
+
* The global service mode. Defaults to `false`
|
|
554
|
+
*/
|
|
225
555
|
global?: pulumi.Input<boolean>;
|
|
556
|
+
/**
|
|
557
|
+
* The replicated service mode
|
|
558
|
+
*/
|
|
226
559
|
replicated?: pulumi.Input<inputs.ServiceModeReplicated>;
|
|
227
560
|
}
|
|
228
561
|
export interface ServiceModeReplicated {
|
|
229
562
|
replicas?: pulumi.Input<number>;
|
|
230
563
|
}
|
|
231
564
|
export interface ServiceRollbackConfig {
|
|
565
|
+
/**
|
|
566
|
+
* Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to `0s`.
|
|
567
|
+
*/
|
|
232
568
|
delay?: pulumi.Input<string>;
|
|
569
|
+
/**
|
|
570
|
+
* Action on rollback failure: pause | continue. Defaults to `pause`.
|
|
571
|
+
*/
|
|
233
572
|
failureAction?: pulumi.Input<string>;
|
|
573
|
+
/**
|
|
574
|
+
* Failure rate to tolerate during a rollback. Defaults to `0.0`.
|
|
575
|
+
*/
|
|
234
576
|
maxFailureRatio?: pulumi.Input<string>;
|
|
577
|
+
/**
|
|
578
|
+
* Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
579
|
+
*/
|
|
235
580
|
monitor?: pulumi.Input<string>;
|
|
581
|
+
/**
|
|
582
|
+
* Rollback order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
583
|
+
*/
|
|
236
584
|
order?: pulumi.Input<string>;
|
|
585
|
+
/**
|
|
586
|
+
* Maximum number of tasks to be rollbacked in one iteration. Defaults to `1`
|
|
587
|
+
*/
|
|
237
588
|
parallelism?: pulumi.Input<number>;
|
|
238
589
|
}
|
|
239
590
|
export interface ServiceTaskSpec {
|
|
591
|
+
/**
|
|
592
|
+
* The spec for each container
|
|
593
|
+
*/
|
|
240
594
|
containerSpec: pulumi.Input<inputs.ServiceTaskSpecContainerSpec>;
|
|
595
|
+
/**
|
|
596
|
+
* A counter that triggers an update even if no relevant parameters have been changed. See the [spec](https://github.com/docker/swarmkit/blob/master/api/specs.proto#L126).
|
|
597
|
+
*/
|
|
241
598
|
forceUpdate?: pulumi.Input<number>;
|
|
599
|
+
/**
|
|
600
|
+
* Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
|
|
601
|
+
*/
|
|
242
602
|
logDriver?: pulumi.Input<inputs.ServiceTaskSpecLogDriver>;
|
|
603
|
+
/**
|
|
604
|
+
* Ids of the networks in which the container will be put in
|
|
605
|
+
*/
|
|
243
606
|
networks?: pulumi.Input<pulumi.Input<string>[]>;
|
|
607
|
+
/**
|
|
608
|
+
* The placement preferences
|
|
609
|
+
*/
|
|
244
610
|
placement?: pulumi.Input<inputs.ServiceTaskSpecPlacement>;
|
|
611
|
+
/**
|
|
612
|
+
* Resource requirements which apply to each individual container created as part of the service
|
|
613
|
+
*/
|
|
245
614
|
resources?: pulumi.Input<inputs.ServiceTaskSpecResources>;
|
|
615
|
+
/**
|
|
616
|
+
* Specification for the restart policy which applies to containers created as part of this service.
|
|
617
|
+
*/
|
|
246
618
|
restartPolicy?: pulumi.Input<inputs.ServiceTaskSpecRestartPolicy>;
|
|
619
|
+
/**
|
|
620
|
+
* Runtime is the type of runtime specified for the task executor. See the [types](https://github.com/moby/moby/blob/master/api/types/swarm/runtime.go).
|
|
621
|
+
*/
|
|
247
622
|
runtime?: pulumi.Input<string>;
|
|
248
623
|
}
|
|
249
624
|
export interface ServiceTaskSpecContainerSpec {
|
|
@@ -261,6 +636,9 @@ export interface ServiceTaskSpecContainerSpec {
|
|
|
261
636
|
hosts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecHost>[]>;
|
|
262
637
|
image: pulumi.Input<string>;
|
|
263
638
|
isolation?: pulumi.Input<string>;
|
|
639
|
+
/**
|
|
640
|
+
* User-defined key/value metadata
|
|
641
|
+
*/
|
|
264
642
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecLabel>[]>;
|
|
265
643
|
mounts?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMount>[]>;
|
|
266
644
|
privileges?: pulumi.Input<inputs.ServiceTaskSpecContainerSpecPrivileges>;
|
|
@@ -295,7 +673,13 @@ export interface ServiceTaskSpecContainerSpecHost {
|
|
|
295
673
|
ip: pulumi.Input<string>;
|
|
296
674
|
}
|
|
297
675
|
export interface ServiceTaskSpecContainerSpecLabel {
|
|
676
|
+
/**
|
|
677
|
+
* Name of the label
|
|
678
|
+
*/
|
|
298
679
|
label: pulumi.Input<string>;
|
|
680
|
+
/**
|
|
681
|
+
* Value of the label
|
|
682
|
+
*/
|
|
299
683
|
value: pulumi.Input<string>;
|
|
300
684
|
}
|
|
301
685
|
export interface ServiceTaskSpecContainerSpecMount {
|
|
@@ -311,6 +695,9 @@ export interface ServiceTaskSpecContainerSpecMountBindOptions {
|
|
|
311
695
|
propagation?: pulumi.Input<string>;
|
|
312
696
|
}
|
|
313
697
|
export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
|
|
698
|
+
/**
|
|
699
|
+
* Scheduling mode for the service
|
|
700
|
+
*/
|
|
314
701
|
mode?: pulumi.Input<number>;
|
|
315
702
|
sizeBytes?: pulumi.Input<number>;
|
|
316
703
|
}
|
|
@@ -319,11 +706,20 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
|
|
|
319
706
|
driverOptions?: pulumi.Input<{
|
|
320
707
|
[key: string]: pulumi.Input<string>;
|
|
321
708
|
}>;
|
|
709
|
+
/**
|
|
710
|
+
* User-defined key/value metadata
|
|
711
|
+
*/
|
|
322
712
|
labels?: pulumi.Input<pulumi.Input<inputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel>[]>;
|
|
323
713
|
noCopy?: pulumi.Input<boolean>;
|
|
324
714
|
}
|
|
325
715
|
export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
|
|
716
|
+
/**
|
|
717
|
+
* Name of the label
|
|
718
|
+
*/
|
|
326
719
|
label: pulumi.Input<string>;
|
|
720
|
+
/**
|
|
721
|
+
* Value of the label
|
|
722
|
+
*/
|
|
327
723
|
value: pulumi.Input<string>;
|
|
328
724
|
}
|
|
329
725
|
export interface ServiceTaskSpecContainerSpecPrivileges {
|
|
@@ -350,6 +746,9 @@ export interface ServiceTaskSpecContainerSpecSecret {
|
|
|
350
746
|
secretName?: pulumi.Input<string>;
|
|
351
747
|
}
|
|
352
748
|
export interface ServiceTaskSpecLogDriver {
|
|
749
|
+
/**
|
|
750
|
+
* Name of the service
|
|
751
|
+
*/
|
|
353
752
|
name: pulumi.Input<string>;
|
|
354
753
|
options?: pulumi.Input<{
|
|
355
754
|
[key: string]: pulumi.Input<string>;
|
|
@@ -389,15 +788,39 @@ export interface ServiceTaskSpecRestartPolicy {
|
|
|
389
788
|
window?: pulumi.Input<string>;
|
|
390
789
|
}
|
|
391
790
|
export interface ServiceUpdateConfig {
|
|
791
|
+
/**
|
|
792
|
+
* Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`.
|
|
793
|
+
*/
|
|
392
794
|
delay?: pulumi.Input<string>;
|
|
795
|
+
/**
|
|
796
|
+
* Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`.
|
|
797
|
+
*/
|
|
393
798
|
failureAction?: pulumi.Input<string>;
|
|
799
|
+
/**
|
|
800
|
+
* Failure rate to tolerate during an update. Defaults to `0.0`.
|
|
801
|
+
*/
|
|
394
802
|
maxFailureRatio?: pulumi.Input<string>;
|
|
803
|
+
/**
|
|
804
|
+
* Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`.
|
|
805
|
+
*/
|
|
395
806
|
monitor?: pulumi.Input<string>;
|
|
807
|
+
/**
|
|
808
|
+
* Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`.
|
|
809
|
+
*/
|
|
396
810
|
order?: pulumi.Input<string>;
|
|
811
|
+
/**
|
|
812
|
+
* Maximum number of tasks to be updated in one iteration. Defaults to `1`
|
|
813
|
+
*/
|
|
397
814
|
parallelism?: pulumi.Input<number>;
|
|
398
815
|
}
|
|
399
816
|
export interface VolumeLabel {
|
|
817
|
+
/**
|
|
818
|
+
* Name of the label
|
|
819
|
+
*/
|
|
400
820
|
label: pulumi.Input<string>;
|
|
821
|
+
/**
|
|
822
|
+
* Value of the label
|
|
823
|
+
*/
|
|
401
824
|
value: pulumi.Input<string>;
|
|
402
825
|
}
|
|
403
826
|
export declare namespace config {
|