@pulumi/docker 4.4.3 → 4.4.5

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
@@ -96,21 +96,39 @@ export interface ContainerMount {
96
96
  volumeOptions?: outputs.ContainerMountVolumeOptions;
97
97
  }
98
98
  export interface ContainerMountBindOptions {
99
+ /**
100
+ * A propagation mode with the value.
101
+ */
99
102
  propagation?: string;
100
103
  }
101
104
  export interface ContainerMountTmpfsOptions {
105
+ /**
106
+ * The permission mode for the tmpfs mount in an integer.
107
+ */
102
108
  mode?: number;
109
+ /**
110
+ * The size for the tmpfs mount in bytes.
111
+ */
103
112
  sizeBytes?: number;
104
113
  }
105
114
  export interface ContainerMountVolumeOptions {
115
+ /**
116
+ * Name of the driver to use to create the volume.
117
+ */
106
118
  driverName?: string;
119
+ /**
120
+ * key/value map of driver specific options.
121
+ */
107
122
  driverOptions?: {
108
123
  [key: string]: string;
109
124
  };
110
125
  /**
111
- * User-defined key/value metadata
126
+ * User-defined key/value metadata.
112
127
  */
113
128
  labels?: outputs.ContainerMountVolumeOptionsLabel[];
129
+ /**
130
+ * Populate volume with data from the target.
131
+ */
114
132
  noCopy?: boolean;
115
133
  }
116
134
  export interface ContainerMountVolumeOptionsLabel {
@@ -427,21 +445,51 @@ export interface RemoteImageBuild {
427
445
  version?: string;
428
446
  }
429
447
  export interface RemoteImageBuildAuthConfig {
448
+ /**
449
+ * the auth token
450
+ */
430
451
  auth?: string;
452
+ /**
453
+ * the user emal
454
+ */
431
455
  email?: string;
456
+ /**
457
+ * hostname of the registry
458
+ */
432
459
  hostName: string;
460
+ /**
461
+ * the identity token
462
+ */
433
463
  identityToken?: string;
464
+ /**
465
+ * the registry password
466
+ */
434
467
  password?: string;
468
+ /**
469
+ * the registry token
470
+ */
435
471
  registryToken?: string;
472
+ /**
473
+ * the server address
474
+ */
436
475
  serverAddress?: string;
476
+ /**
477
+ * the registry user name
478
+ */
437
479
  userName?: string;
438
480
  }
439
481
  export interface RemoteImageBuildUlimit {
482
+ /**
483
+ * soft limit
484
+ */
440
485
  hard: number;
441
486
  /**
442
- * The name of the Docker image, including any tags or SHA256 repo digests.
487
+ * type of ulimit, e.g. `nofile`
443
488
  */
444
489
  name: string;
490
+ /**
491
+ * hard limit
492
+ */
445
493
  soft: number;
446
494
  }
447
495
  export interface SecretLabel {
@@ -490,12 +538,24 @@ export interface ServiceEndpointSpec {
490
538
  }
491
539
  export interface ServiceEndpointSpecPort {
492
540
  /**
493
- * Name of the service
541
+ * A random name for the port
494
542
  */
495
543
  name?: string;
544
+ /**
545
+ * Rrepresents the protocol of a port: `tcp`, `udp` or `sctp`. Defaults to `tcp`.
546
+ */
496
547
  protocol?: string;
548
+ /**
549
+ * Represents the mode in which the port is to be published: 'ingress' or 'host'. Defaults to `ingress`.
550
+ */
497
551
  publishMode?: string;
552
+ /**
553
+ * The port on the swarm hosts
554
+ */
498
555
  publishedPort: number;
556
+ /**
557
+ * The port inside the container
558
+ */
499
559
  targetPort: number;
500
560
  }
501
561
  export interface ServiceLabel {
@@ -519,6 +579,9 @@ export interface ServiceMode {
519
579
  replicated: outputs.ServiceModeReplicated;
520
580
  }
521
581
  export interface ServiceModeReplicated {
582
+ /**
583
+ * The amount of replicas of the service. Defaults to `1`
584
+ */
522
585
  replicas?: number;
523
586
  }
524
587
  export interface ServiceRollbackConfig {
@@ -582,57 +645,165 @@ export interface ServiceTaskSpec {
582
645
  runtime: string;
583
646
  }
584
647
  export interface ServiceTaskSpecContainerSpec {
648
+ /**
649
+ * Arguments to the command
650
+ */
585
651
  args?: string[];
652
+ /**
653
+ * The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service.
654
+ */
586
655
  commands?: string[];
656
+ /**
657
+ * References to zero or more configs that will be exposed to the service
658
+ */
587
659
  configs?: outputs.ServiceTaskSpecContainerSpecConfig[];
660
+ /**
661
+ * The working directory for commands to run in
662
+ */
588
663
  dir?: string;
664
+ /**
665
+ * Specification for DNS related configurations in resolver configuration file (`resolv.conf`)
666
+ */
589
667
  dnsConfig: outputs.ServiceTaskSpecContainerSpecDnsConfig;
668
+ /**
669
+ * A list of environment variables in the form VAR="value"
670
+ */
590
671
  env?: {
591
672
  [key: string]: string;
592
673
  };
674
+ /**
675
+ * A list of additional groups that the container process will run as
676
+ */
593
677
  groups?: string[];
678
+ /**
679
+ * A test to perform to check that the container is healthy
680
+ */
594
681
  healthcheck: outputs.ServiceTaskSpecContainerSpecHealthcheck;
682
+ /**
683
+ * The hostname to use for the container, as a valid RFC 1123 hostname
684
+ */
595
685
  hostname?: string;
686
+ /**
687
+ * A list of hostname/IP mappings to add to the container's hosts file
688
+ */
596
689
  hosts?: outputs.ServiceTaskSpecContainerSpecHost[];
690
+ /**
691
+ * The image name to use for the containers of the service, like `nginx:1.17.6`. Also use the data-source or resource of `docker.RemoteImage` with the `repoDigest` or `docker.RegistryImage` with the `name` attribute for this, as shown in the examples.
692
+ */
597
693
  image: string;
694
+ /**
695
+ * Isolation technology of the containers running the service. (Windows only). Defaults to `default`.
696
+ */
598
697
  isolation?: string;
599
698
  /**
600
699
  * User-defined key/value metadata
601
700
  */
602
701
  labels?: outputs.ServiceTaskSpecContainerSpecLabel[];
702
+ /**
703
+ * Specification for mounts to be added to containers created as part of the service
704
+ */
603
705
  mounts?: outputs.ServiceTaskSpecContainerSpecMount[];
706
+ /**
707
+ * Security options for the container
708
+ */
604
709
  privileges?: outputs.ServiceTaskSpecContainerSpecPrivileges;
710
+ /**
711
+ * Whether the mount should be read-only
712
+ */
605
713
  readOnly?: boolean;
714
+ /**
715
+ * References to zero or more secrets that will be exposed to the service
716
+ */
606
717
  secrets?: outputs.ServiceTaskSpecContainerSpecSecret[];
718
+ /**
719
+ * Amount of time to wait for the container to terminate before forcefully removing it (ms|s|m|h). If not specified or '0s' the destroy will not check if all tasks/containers of the service terminate.
720
+ */
607
721
  stopGracePeriod: string;
722
+ /**
723
+ * Signal to stop the container
724
+ */
608
725
  stopSignal?: string;
726
+ /**
727
+ * Sysctls config (Linux only)
728
+ */
609
729
  sysctl?: {
610
730
  [key: string]: any;
611
731
  };
732
+ /**
733
+ * SELinux user label
734
+ */
612
735
  user?: string;
613
736
  }
614
737
  export interface ServiceTaskSpecContainerSpecConfig {
738
+ /**
739
+ * ID of the specific config that we're referencing
740
+ */
615
741
  configId: string;
742
+ /**
743
+ * Name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
744
+ */
616
745
  configName?: string;
746
+ /**
747
+ * Represents the file GID. Defaults to `0`.
748
+ */
617
749
  fileGid?: string;
750
+ /**
751
+ * Represents represents the FileMode of the file. Defaults to `0o444`.
752
+ */
618
753
  fileMode?: number;
754
+ /**
755
+ * Represents the final filename in the filesystem
756
+ */
619
757
  fileName: string;
758
+ /**
759
+ * Represents the file UID. Defaults to `0`.
760
+ */
620
761
  fileUid?: string;
621
762
  }
622
763
  export interface ServiceTaskSpecContainerSpecDnsConfig {
764
+ /**
765
+ * The IP addresses of the name servers
766
+ */
623
767
  nameservers: string[];
768
+ /**
769
+ * A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
770
+ */
624
771
  options?: string[];
772
+ /**
773
+ * A search list for host-name lookup
774
+ */
625
775
  searches?: string[];
626
776
  }
627
777
  export interface ServiceTaskSpecContainerSpecHealthcheck {
778
+ /**
779
+ * Time between running the check (ms|s|m|h). Defaults to `0s`.
780
+ */
628
781
  interval?: string;
782
+ /**
783
+ * Consecutive failures needed to report unhealthy. Defaults to `0`
784
+ */
629
785
  retries?: number;
786
+ /**
787
+ * Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
788
+ */
630
789
  startPeriod?: string;
790
+ /**
791
+ * The test to perform as list
792
+ */
631
793
  tests: string[];
794
+ /**
795
+ * The timeout of the service to reach the desired state `(s|m)`. Defaults to `3m`
796
+ */
632
797
  timeout?: string;
633
798
  }
634
799
  export interface ServiceTaskSpecContainerSpecHost {
800
+ /**
801
+ * The name of the host
802
+ */
635
803
  host: string;
804
+ /**
805
+ * The ip of the host
806
+ */
636
807
  ip: string;
637
808
  }
638
809
  export interface ServiceTaskSpecContainerSpecLabel {
@@ -646,26 +817,59 @@ export interface ServiceTaskSpecContainerSpecLabel {
646
817
  value: string;
647
818
  }
648
819
  export interface ServiceTaskSpecContainerSpecMount {
820
+ /**
821
+ * Optional configuration for the bind type
822
+ */
649
823
  bindOptions?: outputs.ServiceTaskSpecContainerSpecMountBindOptions;
824
+ /**
825
+ * Whether the mount should be read-only
826
+ */
650
827
  readOnly?: boolean;
828
+ /**
829
+ * Mount source (e.g. a volume name, a host path)
830
+ */
651
831
  source?: string;
832
+ /**
833
+ * Container path
834
+ */
652
835
  target: string;
836
+ /**
837
+ * Optional configuration for the tmpfs type
838
+ */
653
839
  tmpfsOptions?: outputs.ServiceTaskSpecContainerSpecMountTmpfsOptions;
840
+ /**
841
+ * The mount type
842
+ */
654
843
  type: string;
844
+ /**
845
+ * Optional configuration for the volume type
846
+ */
655
847
  volumeOptions?: outputs.ServiceTaskSpecContainerSpecMountVolumeOptions;
656
848
  }
657
849
  export interface ServiceTaskSpecContainerSpecMountBindOptions {
850
+ /**
851
+ * Bind propagation refers to whether or not mounts created within a given bind-mount or named volume can be propagated to replicas of that mount. See the [docs](https://docs.docker.com/storage/bind-mounts/#configure-bind-propagation) for details. Defaults to `rprivate`
852
+ */
658
853
  propagation?: string;
659
854
  }
660
855
  export interface ServiceTaskSpecContainerSpecMountTmpfsOptions {
661
856
  /**
662
- * Scheduling mode for the service
857
+ * The mode of resolution to use for internal load balancing between tasks
663
858
  */
664
859
  mode?: number;
860
+ /**
861
+ * The size for the tmpfs mount in bytes
862
+ */
665
863
  sizeBytes?: number;
666
864
  }
667
865
  export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
866
+ /**
867
+ * Name of the driver to use to create the volume
868
+ */
668
869
  driverName?: string;
870
+ /**
871
+ * key/value map of driver specific options
872
+ */
669
873
  driverOptions?: {
670
874
  [key: string]: string;
671
875
  };
@@ -673,6 +877,9 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptions {
673
877
  * User-defined key/value metadata
674
878
  */
675
879
  labels?: outputs.ServiceTaskSpecContainerSpecMountVolumeOptionsLabel[];
880
+ /**
881
+ * Populate volume with data from the target
882
+ */
676
883
  noCopy?: boolean;
677
884
  }
678
885
  export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
@@ -686,76 +893,187 @@ export interface ServiceTaskSpecContainerSpecMountVolumeOptionsLabel {
686
893
  value: string;
687
894
  }
688
895
  export interface ServiceTaskSpecContainerSpecPrivileges {
896
+ /**
897
+ * CredentialSpec for managed service account (Windows only)
898
+ */
689
899
  credentialSpec?: outputs.ServiceTaskSpecContainerSpecPrivilegesCredentialSpec;
900
+ /**
901
+ * SELinux labels of the container
902
+ */
690
903
  seLinuxContext?: outputs.ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext;
691
904
  }
692
905
  export interface ServiceTaskSpecContainerSpecPrivilegesCredentialSpec {
906
+ /**
907
+ * Load credential spec from this file
908
+ */
693
909
  file?: string;
910
+ /**
911
+ * Load credential spec from this value in the Windows registry
912
+ */
694
913
  registry?: string;
695
914
  }
696
915
  export interface ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext {
916
+ /**
917
+ * Disable SELinux
918
+ */
697
919
  disable?: boolean;
920
+ /**
921
+ * SELinux level label
922
+ */
698
923
  level?: string;
924
+ /**
925
+ * SELinux role label
926
+ */
699
927
  role?: string;
928
+ /**
929
+ * The mount type
930
+ */
700
931
  type?: string;
932
+ /**
933
+ * SELinux user label
934
+ */
701
935
  user?: string;
702
936
  }
703
937
  export interface ServiceTaskSpecContainerSpecSecret {
938
+ /**
939
+ * Represents the file GID. Defaults to `0`.
940
+ */
704
941
  fileGid?: string;
942
+ /**
943
+ * Represents represents the FileMode of the file. Defaults to `0o444`.
944
+ */
705
945
  fileMode?: number;
946
+ /**
947
+ * Represents the final filename in the filesystem
948
+ */
706
949
  fileName: string;
950
+ /**
951
+ * Represents the file UID. Defaults to `0`.
952
+ */
707
953
  fileUid?: string;
954
+ /**
955
+ * ID of the specific secret that we're referencing
956
+ */
708
957
  secretId: string;
958
+ /**
959
+ * Name of the secret that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID
960
+ */
709
961
  secretName?: string;
710
962
  }
711
963
  export interface ServiceTaskSpecLogDriver {
712
964
  /**
713
- * Name of the service
965
+ * A random name for the port
714
966
  */
715
967
  name: string;
968
+ /**
969
+ * A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.)
970
+ */
716
971
  options?: {
717
972
  [key: string]: string;
718
973
  };
719
974
  }
720
975
  export interface ServiceTaskSpecNetworksAdvanced {
976
+ /**
977
+ * The network aliases of the container in the specific network.
978
+ */
721
979
  aliases?: string[];
980
+ /**
981
+ * An array of driver options for the network, e.g. `opts1=value`
982
+ */
722
983
  driverOpts?: string[];
723
984
  /**
724
- * Name of the service
985
+ * A random name for the port
725
986
  */
726
987
  name: string;
727
988
  }
728
989
  export interface ServiceTaskSpecPlacement {
990
+ /**
991
+ * An array of constraints. e.g.: `node.role==manager`
992
+ */
729
993
  constraints?: string[];
994
+ /**
995
+ * Maximum number of replicas for per node (default value is `0`, which is unlimited)
996
+ */
730
997
  maxReplicas?: number;
998
+ /**
999
+ * Platforms stores all the platforms that the service's image can run on
1000
+ */
731
1001
  platforms?: outputs.ServiceTaskSpecPlacementPlatform[];
1002
+ /**
1003
+ * Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence, e.g.: `spread=node.role.manager`
1004
+ */
732
1005
  prefs?: string[];
733
1006
  }
734
1007
  export interface ServiceTaskSpecPlacementPlatform {
1008
+ /**
1009
+ * The architecture, e.g. `amd64`
1010
+ */
735
1011
  architecture: string;
1012
+ /**
1013
+ * The operation system, e.g. `linux`
1014
+ */
736
1015
  os: string;
737
1016
  }
738
1017
  export interface ServiceTaskSpecResources {
1018
+ /**
1019
+ * Describes the resources which can be advertised by a node and requested by a task
1020
+ */
739
1021
  limits?: outputs.ServiceTaskSpecResourcesLimits;
1022
+ /**
1023
+ * An object describing the resources which can be advertised by a node and requested by a task
1024
+ */
740
1025
  reservation?: outputs.ServiceTaskSpecResourcesReservation;
741
1026
  }
742
1027
  export interface ServiceTaskSpecResourcesLimits {
1028
+ /**
1029
+ * The amounf of memory in bytes the container allocates
1030
+ */
743
1031
  memoryBytes?: number;
1032
+ /**
1033
+ * CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
1034
+ */
744
1035
  nanoCpus?: number;
745
1036
  }
746
1037
  export interface ServiceTaskSpecResourcesReservation {
1038
+ /**
1039
+ * User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, GPU=UUID1)
1040
+ */
747
1041
  genericResources?: outputs.ServiceTaskSpecResourcesReservationGenericResources;
1042
+ /**
1043
+ * The amounf of memory in bytes the container allocates
1044
+ */
748
1045
  memoryBytes?: number;
1046
+ /**
1047
+ * CPU shares in units of `1/1e9` (or `10^-9`) of the CPU. Should be at least `1000000`
1048
+ */
749
1049
  nanoCpus?: number;
750
1050
  }
751
1051
  export interface ServiceTaskSpecResourcesReservationGenericResources {
1052
+ /**
1053
+ * The Integer resources
1054
+ */
752
1055
  discreteResourcesSpecs?: string[];
1056
+ /**
1057
+ * The String resources
1058
+ */
753
1059
  namedResourcesSpecs?: string[];
754
1060
  }
755
1061
  export interface ServiceTaskSpecRestartPolicy {
1062
+ /**
1063
+ * Condition for restart
1064
+ */
756
1065
  condition?: string;
1066
+ /**
1067
+ * The interval to check if the desired state is reached `(ms|s)`. Defaults to `7s`.
1068
+ */
757
1069
  delay?: string;
1070
+ /**
1071
+ * Maximum attempts to restart a given container before giving up (default value is `0`, which is ignored)
1072
+ */
758
1073
  maxAttempts?: number;
1074
+ /**
1075
+ * The time window used to evaluate the restart policy (default value is `0`, which is unbounded) (ms|s|m|h)
1076
+ */
759
1077
  window?: string;
760
1078
  }
761
1079
  export interface ServiceUpdateConfig {