pulumi-docker 4.7.0a1744751302__py3-none-any.whl → 4.7.0a1744829297__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/_enums.py +3 -1
- pulumi_docker/_inputs.py +1184 -1183
- pulumi_docker/config/__init__.py +1 -0
- pulumi_docker/config/__init__.pyi +1 -0
- pulumi_docker/config/outputs.py +18 -17
- pulumi_docker/config/vars.py +1 -0
- pulumi_docker/container.py +732 -731
- pulumi_docker/get_logs.py +42 -41
- pulumi_docker/get_network.py +11 -10
- pulumi_docker/get_plugin.py +16 -15
- pulumi_docker/get_registry_image.py +13 -12
- pulumi_docker/get_remote_image.py +8 -7
- pulumi_docker/image.py +29 -28
- pulumi_docker/network.py +148 -147
- pulumi_docker/outputs.py +677 -676
- pulumi_docker/plugin.py +120 -119
- pulumi_docker/provider.py +48 -47
- pulumi_docker/pulumi-plugin.json +1 -1
- pulumi_docker/registry_image.py +64 -63
- pulumi_docker/remote_image.py +99 -98
- pulumi_docker/secret.py +29 -28
- pulumi_docker/service.py +15 -14
- pulumi_docker/service_config.py +29 -28
- pulumi_docker/tag.py +36 -35
- pulumi_docker/volume.py +50 -49
- {pulumi_docker-4.7.0a1744751302.dist-info → pulumi_docker-4.7.0a1744829297.dist-info}/METADATA +1 -1
- pulumi_docker-4.7.0a1744829297.dist-info/RECORD +32 -0
- pulumi_docker-4.7.0a1744751302.dist-info/RECORD +0 -32
- {pulumi_docker-4.7.0a1744751302.dist-info → pulumi_docker-4.7.0a1744829297.dist-info}/WHEEL +0 -0
- {pulumi_docker-4.7.0a1744751302.dist-info → pulumi_docker-4.7.0a1744829297.dist-info}/top_level.txt +0 -0
pulumi_docker/image.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -21,19 +22,19 @@ __all__ = ['ImageArgs', 'Image']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class ImageArgs:
|
|
23
24
|
def __init__(__self__, *,
|
|
24
|
-
image_name: pulumi.Input[str],
|
|
25
|
+
image_name: pulumi.Input[builtins.str],
|
|
25
26
|
build: Optional[pulumi.Input['DockerBuildArgs']] = None,
|
|
26
|
-
build_on_preview: Optional[pulumi.Input[bool]] = None,
|
|
27
|
+
build_on_preview: Optional[pulumi.Input[builtins.bool]] = None,
|
|
27
28
|
registry: Optional[pulumi.Input['RegistryArgs']] = None,
|
|
28
|
-
skip_push: Optional[pulumi.Input[bool]] = None):
|
|
29
|
+
skip_push: Optional[pulumi.Input[builtins.bool]] = None):
|
|
29
30
|
"""
|
|
30
31
|
The set of arguments for constructing a Image resource.
|
|
31
|
-
:param pulumi.Input[str] image_name: The image name, of the format repository[:tag], e.g. `docker.io/username/demo-image:v1`.
|
|
32
|
+
:param pulumi.Input[builtins.str] image_name: The image name, of the format repository[:tag], e.g. `docker.io/username/demo-image:v1`.
|
|
32
33
|
This reference is not unique to each build and push.For the unique manifest SHA of a pushed docker image, or the local image ID, please use `repoDigest`.
|
|
33
34
|
:param pulumi.Input['DockerBuildArgs'] build: The Docker build context
|
|
34
|
-
:param pulumi.Input[bool] build_on_preview: A flag to build an image on preview
|
|
35
|
+
:param pulumi.Input[builtins.bool] build_on_preview: A flag to build an image on preview
|
|
35
36
|
:param pulumi.Input['RegistryArgs'] registry: The registry to push the image to
|
|
36
|
-
:param pulumi.Input[bool] skip_push: A flag to skip a registry push.
|
|
37
|
+
:param pulumi.Input[builtins.bool] skip_push: A flag to skip a registry push.
|
|
37
38
|
"""
|
|
38
39
|
pulumi.set(__self__, "image_name", image_name)
|
|
39
40
|
if build is not None:
|
|
@@ -51,7 +52,7 @@ class ImageArgs:
|
|
|
51
52
|
|
|
52
53
|
@property
|
|
53
54
|
@pulumi.getter(name="imageName")
|
|
54
|
-
def image_name(self) -> pulumi.Input[str]:
|
|
55
|
+
def image_name(self) -> pulumi.Input[builtins.str]:
|
|
55
56
|
"""
|
|
56
57
|
The image name, of the format repository[:tag], e.g. `docker.io/username/demo-image:v1`.
|
|
57
58
|
This reference is not unique to each build and push.For the unique manifest SHA of a pushed docker image, or the local image ID, please use `repoDigest`.
|
|
@@ -59,7 +60,7 @@ class ImageArgs:
|
|
|
59
60
|
return pulumi.get(self, "image_name")
|
|
60
61
|
|
|
61
62
|
@image_name.setter
|
|
62
|
-
def image_name(self, value: pulumi.Input[str]):
|
|
63
|
+
def image_name(self, value: pulumi.Input[builtins.str]):
|
|
63
64
|
pulumi.set(self, "image_name", value)
|
|
64
65
|
|
|
65
66
|
@property
|
|
@@ -76,14 +77,14 @@ class ImageArgs:
|
|
|
76
77
|
|
|
77
78
|
@property
|
|
78
79
|
@pulumi.getter(name="buildOnPreview")
|
|
79
|
-
def build_on_preview(self) -> Optional[pulumi.Input[bool]]:
|
|
80
|
+
def build_on_preview(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
80
81
|
"""
|
|
81
82
|
A flag to build an image on preview
|
|
82
83
|
"""
|
|
83
84
|
return pulumi.get(self, "build_on_preview")
|
|
84
85
|
|
|
85
86
|
@build_on_preview.setter
|
|
86
|
-
def build_on_preview(self, value: Optional[pulumi.Input[bool]]):
|
|
87
|
+
def build_on_preview(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
87
88
|
pulumi.set(self, "build_on_preview", value)
|
|
88
89
|
|
|
89
90
|
@property
|
|
@@ -100,14 +101,14 @@ class ImageArgs:
|
|
|
100
101
|
|
|
101
102
|
@property
|
|
102
103
|
@pulumi.getter(name="skipPush")
|
|
103
|
-
def skip_push(self) -> Optional[pulumi.Input[bool]]:
|
|
104
|
+
def skip_push(self) -> Optional[pulumi.Input[builtins.bool]]:
|
|
104
105
|
"""
|
|
105
106
|
A flag to skip a registry push.
|
|
106
107
|
"""
|
|
107
108
|
return pulumi.get(self, "skip_push")
|
|
108
109
|
|
|
109
110
|
@skip_push.setter
|
|
110
|
-
def skip_push(self, value: Optional[pulumi.Input[bool]]):
|
|
111
|
+
def skip_push(self, value: Optional[pulumi.Input[builtins.bool]]):
|
|
111
112
|
pulumi.set(self, "skip_push", value)
|
|
112
113
|
|
|
113
114
|
|
|
@@ -117,10 +118,10 @@ class Image(pulumi.CustomResource):
|
|
|
117
118
|
resource_name: str,
|
|
118
119
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
119
120
|
build: Optional[pulumi.Input[Union['DockerBuildArgs', 'DockerBuildArgsDict']]] = None,
|
|
120
|
-
build_on_preview: Optional[pulumi.Input[bool]] = None,
|
|
121
|
-
image_name: Optional[pulumi.Input[str]] = None,
|
|
121
|
+
build_on_preview: Optional[pulumi.Input[builtins.bool]] = None,
|
|
122
|
+
image_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
122
123
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
123
|
-
skip_push: Optional[pulumi.Input[bool]] = None,
|
|
124
|
+
skip_push: Optional[pulumi.Input[builtins.bool]] = None,
|
|
124
125
|
__props__=None):
|
|
125
126
|
"""
|
|
126
127
|
`Image` builds a Docker image and pushes it Docker and OCI compatible registries.
|
|
@@ -214,11 +215,11 @@ class Image(pulumi.CustomResource):
|
|
|
214
215
|
:param str resource_name: The name of the resource.
|
|
215
216
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
216
217
|
:param pulumi.Input[Union['DockerBuildArgs', 'DockerBuildArgsDict']] build: The Docker build context
|
|
217
|
-
:param pulumi.Input[bool] build_on_preview: A flag to build an image on preview
|
|
218
|
-
:param pulumi.Input[str] image_name: The image name, of the format repository[:tag], e.g. `docker.io/username/demo-image:v1`.
|
|
218
|
+
:param pulumi.Input[builtins.bool] build_on_preview: A flag to build an image on preview
|
|
219
|
+
:param pulumi.Input[builtins.str] image_name: The image name, of the format repository[:tag], e.g. `docker.io/username/demo-image:v1`.
|
|
219
220
|
This reference is not unique to each build and push.For the unique manifest SHA of a pushed docker image, or the local image ID, please use `repoDigest`.
|
|
220
221
|
:param pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']] registry: The registry to push the image to
|
|
221
|
-
:param pulumi.Input[bool] skip_push: A flag to skip a registry push.
|
|
222
|
+
:param pulumi.Input[builtins.bool] skip_push: A flag to skip a registry push.
|
|
222
223
|
"""
|
|
223
224
|
...
|
|
224
225
|
@overload
|
|
@@ -331,10 +332,10 @@ class Image(pulumi.CustomResource):
|
|
|
331
332
|
resource_name: str,
|
|
332
333
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
333
334
|
build: Optional[pulumi.Input[Union['DockerBuildArgs', 'DockerBuildArgsDict']]] = None,
|
|
334
|
-
build_on_preview: Optional[pulumi.Input[bool]] = None,
|
|
335
|
-
image_name: Optional[pulumi.Input[str]] = None,
|
|
335
|
+
build_on_preview: Optional[pulumi.Input[builtins.bool]] = None,
|
|
336
|
+
image_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
336
337
|
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
337
|
-
skip_push: Optional[pulumi.Input[bool]] = None,
|
|
338
|
+
skip_push: Optional[pulumi.Input[builtins.bool]] = None,
|
|
338
339
|
__props__=None):
|
|
339
340
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
340
341
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -396,7 +397,7 @@ class Image(pulumi.CustomResource):
|
|
|
396
397
|
|
|
397
398
|
@property
|
|
398
399
|
@pulumi.getter(name="baseImageName")
|
|
399
|
-
def base_image_name(self) -> pulumi.Output[str]:
|
|
400
|
+
def base_image_name(self) -> pulumi.Output[builtins.str]:
|
|
400
401
|
"""
|
|
401
402
|
The fully qualified image name that was pushed to the registry.
|
|
402
403
|
"""
|
|
@@ -404,7 +405,7 @@ class Image(pulumi.CustomResource):
|
|
|
404
405
|
|
|
405
406
|
@property
|
|
406
407
|
@pulumi.getter
|
|
407
|
-
def context(self) -> pulumi.Output[str]:
|
|
408
|
+
def context(self) -> pulumi.Output[builtins.str]:
|
|
408
409
|
"""
|
|
409
410
|
The path to the build context to use.
|
|
410
411
|
"""
|
|
@@ -412,7 +413,7 @@ class Image(pulumi.CustomResource):
|
|
|
412
413
|
|
|
413
414
|
@property
|
|
414
415
|
@pulumi.getter
|
|
415
|
-
def dockerfile(self) -> pulumi.Output[str]:
|
|
416
|
+
def dockerfile(self) -> pulumi.Output[builtins.str]:
|
|
416
417
|
"""
|
|
417
418
|
The location of the Dockerfile relative to the docker build context.
|
|
418
419
|
"""
|
|
@@ -420,7 +421,7 @@ class Image(pulumi.CustomResource):
|
|
|
420
421
|
|
|
421
422
|
@property
|
|
422
423
|
@pulumi.getter(name="imageName")
|
|
423
|
-
def image_name(self) -> pulumi.Output[str]:
|
|
424
|
+
def image_name(self) -> pulumi.Output[builtins.str]:
|
|
424
425
|
"""
|
|
425
426
|
The fully qualified image name
|
|
426
427
|
"""
|
|
@@ -428,7 +429,7 @@ class Image(pulumi.CustomResource):
|
|
|
428
429
|
|
|
429
430
|
@property
|
|
430
431
|
@pulumi.getter
|
|
431
|
-
def platform(self) -> pulumi.Output[Optional[str]]:
|
|
432
|
+
def platform(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
432
433
|
"""
|
|
433
434
|
The image's architecture and OS
|
|
434
435
|
"""
|
|
@@ -436,7 +437,7 @@ class Image(pulumi.CustomResource):
|
|
|
436
437
|
|
|
437
438
|
@property
|
|
438
439
|
@pulumi.getter(name="registryServer")
|
|
439
|
-
def registry_server(self) -> pulumi.Output[str]:
|
|
440
|
+
def registry_server(self) -> pulumi.Output[builtins.str]:
|
|
440
441
|
"""
|
|
441
442
|
The name of the registry server hosting the image.
|
|
442
443
|
"""
|
|
@@ -444,7 +445,7 @@ class Image(pulumi.CustomResource):
|
|
|
444
445
|
|
|
445
446
|
@property
|
|
446
447
|
@pulumi.getter(name="repoDigest")
|
|
447
|
-
def repo_digest(self) -> pulumi.Output[str]:
|
|
448
|
+
def repo_digest(self) -> pulumi.Output[builtins.str]:
|
|
448
449
|
"""
|
|
449
450
|
**For pushed images:**
|
|
450
451
|
The manifest digest of an image pushed to a registry, of the format repository@<algorithm>:<hash>, e.g. `username/demo-image@sha256:a6ae6dd8d39c5bb02320e41abf00cd4cb35905fec540e37d306c878be8d38bd3`.
|