pulumi-docker 4.7.0a1747374653__py3-none-any.whl → 4.7.0a1747852246__py3-none-any.whl
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.
Potentially problematic release.
This version of pulumi-docker might be problematic. Click here for more details.
- pulumi_docker/__init__.py +1 -0
- pulumi_docker/_inputs.py +345 -30
- pulumi_docker/config/__init__.pyi +12 -0
- pulumi_docker/config/vars.py +16 -0
- pulumi_docker/container.py +82 -35
- pulumi_docker/get_registry_image_manifests.py +151 -0
- pulumi_docker/network.py +9 -0
- pulumi_docker/outputs.py +261 -22
- pulumi_docker/provider.py +55 -0
- pulumi_docker/pulumi-plugin.json +1 -1
- pulumi_docker/registry_image.py +49 -0
- pulumi_docker/remote_image.py +6 -133
- pulumi_docker/tag.py +48 -1
- {pulumi_docker-4.7.0a1747374653.dist-info → pulumi_docker-4.7.0a1747852246.dist-info}/METADATA +1 -1
- pulumi_docker-4.7.0a1747852246.dist-info/RECORD +33 -0
- {pulumi_docker-4.7.0a1747374653.dist-info → pulumi_docker-4.7.0a1747852246.dist-info}/WHEEL +1 -1
- pulumi_docker-4.7.0a1747374653.dist-info/RECORD +0 -32
- {pulumi_docker-4.7.0a1747374653.dist-info → pulumi_docker-4.7.0a1747852246.dist-info}/top_level.txt +0 -0
pulumi_docker/container.py
CHANGED
|
@@ -30,6 +30,7 @@ class ContainerArgs:
|
|
|
30
30
|
container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
31
31
|
cpu_set: Optional[pulumi.Input[builtins.str]] = None,
|
|
32
32
|
cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
|
|
33
|
+
cpus: Optional[pulumi.Input[builtins.str]] = None,
|
|
33
34
|
destroy_grace_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
34
35
|
devices: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]]] = None,
|
|
35
36
|
dns: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
@@ -86,21 +87,22 @@ class ContainerArgs:
|
|
|
86
87
|
working_dir: Optional[pulumi.Input[builtins.str]] = None):
|
|
87
88
|
"""
|
|
88
89
|
The set of arguments for constructing a Container resource.
|
|
89
|
-
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
90
|
+
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
90
91
|
:param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
91
92
|
:param pulumi.Input['ContainerCapabilitiesArgs'] capabilities: Add or drop certrain linux capabilities.
|
|
92
93
|
:param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
|
|
93
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
94
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
94
95
|
:param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
|
|
95
96
|
:param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
96
97
|
:param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
|
|
98
|
+
:param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
97
99
|
:param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
98
100
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]] devices: Bind devices to the container.
|
|
99
101
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
|
|
100
102
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_opts: DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
101
103
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_searches: DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
102
104
|
:param pulumi.Input[builtins.str] domainname: Domain name of the container.
|
|
103
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
105
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
104
106
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] envs: Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
105
107
|
:param pulumi.Input[builtins.str] gpus: GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
|
|
106
108
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] group_adds: Additional groups for the container user
|
|
@@ -118,7 +120,7 @@ class ContainerArgs:
|
|
|
118
120
|
:param pulumi.Input[builtins.int] memory_swap: The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
119
121
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
120
122
|
:param pulumi.Input[builtins.str] name: The name of the container.
|
|
121
|
-
:param pulumi.Input[builtins.str] network_mode: Network mode of the container.
|
|
123
|
+
:param pulumi.Input[builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
122
124
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworksAdvancedArgs']]] networks_advanced: The networks the container is attached to
|
|
123
125
|
:param pulumi.Input[builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
124
126
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerPortArgs']]] ports: Publish a container's port(s) to the host.
|
|
@@ -144,7 +146,7 @@ class ContainerArgs:
|
|
|
144
146
|
:param pulumi.Input[builtins.str] user: User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
145
147
|
:param pulumi.Input[builtins.str] userns_mode: Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
146
148
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerVolumeArgs']]] volumes: Spec for mounting volumes in the container.
|
|
147
|
-
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
149
|
+
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
148
150
|
:param pulumi.Input[builtins.int] wait_timeout: The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`.
|
|
149
151
|
:param pulumi.Input[builtins.str] working_dir: The working directory for commands to run in.
|
|
150
152
|
"""
|
|
@@ -163,6 +165,8 @@ class ContainerArgs:
|
|
|
163
165
|
pulumi.set(__self__, "cpu_set", cpu_set)
|
|
164
166
|
if cpu_shares is not None:
|
|
165
167
|
pulumi.set(__self__, "cpu_shares", cpu_shares)
|
|
168
|
+
if cpus is not None:
|
|
169
|
+
pulumi.set(__self__, "cpus", cpus)
|
|
166
170
|
if destroy_grace_seconds is not None:
|
|
167
171
|
pulumi.set(__self__, "destroy_grace_seconds", destroy_grace_seconds)
|
|
168
172
|
if devices is not None:
|
|
@@ -276,7 +280,7 @@ class ContainerArgs:
|
|
|
276
280
|
@pulumi.getter
|
|
277
281
|
def image(self) -> pulumi.Input[builtins.str]:
|
|
278
282
|
"""
|
|
279
|
-
The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
283
|
+
The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
280
284
|
"""
|
|
281
285
|
return pulumi.get(self, "image")
|
|
282
286
|
|
|
@@ -324,7 +328,7 @@ class ContainerArgs:
|
|
|
324
328
|
@pulumi.getter
|
|
325
329
|
def command(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
326
330
|
"""
|
|
327
|
-
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
331
|
+
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
328
332
|
"""
|
|
329
333
|
return pulumi.get(self, "command")
|
|
330
334
|
|
|
@@ -368,6 +372,18 @@ class ContainerArgs:
|
|
|
368
372
|
def cpu_shares(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
369
373
|
pulumi.set(self, "cpu_shares", value)
|
|
370
374
|
|
|
375
|
+
@property
|
|
376
|
+
@pulumi.getter
|
|
377
|
+
def cpus(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
378
|
+
"""
|
|
379
|
+
Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
380
|
+
"""
|
|
381
|
+
return pulumi.get(self, "cpus")
|
|
382
|
+
|
|
383
|
+
@cpus.setter
|
|
384
|
+
def cpus(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
385
|
+
pulumi.set(self, "cpus", value)
|
|
386
|
+
|
|
371
387
|
@property
|
|
372
388
|
@pulumi.getter(name="destroyGraceSeconds")
|
|
373
389
|
def destroy_grace_seconds(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
@@ -444,7 +460,7 @@ class ContainerArgs:
|
|
|
444
460
|
@pulumi.getter
|
|
445
461
|
def entrypoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
446
462
|
"""
|
|
447
|
-
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
463
|
+
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
448
464
|
"""
|
|
449
465
|
return pulumi.get(self, "entrypoints")
|
|
450
466
|
|
|
@@ -669,7 +685,7 @@ class ContainerArgs:
|
|
|
669
685
|
@pulumi.getter(name="networkMode")
|
|
670
686
|
def network_mode(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
671
687
|
"""
|
|
672
|
-
Network mode of the container.
|
|
688
|
+
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
673
689
|
"""
|
|
674
690
|
return pulumi.get(self, "network_mode")
|
|
675
691
|
|
|
@@ -981,7 +997,7 @@ class ContainerArgs:
|
|
|
981
997
|
@pulumi.getter
|
|
982
998
|
def wait(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
983
999
|
"""
|
|
984
|
-
If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
1000
|
+
If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
985
1001
|
"""
|
|
986
1002
|
return pulumi.get(self, "wait")
|
|
987
1003
|
|
|
@@ -1026,6 +1042,7 @@ class _ContainerState:
|
|
|
1026
1042
|
container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
1027
1043
|
cpu_set: Optional[pulumi.Input[builtins.str]] = None,
|
|
1028
1044
|
cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
|
|
1045
|
+
cpus: Optional[pulumi.Input[builtins.str]] = None,
|
|
1029
1046
|
destroy_grace_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
1030
1047
|
devices: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]]] = None,
|
|
1031
1048
|
dns: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
@@ -1089,18 +1106,19 @@ class _ContainerState:
|
|
|
1089
1106
|
:param pulumi.Input[builtins.str] bridge: The network bridge of the container as read from its NetworkSettings.
|
|
1090
1107
|
:param pulumi.Input['ContainerCapabilitiesArgs'] capabilities: Add or drop certrain linux capabilities.
|
|
1091
1108
|
:param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
|
|
1092
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
1109
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
1093
1110
|
:param pulumi.Input[builtins.str] container_logs: The logs of the container if its execution is done (`attach` must be disabled).
|
|
1094
1111
|
:param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
|
|
1095
1112
|
:param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
1096
1113
|
:param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
|
|
1114
|
+
:param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
1097
1115
|
:param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
1098
1116
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerDeviceArgs']]] devices: Bind devices to the container.
|
|
1099
1117
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
|
|
1100
1118
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_opts: DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
1101
1119
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_searches: DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
1102
1120
|
:param pulumi.Input[builtins.str] domainname: Domain name of the container.
|
|
1103
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
1121
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
1104
1122
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] envs: Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
1105
1123
|
:param pulumi.Input[builtins.int] exit_code: The exit code of the container if its execution is done (`must_run` must be disabled).
|
|
1106
1124
|
:param pulumi.Input[builtins.str] gpus: GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
|
|
@@ -1108,7 +1126,7 @@ class _ContainerState:
|
|
|
1108
1126
|
:param pulumi.Input['ContainerHealthcheckArgs'] healthcheck: A test to perform to check that the container is healthy
|
|
1109
1127
|
:param pulumi.Input[builtins.str] hostname: Hostname of the container.
|
|
1110
1128
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerHostArgs']]] hosts: Additional hosts to add to the container.
|
|
1111
|
-
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
1129
|
+
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
1112
1130
|
:param pulumi.Input[builtins.bool] init: Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
1113
1131
|
:param pulumi.Input[builtins.str] ipc_mode: IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
1114
1132
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerLabelArgs']]] labels: User-defined key/value metadata
|
|
@@ -1121,7 +1139,7 @@ class _ContainerState:
|
|
|
1121
1139
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
1122
1140
|
:param pulumi.Input[builtins.str] name: The name of the container.
|
|
1123
1141
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworkDataArgs']]] network_datas: The data of the networks the container is connected to.
|
|
1124
|
-
:param pulumi.Input[builtins.str] network_mode: Network mode of the container.
|
|
1142
|
+
:param pulumi.Input[builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
1125
1143
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworksAdvancedArgs']]] networks_advanced: The networks the container is attached to
|
|
1126
1144
|
:param pulumi.Input[builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
1127
1145
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerPortArgs']]] ports: Publish a container's port(s) to the host.
|
|
@@ -1147,7 +1165,7 @@ class _ContainerState:
|
|
|
1147
1165
|
:param pulumi.Input[builtins.str] user: User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
1148
1166
|
:param pulumi.Input[builtins.str] userns_mode: Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
1149
1167
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerVolumeArgs']]] volumes: Spec for mounting volumes in the container.
|
|
1150
|
-
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
1168
|
+
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
1151
1169
|
:param pulumi.Input[builtins.int] wait_timeout: The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`.
|
|
1152
1170
|
:param pulumi.Input[builtins.str] working_dir: The working directory for commands to run in.
|
|
1153
1171
|
"""
|
|
@@ -1169,6 +1187,8 @@ class _ContainerState:
|
|
|
1169
1187
|
pulumi.set(__self__, "cpu_set", cpu_set)
|
|
1170
1188
|
if cpu_shares is not None:
|
|
1171
1189
|
pulumi.set(__self__, "cpu_shares", cpu_shares)
|
|
1190
|
+
if cpus is not None:
|
|
1191
|
+
pulumi.set(__self__, "cpus", cpus)
|
|
1172
1192
|
if destroy_grace_seconds is not None:
|
|
1173
1193
|
pulumi.set(__self__, "destroy_grace_seconds", destroy_grace_seconds)
|
|
1174
1194
|
if devices is not None:
|
|
@@ -1336,7 +1356,7 @@ class _ContainerState:
|
|
|
1336
1356
|
@pulumi.getter
|
|
1337
1357
|
def command(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
1338
1358
|
"""
|
|
1339
|
-
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
1359
|
+
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
1340
1360
|
"""
|
|
1341
1361
|
return pulumi.get(self, "command")
|
|
1342
1362
|
|
|
@@ -1392,6 +1412,18 @@ class _ContainerState:
|
|
|
1392
1412
|
def cpu_shares(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
1393
1413
|
pulumi.set(self, "cpu_shares", value)
|
|
1394
1414
|
|
|
1415
|
+
@property
|
|
1416
|
+
@pulumi.getter
|
|
1417
|
+
def cpus(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
1418
|
+
"""
|
|
1419
|
+
Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
1420
|
+
"""
|
|
1421
|
+
return pulumi.get(self, "cpus")
|
|
1422
|
+
|
|
1423
|
+
@cpus.setter
|
|
1424
|
+
def cpus(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
1425
|
+
pulumi.set(self, "cpus", value)
|
|
1426
|
+
|
|
1395
1427
|
@property
|
|
1396
1428
|
@pulumi.getter(name="destroyGraceSeconds")
|
|
1397
1429
|
def destroy_grace_seconds(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
@@ -1468,7 +1500,7 @@ class _ContainerState:
|
|
|
1468
1500
|
@pulumi.getter
|
|
1469
1501
|
def entrypoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
1470
1502
|
"""
|
|
1471
|
-
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
1503
|
+
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
1472
1504
|
"""
|
|
1473
1505
|
return pulumi.get(self, "entrypoints")
|
|
1474
1506
|
|
|
@@ -1564,7 +1596,7 @@ class _ContainerState:
|
|
|
1564
1596
|
@pulumi.getter
|
|
1565
1597
|
def image(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
1566
1598
|
"""
|
|
1567
|
-
The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
1599
|
+
The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
1568
1600
|
"""
|
|
1569
1601
|
return pulumi.get(self, "image")
|
|
1570
1602
|
|
|
@@ -1729,7 +1761,7 @@ class _ContainerState:
|
|
|
1729
1761
|
@pulumi.getter(name="networkMode")
|
|
1730
1762
|
def network_mode(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
1731
1763
|
"""
|
|
1732
|
-
Network mode of the container.
|
|
1764
|
+
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
1733
1765
|
"""
|
|
1734
1766
|
return pulumi.get(self, "network_mode")
|
|
1735
1767
|
|
|
@@ -2041,7 +2073,7 @@ class _ContainerState:
|
|
|
2041
2073
|
@pulumi.getter
|
|
2042
2074
|
def wait(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
2043
2075
|
"""
|
|
2044
|
-
If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2076
|
+
If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2045
2077
|
"""
|
|
2046
2078
|
return pulumi.get(self, "wait")
|
|
2047
2079
|
|
|
@@ -2087,6 +2119,7 @@ class Container(pulumi.CustomResource):
|
|
|
2087
2119
|
container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2088
2120
|
cpu_set: Optional[pulumi.Input[builtins.str]] = None,
|
|
2089
2121
|
cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
|
|
2122
|
+
cpus: Optional[pulumi.Input[builtins.str]] = None,
|
|
2090
2123
|
destroy_grace_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2091
2124
|
devices: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]]] = None,
|
|
2092
2125
|
dns: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
@@ -2208,24 +2241,25 @@ class Container(pulumi.CustomResource):
|
|
|
2208
2241
|
:param pulumi.Input[builtins.bool] attach: If `true` attach to the container after its creation and waits the end of its execution. Defaults to `false`.
|
|
2209
2242
|
:param pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']] capabilities: Add or drop certrain linux capabilities.
|
|
2210
2243
|
:param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
|
|
2211
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
2244
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
2212
2245
|
:param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
|
|
2213
2246
|
:param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
2214
2247
|
:param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
|
|
2248
|
+
:param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
2215
2249
|
:param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
2216
2250
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]] devices: Bind devices to the container.
|
|
2217
2251
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
|
|
2218
2252
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_opts: DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
2219
2253
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_searches: DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
2220
2254
|
:param pulumi.Input[builtins.str] domainname: Domain name of the container.
|
|
2221
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
2255
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
2222
2256
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] envs: Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
2223
2257
|
:param pulumi.Input[builtins.str] gpus: GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
|
|
2224
2258
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] group_adds: Additional groups for the container user
|
|
2225
2259
|
:param pulumi.Input[Union['ContainerHealthcheckArgs', 'ContainerHealthcheckArgsDict']] healthcheck: A test to perform to check that the container is healthy
|
|
2226
2260
|
:param pulumi.Input[builtins.str] hostname: Hostname of the container.
|
|
2227
2261
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHostArgs', 'ContainerHostArgsDict']]]] hosts: Additional hosts to add to the container.
|
|
2228
|
-
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
2262
|
+
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
2229
2263
|
:param pulumi.Input[builtins.bool] init: Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
2230
2264
|
:param pulumi.Input[builtins.str] ipc_mode: IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
2231
2265
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerLabelArgs', 'ContainerLabelArgsDict']]]] labels: User-defined key/value metadata
|
|
@@ -2237,7 +2271,7 @@ class Container(pulumi.CustomResource):
|
|
|
2237
2271
|
:param pulumi.Input[builtins.int] memory_swap: The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation.
|
|
2238
2272
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
2239
2273
|
:param pulumi.Input[builtins.str] name: The name of the container.
|
|
2240
|
-
:param pulumi.Input[builtins.str] network_mode: Network mode of the container.
|
|
2274
|
+
:param pulumi.Input[builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
2241
2275
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworksAdvancedArgs', 'ContainerNetworksAdvancedArgsDict']]]] networks_advanced: The networks the container is attached to
|
|
2242
2276
|
:param pulumi.Input[builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
2243
2277
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerPortArgs', 'ContainerPortArgsDict']]]] ports: Publish a container's port(s) to the host.
|
|
@@ -2263,7 +2297,7 @@ class Container(pulumi.CustomResource):
|
|
|
2263
2297
|
:param pulumi.Input[builtins.str] user: User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
2264
2298
|
:param pulumi.Input[builtins.str] userns_mode: Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
2265
2299
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerVolumeArgs', 'ContainerVolumeArgsDict']]]] volumes: Spec for mounting volumes in the container.
|
|
2266
|
-
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2300
|
+
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2267
2301
|
:param pulumi.Input[builtins.int] wait_timeout: The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`.
|
|
2268
2302
|
:param pulumi.Input[builtins.str] working_dir: The working directory for commands to run in.
|
|
2269
2303
|
"""
|
|
@@ -2355,6 +2389,7 @@ class Container(pulumi.CustomResource):
|
|
|
2355
2389
|
container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2356
2390
|
cpu_set: Optional[pulumi.Input[builtins.str]] = None,
|
|
2357
2391
|
cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
|
|
2392
|
+
cpus: Optional[pulumi.Input[builtins.str]] = None,
|
|
2358
2393
|
destroy_grace_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2359
2394
|
devices: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]]] = None,
|
|
2360
2395
|
dns: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
@@ -2426,6 +2461,7 @@ class Container(pulumi.CustomResource):
|
|
|
2426
2461
|
__props__.__dict__["container_read_refresh_timeout_milliseconds"] = container_read_refresh_timeout_milliseconds
|
|
2427
2462
|
__props__.__dict__["cpu_set"] = cpu_set
|
|
2428
2463
|
__props__.__dict__["cpu_shares"] = cpu_shares
|
|
2464
|
+
__props__.__dict__["cpus"] = cpus
|
|
2429
2465
|
__props__.__dict__["destroy_grace_seconds"] = destroy_grace_seconds
|
|
2430
2466
|
__props__.__dict__["devices"] = devices
|
|
2431
2467
|
__props__.__dict__["dns"] = dns
|
|
@@ -2506,6 +2542,7 @@ class Container(pulumi.CustomResource):
|
|
|
2506
2542
|
container_read_refresh_timeout_milliseconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2507
2543
|
cpu_set: Optional[pulumi.Input[builtins.str]] = None,
|
|
2508
2544
|
cpu_shares: Optional[pulumi.Input[builtins.int]] = None,
|
|
2545
|
+
cpus: Optional[pulumi.Input[builtins.str]] = None,
|
|
2509
2546
|
destroy_grace_seconds: Optional[pulumi.Input[builtins.int]] = None,
|
|
2510
2547
|
devices: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]]] = None,
|
|
2511
2548
|
dns: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
@@ -2574,18 +2611,19 @@ class Container(pulumi.CustomResource):
|
|
|
2574
2611
|
:param pulumi.Input[builtins.str] bridge: The network bridge of the container as read from its NetworkSettings.
|
|
2575
2612
|
:param pulumi.Input[Union['ContainerCapabilitiesArgs', 'ContainerCapabilitiesArgsDict']] capabilities: Add or drop certrain linux capabilities.
|
|
2576
2613
|
:param pulumi.Input[builtins.str] cgroupns_mode: Cgroup namespace mode to use for the container. Possible values are: `private`, `host`.
|
|
2577
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
2614
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] command: The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
2578
2615
|
:param pulumi.Input[builtins.str] container_logs: The logs of the container if its execution is done (`attach` must be disabled).
|
|
2579
2616
|
:param pulumi.Input[builtins.int] container_read_refresh_timeout_milliseconds: The total number of milliseconds to wait for the container to reach status 'running'
|
|
2580
2617
|
:param pulumi.Input[builtins.str] cpu_set: A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`.
|
|
2581
2618
|
:param pulumi.Input[builtins.int] cpu_shares: CPU shares (relative weight) for the container.
|
|
2619
|
+
:param pulumi.Input[builtins.str] cpus: Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
2582
2620
|
:param pulumi.Input[builtins.int] destroy_grace_seconds: If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop.
|
|
2583
2621
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerDeviceArgs', 'ContainerDeviceArgsDict']]]] devices: Bind devices to the container.
|
|
2584
2622
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns: DNS servers to use.
|
|
2585
2623
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_opts: DNS options used by the DNS provider(s), see `resolv.conf` documentation for valid list of options.
|
|
2586
2624
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] dns_searches: DNS search domains that are used when bare unqualified hostnames are used inside of the container.
|
|
2587
2625
|
:param pulumi.Input[builtins.str] domainname: Domain name of the container.
|
|
2588
|
-
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
2626
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] entrypoints: The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
2589
2627
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] envs: Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0`
|
|
2590
2628
|
:param pulumi.Input[builtins.int] exit_code: The exit code of the container if its execution is done (`must_run` must be disabled).
|
|
2591
2629
|
:param pulumi.Input[builtins.str] gpus: GPU devices to add to the container. Currently, only the value `all` is supported. Passing any other value will result in unexpected behavior.
|
|
@@ -2593,7 +2631,7 @@ class Container(pulumi.CustomResource):
|
|
|
2593
2631
|
:param pulumi.Input[Union['ContainerHealthcheckArgs', 'ContainerHealthcheckArgsDict']] healthcheck: A test to perform to check that the container is healthy
|
|
2594
2632
|
:param pulumi.Input[builtins.str] hostname: Hostname of the container.
|
|
2595
2633
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerHostArgs', 'ContainerHostArgsDict']]]] hosts: Additional hosts to add to the container.
|
|
2596
|
-
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
2634
|
+
:param pulumi.Input[builtins.str] image: The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
2597
2635
|
:param pulumi.Input[builtins.bool] init: Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults.
|
|
2598
2636
|
:param pulumi.Input[builtins.str] ipc_mode: IPC sharing mode for the container. Possible values are: `none`, `private`, `shareable`, `container:<name|id>` or `host`.
|
|
2599
2637
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerLabelArgs', 'ContainerLabelArgsDict']]]] labels: User-defined key/value metadata
|
|
@@ -2606,7 +2644,7 @@ class Container(pulumi.CustomResource):
|
|
|
2606
2644
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
2607
2645
|
:param pulumi.Input[builtins.str] name: The name of the container.
|
|
2608
2646
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworkDataArgs', 'ContainerNetworkDataArgsDict']]]] network_datas: The data of the networks the container is connected to.
|
|
2609
|
-
:param pulumi.Input[builtins.str] network_mode: Network mode of the container.
|
|
2647
|
+
:param pulumi.Input[builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
2610
2648
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworksAdvancedArgs', 'ContainerNetworksAdvancedArgsDict']]]] networks_advanced: The networks the container is attached to
|
|
2611
2649
|
:param pulumi.Input[builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
2612
2650
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerPortArgs', 'ContainerPortArgsDict']]]] ports: Publish a container's port(s) to the host.
|
|
@@ -2632,7 +2670,7 @@ class Container(pulumi.CustomResource):
|
|
|
2632
2670
|
:param pulumi.Input[builtins.str] user: User used for run the first process. Format is `user` or `user:group` which user and group can be passed literraly or by name.
|
|
2633
2671
|
:param pulumi.Input[builtins.str] userns_mode: Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
|
2634
2672
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerVolumeArgs', 'ContainerVolumeArgsDict']]]] volumes: Spec for mounting volumes in the container.
|
|
2635
|
-
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2673
|
+
:param pulumi.Input[builtins.bool] wait: If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
2636
2674
|
:param pulumi.Input[builtins.int] wait_timeout: The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`.
|
|
2637
2675
|
:param pulumi.Input[builtins.str] working_dir: The working directory for commands to run in.
|
|
2638
2676
|
"""
|
|
@@ -2649,6 +2687,7 @@ class Container(pulumi.CustomResource):
|
|
|
2649
2687
|
__props__.__dict__["container_read_refresh_timeout_milliseconds"] = container_read_refresh_timeout_milliseconds
|
|
2650
2688
|
__props__.__dict__["cpu_set"] = cpu_set
|
|
2651
2689
|
__props__.__dict__["cpu_shares"] = cpu_shares
|
|
2690
|
+
__props__.__dict__["cpus"] = cpus
|
|
2652
2691
|
__props__.__dict__["destroy_grace_seconds"] = destroy_grace_seconds
|
|
2653
2692
|
__props__.__dict__["devices"] = devices
|
|
2654
2693
|
__props__.__dict__["dns"] = dns
|
|
@@ -2744,7 +2783,7 @@ class Container(pulumi.CustomResource):
|
|
|
2744
2783
|
@pulumi.getter
|
|
2745
2784
|
def command(self) -> pulumi.Output[Sequence[builtins.str]]:
|
|
2746
2785
|
"""
|
|
2747
|
-
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.
|
|
2786
|
+
The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`.
|
|
2748
2787
|
"""
|
|
2749
2788
|
return pulumi.get(self, "command")
|
|
2750
2789
|
|
|
@@ -2780,6 +2819,14 @@ class Container(pulumi.CustomResource):
|
|
|
2780
2819
|
"""
|
|
2781
2820
|
return pulumi.get(self, "cpu_shares")
|
|
2782
2821
|
|
|
2822
|
+
@property
|
|
2823
|
+
@pulumi.getter
|
|
2824
|
+
def cpus(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
2825
|
+
"""
|
|
2826
|
+
Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs
|
|
2827
|
+
"""
|
|
2828
|
+
return pulumi.get(self, "cpus")
|
|
2829
|
+
|
|
2783
2830
|
@property
|
|
2784
2831
|
@pulumi.getter(name="destroyGraceSeconds")
|
|
2785
2832
|
def destroy_grace_seconds(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
@@ -2832,7 +2879,7 @@ class Container(pulumi.CustomResource):
|
|
|
2832
2879
|
@pulumi.getter
|
|
2833
2880
|
def entrypoints(self) -> pulumi.Output[Sequence[builtins.str]]:
|
|
2834
2881
|
"""
|
|
2835
|
-
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/
|
|
2882
|
+
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`.
|
|
2836
2883
|
"""
|
|
2837
2884
|
return pulumi.get(self, "entrypoints")
|
|
2838
2885
|
|
|
@@ -2896,7 +2943,7 @@ class Container(pulumi.CustomResource):
|
|
|
2896
2943
|
@pulumi.getter
|
|
2897
2944
|
def image(self) -> pulumi.Output[builtins.str]:
|
|
2898
2945
|
"""
|
|
2899
|
-
The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example.
|
|
2946
|
+
The ID of the image to back this container. The easiest way to get this value is to use the `image_id` attribute of the `RemoteImage` resource as is shown in the example.
|
|
2900
2947
|
"""
|
|
2901
2948
|
return pulumi.get(self, "image")
|
|
2902
2949
|
|
|
@@ -3005,7 +3052,7 @@ class Container(pulumi.CustomResource):
|
|
|
3005
3052
|
@pulumi.getter(name="networkMode")
|
|
3006
3053
|
def network_mode(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
3007
3054
|
"""
|
|
3008
|
-
Network mode of the container.
|
|
3055
|
+
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
3009
3056
|
"""
|
|
3010
3057
|
return pulumi.get(self, "network_mode")
|
|
3011
3058
|
|
|
@@ -3213,7 +3260,7 @@ class Container(pulumi.CustomResource):
|
|
|
3213
3260
|
@pulumi.getter
|
|
3214
3261
|
def wait(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
3215
3262
|
"""
|
|
3216
|
-
If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
3263
|
+
If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`.
|
|
3217
3264
|
"""
|
|
3218
3265
|
return pulumi.get(self, "wait")
|
|
3219
3266
|
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from . import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'GetRegistryImageManifestsResult',
|
|
22
|
+
'AwaitableGetRegistryImageManifestsResult',
|
|
23
|
+
'get_registry_image_manifests',
|
|
24
|
+
'get_registry_image_manifests_output',
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
@pulumi.output_type
|
|
28
|
+
class GetRegistryImageManifestsResult:
|
|
29
|
+
"""
|
|
30
|
+
A collection of values returned by getRegistryImageManifests.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(__self__, auth_config=None, id=None, insecure_skip_verify=None, manifests=None, name=None):
|
|
33
|
+
if auth_config and not isinstance(auth_config, dict):
|
|
34
|
+
raise TypeError("Expected argument 'auth_config' to be a dict")
|
|
35
|
+
pulumi.set(__self__, "auth_config", auth_config)
|
|
36
|
+
if id and not isinstance(id, str):
|
|
37
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
38
|
+
pulumi.set(__self__, "id", id)
|
|
39
|
+
if insecure_skip_verify and not isinstance(insecure_skip_verify, bool):
|
|
40
|
+
raise TypeError("Expected argument 'insecure_skip_verify' to be a bool")
|
|
41
|
+
pulumi.set(__self__, "insecure_skip_verify", insecure_skip_verify)
|
|
42
|
+
if manifests and not isinstance(manifests, list):
|
|
43
|
+
raise TypeError("Expected argument 'manifests' to be a list")
|
|
44
|
+
pulumi.set(__self__, "manifests", manifests)
|
|
45
|
+
if name and not isinstance(name, str):
|
|
46
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
47
|
+
pulumi.set(__self__, "name", name)
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
@pulumi.getter(name="authConfig")
|
|
51
|
+
def auth_config(self) -> Optional['outputs.GetRegistryImageManifestsAuthConfigResult']:
|
|
52
|
+
"""
|
|
53
|
+
Authentication configuration for the Docker registry. It is only used for this resource.
|
|
54
|
+
"""
|
|
55
|
+
return pulumi.get(self, "auth_config")
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter
|
|
59
|
+
def id(self) -> builtins.str:
|
|
60
|
+
"""
|
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "id")
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter(name="insecureSkipVerify")
|
|
67
|
+
def insecure_skip_verify(self) -> Optional[builtins.bool]:
|
|
68
|
+
"""
|
|
69
|
+
If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "insecure_skip_verify")
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter
|
|
75
|
+
def manifests(self) -> Sequence['outputs.GetRegistryImageManifestsManifestResult']:
|
|
76
|
+
"""
|
|
77
|
+
The metadata for each manifest in the image
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "manifests")
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter
|
|
83
|
+
def name(self) -> builtins.str:
|
|
84
|
+
"""
|
|
85
|
+
The name of the Docker image, including any tags. e.g. `alpine:latest`
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "name")
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class AwaitableGetRegistryImageManifestsResult(GetRegistryImageManifestsResult):
|
|
91
|
+
# pylint: disable=using-constant-test
|
|
92
|
+
def __await__(self):
|
|
93
|
+
if False:
|
|
94
|
+
yield self
|
|
95
|
+
return GetRegistryImageManifestsResult(
|
|
96
|
+
auth_config=self.auth_config,
|
|
97
|
+
id=self.id,
|
|
98
|
+
insecure_skip_verify=self.insecure_skip_verify,
|
|
99
|
+
manifests=self.manifests,
|
|
100
|
+
name=self.name)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def get_registry_image_manifests(auth_config: Optional[Union['GetRegistryImageManifestsAuthConfigArgs', 'GetRegistryImageManifestsAuthConfigArgsDict']] = None,
|
|
104
|
+
insecure_skip_verify: Optional[builtins.bool] = None,
|
|
105
|
+
name: Optional[builtins.str] = None,
|
|
106
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegistryImageManifestsResult:
|
|
107
|
+
"""
|
|
108
|
+
Reads the image metadata for each manifest in a Docker multi-arch image from a Docker Registry.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param Union['GetRegistryImageManifestsAuthConfigArgs', 'GetRegistryImageManifestsAuthConfigArgsDict'] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
|
|
112
|
+
:param builtins.bool insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
|
113
|
+
:param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`
|
|
114
|
+
"""
|
|
115
|
+
__args__ = dict()
|
|
116
|
+
__args__['authConfig'] = auth_config
|
|
117
|
+
__args__['insecureSkipVerify'] = insecure_skip_verify
|
|
118
|
+
__args__['name'] = name
|
|
119
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
120
|
+
__ret__ = pulumi.runtime.invoke('docker:index/getRegistryImageManifests:getRegistryImageManifests', __args__, opts=opts, typ=GetRegistryImageManifestsResult).value
|
|
121
|
+
|
|
122
|
+
return AwaitableGetRegistryImageManifestsResult(
|
|
123
|
+
auth_config=pulumi.get(__ret__, 'auth_config'),
|
|
124
|
+
id=pulumi.get(__ret__, 'id'),
|
|
125
|
+
insecure_skip_verify=pulumi.get(__ret__, 'insecure_skip_verify'),
|
|
126
|
+
manifests=pulumi.get(__ret__, 'manifests'),
|
|
127
|
+
name=pulumi.get(__ret__, 'name'))
|
|
128
|
+
def get_registry_image_manifests_output(auth_config: Optional[pulumi.Input[Optional[Union['GetRegistryImageManifestsAuthConfigArgs', 'GetRegistryImageManifestsAuthConfigArgsDict']]]] = None,
|
|
129
|
+
insecure_skip_verify: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
|
|
130
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
131
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRegistryImageManifestsResult]:
|
|
132
|
+
"""
|
|
133
|
+
Reads the image metadata for each manifest in a Docker multi-arch image from a Docker Registry.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
:param Union['GetRegistryImageManifestsAuthConfigArgs', 'GetRegistryImageManifestsAuthConfigArgsDict'] auth_config: Authentication configuration for the Docker registry. It is only used for this resource.
|
|
137
|
+
:param builtins.bool insecure_skip_verify: If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
|
138
|
+
:param builtins.str name: The name of the Docker image, including any tags. e.g. `alpine:latest`
|
|
139
|
+
"""
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['authConfig'] = auth_config
|
|
142
|
+
__args__['insecureSkipVerify'] = insecure_skip_verify
|
|
143
|
+
__args__['name'] = name
|
|
144
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
145
|
+
__ret__ = pulumi.runtime.invoke_output('docker:index/getRegistryImageManifests:getRegistryImageManifests', __args__, opts=opts, typ=GetRegistryImageManifestsResult)
|
|
146
|
+
return __ret__.apply(lambda __response__: GetRegistryImageManifestsResult(
|
|
147
|
+
auth_config=pulumi.get(__response__, 'auth_config'),
|
|
148
|
+
id=pulumi.get(__response__, 'id'),
|
|
149
|
+
insecure_skip_verify=pulumi.get(__response__, 'insecure_skip_verify'),
|
|
150
|
+
manifests=pulumi.get(__response__, 'manifests'),
|
|
151
|
+
name=pulumi.get(__response__, 'name')))
|