pulumi-docker-build 0.1.0a1736895711__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-build might be problematic. Click here for more details.
- pulumi_docker_build/__init__.py +46 -0
- pulumi_docker_build/_enums.py +84 -0
- pulumi_docker_build/_inputs.py +3485 -0
- pulumi_docker_build/_utilities.py +327 -0
- pulumi_docker_build/config/__init__.py +8 -0
- pulumi_docker_build/config/__init__.pyi +24 -0
- pulumi_docker_build/config/vars.py +34 -0
- pulumi_docker_build/image.py +1804 -0
- pulumi_docker_build/index.py +381 -0
- pulumi_docker_build/outputs.py +2404 -0
- pulumi_docker_build/provider.py +123 -0
- pulumi_docker_build/pulumi-plugin.json +5 -0
- pulumi_docker_build/py.typed +0 -0
- pulumi_docker_build-0.1.0a1736895711.dist-info/METADATA +38 -0
- pulumi_docker_build-0.1.0a1736895711.dist-info/RECORD +17 -0
- pulumi_docker_build-0.1.0a1736895711.dist-info/WHEEL +5 -0
- pulumi_docker_build-0.1.0a1736895711.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from ._inputs import *
|
|
17
|
+
|
|
18
|
+
__all__ = ['ProviderArgs', 'Provider']
|
|
19
|
+
|
|
20
|
+
@pulumi.input_type
|
|
21
|
+
class ProviderArgs:
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
host: Optional[pulumi.Input[str]] = None,
|
|
24
|
+
registries: Optional[pulumi.Input[Sequence[pulumi.Input['RegistryArgs']]]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a Provider resource.
|
|
27
|
+
:param pulumi.Input[str] host: The build daemon's address.
|
|
28
|
+
"""
|
|
29
|
+
if host is None:
|
|
30
|
+
host = (_utilities.get_env('DOCKER_HOST') or '')
|
|
31
|
+
if host is not None:
|
|
32
|
+
pulumi.set(__self__, "host", host)
|
|
33
|
+
if registries is not None:
|
|
34
|
+
pulumi.set(__self__, "registries", registries)
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
@pulumi.getter
|
|
38
|
+
def host(self) -> Optional[pulumi.Input[str]]:
|
|
39
|
+
"""
|
|
40
|
+
The build daemon's address.
|
|
41
|
+
"""
|
|
42
|
+
return pulumi.get(self, "host")
|
|
43
|
+
|
|
44
|
+
@host.setter
|
|
45
|
+
def host(self, value: Optional[pulumi.Input[str]]):
|
|
46
|
+
pulumi.set(self, "host", value)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
@pulumi.getter
|
|
50
|
+
def registries(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RegistryArgs']]]]:
|
|
51
|
+
return pulumi.get(self, "registries")
|
|
52
|
+
|
|
53
|
+
@registries.setter
|
|
54
|
+
def registries(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RegistryArgs']]]]):
|
|
55
|
+
pulumi.set(self, "registries", value)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class Provider(pulumi.ProviderResource):
|
|
59
|
+
@overload
|
|
60
|
+
def __init__(__self__,
|
|
61
|
+
resource_name: str,
|
|
62
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
63
|
+
host: Optional[pulumi.Input[str]] = None,
|
|
64
|
+
registries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]]]] = None,
|
|
65
|
+
__props__=None):
|
|
66
|
+
"""
|
|
67
|
+
Create a Docker-build resource with the given unique name, props, and options.
|
|
68
|
+
:param str resource_name: The name of the resource.
|
|
69
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
70
|
+
:param pulumi.Input[str] host: The build daemon's address.
|
|
71
|
+
"""
|
|
72
|
+
...
|
|
73
|
+
@overload
|
|
74
|
+
def __init__(__self__,
|
|
75
|
+
resource_name: str,
|
|
76
|
+
args: Optional[ProviderArgs] = None,
|
|
77
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
78
|
+
"""
|
|
79
|
+
Create a Docker-build resource with the given unique name, props, and options.
|
|
80
|
+
:param str resource_name: The name of the resource.
|
|
81
|
+
:param ProviderArgs args: The arguments to use to populate this resource's properties.
|
|
82
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
83
|
+
"""
|
|
84
|
+
...
|
|
85
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
86
|
+
resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
87
|
+
if resource_args is not None:
|
|
88
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
89
|
+
else:
|
|
90
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
91
|
+
|
|
92
|
+
def _internal_init(__self__,
|
|
93
|
+
resource_name: str,
|
|
94
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
95
|
+
host: Optional[pulumi.Input[str]] = None,
|
|
96
|
+
registries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]]]] = None,
|
|
97
|
+
__props__=None):
|
|
98
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
99
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
100
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
101
|
+
if opts.id is None:
|
|
102
|
+
if __props__ is not None:
|
|
103
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
104
|
+
__props__ = ProviderArgs.__new__(ProviderArgs)
|
|
105
|
+
|
|
106
|
+
if host is None:
|
|
107
|
+
host = (_utilities.get_env('DOCKER_HOST') or '')
|
|
108
|
+
__props__.__dict__["host"] = host
|
|
109
|
+
__props__.__dict__["registries"] = pulumi.Output.from_input(registries).apply(pulumi.runtime.to_json) if registries is not None else None
|
|
110
|
+
super(Provider, __self__).__init__(
|
|
111
|
+
'docker-build',
|
|
112
|
+
resource_name,
|
|
113
|
+
__props__,
|
|
114
|
+
opts)
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
@pulumi.getter
|
|
118
|
+
def host(self) -> pulumi.Output[Optional[str]]:
|
|
119
|
+
"""
|
|
120
|
+
The build daemon's address.
|
|
121
|
+
"""
|
|
122
|
+
return pulumi.get(self, "host")
|
|
123
|
+
|
|
File without changes
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: pulumi_docker_build
|
|
3
|
+
Version: 0.1.0a1736895711
|
|
4
|
+
Summary: A Pulumi provider for building modern Docker images with buildx and BuildKit.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://pulumi.com
|
|
7
|
+
Project-URL: Repository, https://github.com/pulumi/pulumi-docker-build
|
|
8
|
+
Keywords: docker,buildkit,buildx,kind/native
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: parver>=0.2.1
|
|
12
|
+
Requires-Dist: pulumi<4.0.0,>=3.142.0
|
|
13
|
+
Requires-Dist: semver>=2.8.1
|
|
14
|
+
Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
|
|
15
|
+
|
|
16
|
+
[](https://slack.pulumi.com)
|
|
17
|
+
[](https://www.npmjs.com/package/@pulumi/docker-build)
|
|
18
|
+
[](https://pypi.org/project/pulumi-docker-build)
|
|
19
|
+
[](https://badge.fury.io/nu/pulumi.dockerbuild)
|
|
20
|
+
[](https://pkg.go.dev/github.com/pulumi/pulumi-docker-build/sdk/go)
|
|
21
|
+
[](https://github.com/pulumi/pulumi-docker-build/blob/main/LICENSE)
|
|
22
|
+
|
|
23
|
+
# Docker-Build Resource Provider
|
|
24
|
+
|
|
25
|
+
A [Pulumi](http://pulumi.com) provider for building modern Docker images with [buildx](https://docs.docker.com/build/architecture/) and [BuildKit](https://docs.docker.com/build/buildkit/).
|
|
26
|
+
|
|
27
|
+
Not to be confused with the earlier
|
|
28
|
+
[Docker](http://github.com/pulumi/pulumi-docker) provider, which is still
|
|
29
|
+
appropriate for managing resources unrelated to building images.
|
|
30
|
+
|
|
31
|
+
| Provider | Use cases |
|
|
32
|
+
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
+
| `@pulumi/docker-build` | Anything related to building images with `docker build`. |
|
|
34
|
+
| `@pulumi/docker` | Everything else -- including running containers and creating networks. |
|
|
35
|
+
|
|
36
|
+
## Reference
|
|
37
|
+
|
|
38
|
+
For more information, including examples and migration guidance, please see the Docker-Build provider's detailed [API documentation](https://www.pulumi.com/registry/packages/docker-build/).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
pulumi_docker_build/__init__.py,sha256=jbA6SMpisvwJDycUKuo4IXVJ5_qjIao_1iPP9lcZ-Vw,983
|
|
2
|
+
pulumi_docker_build/_enums.py,sha256=yfsDmimBobvf70zx6VAR_6ABp50Dan452rpIFVs8jkA,1928
|
|
3
|
+
pulumi_docker_build/_inputs.py,sha256=aXJ4xqK0KBLf6vQWsqsnYM1yqSHfaB64nv-Vcp6_4Og,124044
|
|
4
|
+
pulumi_docker_build/_utilities.py,sha256=UL5vEmfNrBfiaeFQS69cz7xlHoBnPH8PY_UIVNwShcM,10486
|
|
5
|
+
pulumi_docker_build/image.py,sha256=5Zd6zmfsQUCVFogp6Wu-5RceMxkl0x_nuOG64fO7ZWg,74877
|
|
6
|
+
pulumi_docker_build/index.py,sha256=IMpevb9_ktXNcgF17qMAq-Dh15HC4HZbKp0A62faoEw,14291
|
|
7
|
+
pulumi_docker_build/outputs.py,sha256=F-PATYfU3BD0f0PEdGsaWMYSthp698pgX0LH8Mfk9lU,83415
|
|
8
|
+
pulumi_docker_build/provider.py,sha256=ds0_lPqQ0LuP9fsHLUHg6IvolD4fIBnU3oife3038x4,4972
|
|
9
|
+
pulumi_docker_build/pulumi-plugin.json,sha256=2sLPhJNnCvj464UOy9Y7ssdMTCmjpcDBe6OQnEvwB4w,88
|
|
10
|
+
pulumi_docker_build/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
pulumi_docker_build/config/__init__.py,sha256=YdGLR92OvYD0CYDgt_FTaHJOb_VzW8fto_Cgx6fLd3k,267
|
|
12
|
+
pulumi_docker_build/config/__init__.pyi,sha256=2Yij9qLlwh_pi5ytfw8UgvI4KgmE-OC2fNuRQzFrKgk,615
|
|
13
|
+
pulumi_docker_build/config/vars.py,sha256=IeckzaS3wTGp0HlnJtyacWm2u7rm150AuK9jv6r9pGY,930
|
|
14
|
+
pulumi_docker_build-0.1.0a1736895711.dist-info/METADATA,sha256=XC1tEfgSpL6VuI2CmkPbSvH_YbOL1uUI4-Wlw8r06IU,2620
|
|
15
|
+
pulumi_docker_build-0.1.0a1736895711.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
16
|
+
pulumi_docker_build-0.1.0a1736895711.dist-info/top_level.txt,sha256=-O-MiPQ61mhil3wD9QdYf8yA4r5vNPmBgSGdi9cOQ18,20
|
|
17
|
+
pulumi_docker_build-0.1.0a1736895711.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pulumi_docker_build
|