pulumi-docker 4.9.0a1758238851__tar.gz → 4.9.0a1758857639__tar.gz
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-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/PKG-INFO +1 -1
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/_inputs.py +23 -3
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/container.py +54 -7
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/outputs.py +16 -2
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/pulumi-plugin.json +1 -1
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/PKG-INFO +1 -1
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pyproject.toml +1 -1
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/README.md +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/__init__.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/_enums.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/_utilities.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/buildx_builder.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/__init__.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/__init__.pyi +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/outputs.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/vars.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_logs.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_network.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_plugin.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_registry_image.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_registry_image_manifests.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_remote_image.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/image.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/network.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/plugin.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/provider.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/py.typed +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/registry_image.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/remote_image.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/secret.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/service.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/service_config.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/tag.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/volume.py +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/SOURCES.txt +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/dependency_links.txt +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/requires.txt +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/top_level.txt +0 -0
- {pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/setup.cfg +0 -0
|
@@ -2923,7 +2923,11 @@ if not MYPY:
|
|
|
2923
2923
|
"""
|
|
2924
2924
|
cache_froms: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
|
|
2925
2925
|
"""
|
|
2926
|
-
|
|
2926
|
+
External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
|
|
2927
|
+
"""
|
|
2928
|
+
cache_tos: NotRequired[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]
|
|
2929
|
+
"""
|
|
2930
|
+
Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
|
|
2927
2931
|
"""
|
|
2928
2932
|
cgroup_parent: NotRequired[pulumi.Input[_builtins.str]]
|
|
2929
2933
|
"""
|
|
@@ -3058,6 +3062,7 @@ class RemoteImageBuildArgs:
|
|
|
3058
3062
|
build_log_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
3059
3063
|
builder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
3060
3064
|
cache_froms: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
3065
|
+
cache_tos: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
3061
3066
|
cgroup_parent: Optional[pulumi.Input[_builtins.str]] = None,
|
|
3062
3067
|
cpu_period: Optional[pulumi.Input[_builtins.int]] = None,
|
|
3063
3068
|
cpu_quota: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -3095,7 +3100,8 @@ class RemoteImageBuildArgs:
|
|
|
3095
3100
|
:param pulumi.Input[_builtins.str] build_id: 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.
|
|
3096
3101
|
:param pulumi.Input[_builtins.str] build_log_file: Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
|
|
3097
3102
|
:param pulumi.Input[_builtins.str] builder: Set the name of the buildx builder to use. If not set, the legacy builder is used.
|
|
3098
|
-
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] cache_froms:
|
|
3103
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] cache_froms: External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
|
|
3104
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] cache_tos: Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
|
|
3099
3105
|
:param pulumi.Input[_builtins.str] cgroup_parent: Optional parent cgroup for the container
|
|
3100
3106
|
:param pulumi.Input[_builtins.int] cpu_period: The length of a CPU period in microseconds
|
|
3101
3107
|
:param pulumi.Input[_builtins.int] cpu_quota: Microseconds of CPU time that the container can get in a CPU period
|
|
@@ -3140,6 +3146,8 @@ class RemoteImageBuildArgs:
|
|
|
3140
3146
|
pulumi.set(__self__, "builder", builder)
|
|
3141
3147
|
if cache_froms is not None:
|
|
3142
3148
|
pulumi.set(__self__, "cache_froms", cache_froms)
|
|
3149
|
+
if cache_tos is not None:
|
|
3150
|
+
pulumi.set(__self__, "cache_tos", cache_tos)
|
|
3143
3151
|
if cgroup_parent is not None:
|
|
3144
3152
|
pulumi.set(__self__, "cgroup_parent", cgroup_parent)
|
|
3145
3153
|
if cpu_period is not None:
|
|
@@ -3277,7 +3285,7 @@ class RemoteImageBuildArgs:
|
|
|
3277
3285
|
@pulumi.getter(name="cacheFroms")
|
|
3278
3286
|
def cache_froms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
3279
3287
|
"""
|
|
3280
|
-
|
|
3288
|
+
External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
|
|
3281
3289
|
"""
|
|
3282
3290
|
return pulumi.get(self, "cache_froms")
|
|
3283
3291
|
|
|
@@ -3285,6 +3293,18 @@ class RemoteImageBuildArgs:
|
|
|
3285
3293
|
def cache_froms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
3286
3294
|
pulumi.set(self, "cache_froms", value)
|
|
3287
3295
|
|
|
3296
|
+
@_builtins.property
|
|
3297
|
+
@pulumi.getter(name="cacheTos")
|
|
3298
|
+
def cache_tos(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
3299
|
+
"""
|
|
3300
|
+
Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
|
|
3301
|
+
"""
|
|
3302
|
+
return pulumi.get(self, "cache_tos")
|
|
3303
|
+
|
|
3304
|
+
@cache_tos.setter
|
|
3305
|
+
def cache_tos(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
3306
|
+
pulumi.set(self, "cache_tos", value)
|
|
3307
|
+
|
|
3288
3308
|
@_builtins.property
|
|
3289
3309
|
@pulumi.getter(name="cgroupParent")
|
|
3290
3310
|
def cgroup_parent(self) -> Optional[pulumi.Input[_builtins.str]]:
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/container.py
RENAMED
|
@@ -54,6 +54,7 @@ class ContainerArgs:
|
|
|
54
54
|
logs: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
55
55
|
max_retry_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
56
56
|
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
57
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
57
58
|
memory_swap: Optional[pulumi.Input[_builtins.int]] = None,
|
|
58
59
|
mounts: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]]] = None,
|
|
59
60
|
must_run: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -122,10 +123,11 @@ class ContainerArgs:
|
|
|
122
123
|
:param pulumi.Input[_builtins.bool] logs: Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
123
124
|
:param pulumi.Input[_builtins.int] max_retry_count: The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
124
125
|
:param pulumi.Input[_builtins.int] memory: The memory limit for the container in MBs.
|
|
126
|
+
:param pulumi.Input[_builtins.int] memory_reservation: The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
125
127
|
: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.
|
|
126
128
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
127
129
|
:param pulumi.Input[_builtins.str] name: The name of the container.
|
|
128
|
-
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
130
|
+
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
129
131
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworksAdvancedArgs']]] networks_advanced: The networks the container is attached to
|
|
130
132
|
:param pulumi.Input[_builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
131
133
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerPortArgs']]] ports: Publish a container's port(s) to the host.
|
|
@@ -220,6 +222,8 @@ class ContainerArgs:
|
|
|
220
222
|
pulumi.set(__self__, "max_retry_count", max_retry_count)
|
|
221
223
|
if memory is not None:
|
|
222
224
|
pulumi.set(__self__, "memory", memory)
|
|
225
|
+
if memory_reservation is not None:
|
|
226
|
+
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
223
227
|
if memory_swap is not None:
|
|
224
228
|
pulumi.set(__self__, "memory_swap", memory_swap)
|
|
225
229
|
if mounts is not None:
|
|
@@ -683,6 +687,18 @@ class ContainerArgs:
|
|
|
683
687
|
def memory(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
684
688
|
pulumi.set(self, "memory", value)
|
|
685
689
|
|
|
690
|
+
@_builtins.property
|
|
691
|
+
@pulumi.getter(name="memoryReservation")
|
|
692
|
+
def memory_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
693
|
+
"""
|
|
694
|
+
The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
695
|
+
"""
|
|
696
|
+
return pulumi.get(self, "memory_reservation")
|
|
697
|
+
|
|
698
|
+
@memory_reservation.setter
|
|
699
|
+
def memory_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
700
|
+
pulumi.set(self, "memory_reservation", value)
|
|
701
|
+
|
|
686
702
|
@_builtins.property
|
|
687
703
|
@pulumi.getter(name="memorySwap")
|
|
688
704
|
def memory_swap(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -732,7 +748,7 @@ class ContainerArgs:
|
|
|
732
748
|
@pulumi.getter(name="networkMode")
|
|
733
749
|
def network_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
734
750
|
"""
|
|
735
|
-
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
751
|
+
Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
736
752
|
"""
|
|
737
753
|
return pulumi.get(self, "network_mode")
|
|
738
754
|
|
|
@@ -1116,6 +1132,7 @@ class _ContainerState:
|
|
|
1116
1132
|
logs: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
1117
1133
|
max_retry_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1118
1134
|
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1135
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1119
1136
|
memory_swap: Optional[pulumi.Input[_builtins.int]] = None,
|
|
1120
1137
|
mounts: Optional[pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]]] = None,
|
|
1121
1138
|
must_run: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -1188,11 +1205,12 @@ class _ContainerState:
|
|
|
1188
1205
|
:param pulumi.Input[_builtins.bool] logs: Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
1189
1206
|
:param pulumi.Input[_builtins.int] max_retry_count: The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
1190
1207
|
:param pulumi.Input[_builtins.int] memory: The memory limit for the container in MBs.
|
|
1208
|
+
:param pulumi.Input[_builtins.int] memory_reservation: The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
1191
1209
|
: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.
|
|
1192
1210
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerMountArgs']]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
1193
1211
|
:param pulumi.Input[_builtins.str] name: The name of the container.
|
|
1194
1212
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworkDataArgs']]] network_datas: The data of the networks the container is connected to.
|
|
1195
|
-
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
1213
|
+
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
1196
1214
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerNetworksAdvancedArgs']]] networks_advanced: The networks the container is attached to
|
|
1197
1215
|
:param pulumi.Input[_builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
1198
1216
|
:param pulumi.Input[Sequence[pulumi.Input['ContainerPortArgs']]] ports: Publish a container's port(s) to the host.
|
|
@@ -1294,6 +1312,8 @@ class _ContainerState:
|
|
|
1294
1312
|
pulumi.set(__self__, "max_retry_count", max_retry_count)
|
|
1295
1313
|
if memory is not None:
|
|
1296
1314
|
pulumi.set(__self__, "memory", memory)
|
|
1315
|
+
if memory_reservation is not None:
|
|
1316
|
+
pulumi.set(__self__, "memory_reservation", memory_reservation)
|
|
1297
1317
|
if memory_swap is not None:
|
|
1298
1318
|
pulumi.set(__self__, "memory_swap", memory_swap)
|
|
1299
1319
|
if mounts is not None:
|
|
@@ -1795,6 +1815,18 @@ class _ContainerState:
|
|
|
1795
1815
|
def memory(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
1796
1816
|
pulumi.set(self, "memory", value)
|
|
1797
1817
|
|
|
1818
|
+
@_builtins.property
|
|
1819
|
+
@pulumi.getter(name="memoryReservation")
|
|
1820
|
+
def memory_reservation(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
1821
|
+
"""
|
|
1822
|
+
The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
1823
|
+
"""
|
|
1824
|
+
return pulumi.get(self, "memory_reservation")
|
|
1825
|
+
|
|
1826
|
+
@memory_reservation.setter
|
|
1827
|
+
def memory_reservation(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
1828
|
+
pulumi.set(self, "memory_reservation", value)
|
|
1829
|
+
|
|
1798
1830
|
@_builtins.property
|
|
1799
1831
|
@pulumi.getter(name="memorySwap")
|
|
1800
1832
|
def memory_swap(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
@@ -1856,7 +1888,7 @@ class _ContainerState:
|
|
|
1856
1888
|
@pulumi.getter(name="networkMode")
|
|
1857
1889
|
def network_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
1858
1890
|
"""
|
|
1859
|
-
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
1891
|
+
Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
1860
1892
|
"""
|
|
1861
1893
|
return pulumi.get(self, "network_mode")
|
|
1862
1894
|
|
|
@@ -2240,6 +2272,7 @@ class Container(pulumi.CustomResource):
|
|
|
2240
2272
|
logs: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
2241
2273
|
max_retry_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2242
2274
|
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2275
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2243
2276
|
memory_swap: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2244
2277
|
mounts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]]] = None,
|
|
2245
2278
|
must_run: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -2369,10 +2402,11 @@ class Container(pulumi.CustomResource):
|
|
|
2369
2402
|
:param pulumi.Input[_builtins.bool] logs: Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
2370
2403
|
:param pulumi.Input[_builtins.int] max_retry_count: The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
2371
2404
|
:param pulumi.Input[_builtins.int] memory: The memory limit for the container in MBs.
|
|
2405
|
+
:param pulumi.Input[_builtins.int] memory_reservation: The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
2372
2406
|
: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.
|
|
2373
2407
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
2374
2408
|
:param pulumi.Input[_builtins.str] name: The name of the container.
|
|
2375
|
-
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
2409
|
+
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
2376
2410
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworksAdvancedArgs', 'ContainerNetworksAdvancedArgsDict']]]] networks_advanced: The networks the container is attached to
|
|
2377
2411
|
:param pulumi.Input[_builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
2378
2412
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerPortArgs', 'ContainerPortArgsDict']]]] ports: Publish a container's port(s) to the host.
|
|
@@ -2516,6 +2550,7 @@ class Container(pulumi.CustomResource):
|
|
|
2516
2550
|
logs: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
2517
2551
|
max_retry_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2518
2552
|
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2553
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2519
2554
|
memory_swap: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2520
2555
|
mounts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]]] = None,
|
|
2521
2556
|
must_run: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -2593,6 +2628,7 @@ class Container(pulumi.CustomResource):
|
|
|
2593
2628
|
__props__.__dict__["logs"] = logs
|
|
2594
2629
|
__props__.__dict__["max_retry_count"] = max_retry_count
|
|
2595
2630
|
__props__.__dict__["memory"] = memory
|
|
2631
|
+
__props__.__dict__["memory_reservation"] = memory_reservation
|
|
2596
2632
|
__props__.__dict__["memory_swap"] = memory_swap
|
|
2597
2633
|
__props__.__dict__["mounts"] = mounts
|
|
2598
2634
|
__props__.__dict__["must_run"] = must_run
|
|
@@ -2676,6 +2712,7 @@ class Container(pulumi.CustomResource):
|
|
|
2676
2712
|
logs: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
2677
2713
|
max_retry_count: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2678
2714
|
memory: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2715
|
+
memory_reservation: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2679
2716
|
memory_swap: Optional[pulumi.Input[_builtins.int]] = None,
|
|
2680
2717
|
mounts: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]]] = None,
|
|
2681
2718
|
must_run: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
@@ -2753,11 +2790,12 @@ class Container(pulumi.CustomResource):
|
|
|
2753
2790
|
:param pulumi.Input[_builtins.bool] logs: Save the container logs (`attach` must be enabled). Defaults to `false`.
|
|
2754
2791
|
:param pulumi.Input[_builtins.int] max_retry_count: The maximum amount of times to an attempt a restart when `restart` is set to 'on-failure'.
|
|
2755
2792
|
:param pulumi.Input[_builtins.int] memory: The memory limit for the container in MBs.
|
|
2793
|
+
:param pulumi.Input[_builtins.int] memory_reservation: The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
2756
2794
|
: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.
|
|
2757
2795
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerMountArgs', 'ContainerMountArgsDict']]]] mounts: Specification for mounts to be added to containers created as part of the service.
|
|
2758
2796
|
:param pulumi.Input[_builtins.str] name: The name of the container.
|
|
2759
2797
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworkDataArgs', 'ContainerNetworkDataArgsDict']]]] network_datas: The data of the networks the container is connected to.
|
|
2760
|
-
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
2798
|
+
:param pulumi.Input[_builtins.str] network_mode: Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
2761
2799
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerNetworksAdvancedArgs', 'ContainerNetworksAdvancedArgsDict']]]] networks_advanced: The networks the container is attached to
|
|
2762
2800
|
:param pulumi.Input[_builtins.str] pid_mode: he PID (Process) Namespace mode for the container. Either `container:<name|id>` or `host`.
|
|
2763
2801
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ContainerPortArgs', 'ContainerPortArgsDict']]]] ports: Publish a container's port(s) to the host.
|
|
@@ -2827,6 +2865,7 @@ class Container(pulumi.CustomResource):
|
|
|
2827
2865
|
__props__.__dict__["logs"] = logs
|
|
2828
2866
|
__props__.__dict__["max_retry_count"] = max_retry_count
|
|
2829
2867
|
__props__.__dict__["memory"] = memory
|
|
2868
|
+
__props__.__dict__["memory_reservation"] = memory_reservation
|
|
2830
2869
|
__props__.__dict__["memory_swap"] = memory_swap
|
|
2831
2870
|
__props__.__dict__["mounts"] = mounts
|
|
2832
2871
|
__props__.__dict__["must_run"] = must_run
|
|
@@ -3151,6 +3190,14 @@ class Container(pulumi.CustomResource):
|
|
|
3151
3190
|
"""
|
|
3152
3191
|
return pulumi.get(self, "memory")
|
|
3153
3192
|
|
|
3193
|
+
@_builtins.property
|
|
3194
|
+
@pulumi.getter(name="memoryReservation")
|
|
3195
|
+
def memory_reservation(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
3196
|
+
"""
|
|
3197
|
+
The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit.
|
|
3198
|
+
"""
|
|
3199
|
+
return pulumi.get(self, "memory_reservation")
|
|
3200
|
+
|
|
3154
3201
|
@_builtins.property
|
|
3155
3202
|
@pulumi.getter(name="memorySwap")
|
|
3156
3203
|
def memory_swap(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
@@ -3192,7 +3239,7 @@ class Container(pulumi.CustomResource):
|
|
|
3192
3239
|
@pulumi.getter(name="networkMode")
|
|
3193
3240
|
def network_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
3194
3241
|
"""
|
|
3195
|
-
Network mode of the container. See https://docs.docker.com/engine/network/ for more information.
|
|
3242
|
+
Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information.
|
|
3196
3243
|
"""
|
|
3197
3244
|
return pulumi.get(self, "network_mode")
|
|
3198
3245
|
|
|
@@ -1965,6 +1965,8 @@ class RemoteImageBuild(dict):
|
|
|
1965
1965
|
suggest = "build_log_file"
|
|
1966
1966
|
elif key == "cacheFroms":
|
|
1967
1967
|
suggest = "cache_froms"
|
|
1968
|
+
elif key == "cacheTos":
|
|
1969
|
+
suggest = "cache_tos"
|
|
1968
1970
|
elif key == "cgroupParent":
|
|
1969
1971
|
suggest = "cgroup_parent"
|
|
1970
1972
|
elif key == "cpuPeriod":
|
|
@@ -2019,6 +2021,7 @@ class RemoteImageBuild(dict):
|
|
|
2019
2021
|
build_log_file: Optional[_builtins.str] = None,
|
|
2020
2022
|
builder: Optional[_builtins.str] = None,
|
|
2021
2023
|
cache_froms: Optional[Sequence[_builtins.str]] = None,
|
|
2024
|
+
cache_tos: Optional[Sequence[_builtins.str]] = None,
|
|
2022
2025
|
cgroup_parent: Optional[_builtins.str] = None,
|
|
2023
2026
|
cpu_period: Optional[_builtins.int] = None,
|
|
2024
2027
|
cpu_quota: Optional[_builtins.int] = None,
|
|
@@ -2056,7 +2059,8 @@ class RemoteImageBuild(dict):
|
|
|
2056
2059
|
:param _builtins.str build_id: 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.
|
|
2057
2060
|
:param _builtins.str build_log_file: Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
|
|
2058
2061
|
:param _builtins.str builder: Set the name of the buildx builder to use. If not set, the legacy builder is used.
|
|
2059
|
-
:param Sequence[_builtins.str] cache_froms:
|
|
2062
|
+
:param Sequence[_builtins.str] cache_froms: External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
|
|
2063
|
+
:param Sequence[_builtins.str] cache_tos: Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
|
|
2060
2064
|
:param _builtins.str cgroup_parent: Optional parent cgroup for the container
|
|
2061
2065
|
:param _builtins.int cpu_period: The length of a CPU period in microseconds
|
|
2062
2066
|
:param _builtins.int cpu_quota: Microseconds of CPU time that the container can get in a CPU period
|
|
@@ -2101,6 +2105,8 @@ class RemoteImageBuild(dict):
|
|
|
2101
2105
|
pulumi.set(__self__, "builder", builder)
|
|
2102
2106
|
if cache_froms is not None:
|
|
2103
2107
|
pulumi.set(__self__, "cache_froms", cache_froms)
|
|
2108
|
+
if cache_tos is not None:
|
|
2109
|
+
pulumi.set(__self__, "cache_tos", cache_tos)
|
|
2104
2110
|
if cgroup_parent is not None:
|
|
2105
2111
|
pulumi.set(__self__, "cgroup_parent", cgroup_parent)
|
|
2106
2112
|
if cpu_period is not None:
|
|
@@ -2214,10 +2220,18 @@ class RemoteImageBuild(dict):
|
|
|
2214
2220
|
@pulumi.getter(name="cacheFroms")
|
|
2215
2221
|
def cache_froms(self) -> Optional[Sequence[_builtins.str]]:
|
|
2216
2222
|
"""
|
|
2217
|
-
|
|
2223
|
+
External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder.
|
|
2218
2224
|
"""
|
|
2219
2225
|
return pulumi.get(self, "cache_froms")
|
|
2220
2226
|
|
|
2227
|
+
@_builtins.property
|
|
2228
|
+
@pulumi.getter(name="cacheTos")
|
|
2229
|
+
def cache_tos(self) -> Optional[Sequence[_builtins.str]]:
|
|
2230
|
+
"""
|
|
2231
|
+
Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder.
|
|
2232
|
+
"""
|
|
2233
|
+
return pulumi.get(self, "cache_tos")
|
|
2234
|
+
|
|
2221
2235
|
@_builtins.property
|
|
2222
2236
|
@pulumi.getter(name="cgroupParent")
|
|
2223
2237
|
def cgroup_parent(self) -> Optional[_builtins.str]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/_utilities.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/buildx_builder.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/__init__.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/__init__.pyi
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/outputs.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/config/vars.py
RENAMED
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_network.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/get_remote_image.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/registry_image.py
RENAMED
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/remote_image.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker/service_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulumi_docker-4.9.0a1758238851 → pulumi_docker-4.9.0a1758857639}/pulumi_docker.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|