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