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