pulumi-docker-build 0.0.1__py3-none-any.whl → 0.0.1a100__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/_inputs.py +835 -22
- pulumi_docker_build/_utilities.py +41 -5
- pulumi_docker_build/config/__init__.pyi +5 -0
- pulumi_docker_build/config/vars.py +5 -0
- pulumi_docker_build/image.py +261 -231
- pulumi_docker_build/index.py +64 -59
- pulumi_docker_build/outputs.py +11 -6
- pulumi_docker_build/provider.py +7 -2
- pulumi_docker_build/pulumi-plugin.json +2 -1
- {pulumi_docker_build-0.0.1.dist-info → pulumi_docker_build-0.0.1a100.dist-info}/METADATA +7 -6
- pulumi_docker_build-0.0.1a100.dist-info/RECORD +17 -0
- {pulumi_docker_build-0.0.1.dist-info → pulumi_docker_build-0.0.1a100.dist-info}/WHEEL +1 -1
- pulumi_docker_build-0.0.1.dist-info/RECORD +0 -17
- {pulumi_docker_build-0.0.1.dist-info → pulumi_docker_build-0.0.1a100.dist-info}/top_level.txt +0 -0
pulumi_docker_build/index.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._inputs import *
|
|
@@ -99,7 +104,7 @@ class Index(pulumi.CustomResource):
|
|
|
99
104
|
resource_name: str,
|
|
100
105
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
101
106
|
push: Optional[pulumi.Input[bool]] = None,
|
|
102
|
-
registry: Optional[pulumi.Input[
|
|
107
|
+
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
103
108
|
sources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
104
109
|
tag: Optional[pulumi.Input[str]] = None,
|
|
105
110
|
__props__=None):
|
|
@@ -131,37 +136,37 @@ class Index(pulumi.CustomResource):
|
|
|
131
136
|
import pulumi_docker_build as docker_build
|
|
132
137
|
|
|
133
138
|
amd64 = docker_build.Image("amd64",
|
|
134
|
-
cache_from=[
|
|
135
|
-
registry
|
|
136
|
-
ref
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
cache_to=[
|
|
140
|
-
registry
|
|
141
|
-
mode
|
|
142
|
-
ref
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
context=
|
|
146
|
-
location
|
|
147
|
-
|
|
139
|
+
cache_from=[{
|
|
140
|
+
"registry": {
|
|
141
|
+
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
142
|
+
},
|
|
143
|
+
}],
|
|
144
|
+
cache_to=[{
|
|
145
|
+
"registry": {
|
|
146
|
+
"mode": docker_build.CacheMode.MAX,
|
|
147
|
+
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
148
|
+
},
|
|
149
|
+
}],
|
|
150
|
+
context={
|
|
151
|
+
"location": "app",
|
|
152
|
+
},
|
|
148
153
|
platforms=[docker_build.Platform.LINUX_AMD64],
|
|
149
154
|
tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
|
|
150
155
|
arm64 = docker_build.Image("arm64",
|
|
151
|
-
cache_from=[
|
|
152
|
-
registry
|
|
153
|
-
ref
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
cache_to=[
|
|
157
|
-
registry
|
|
158
|
-
mode
|
|
159
|
-
ref
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
context=
|
|
163
|
-
location
|
|
164
|
-
|
|
156
|
+
cache_from=[{
|
|
157
|
+
"registry": {
|
|
158
|
+
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
159
|
+
},
|
|
160
|
+
}],
|
|
161
|
+
cache_to=[{
|
|
162
|
+
"registry": {
|
|
163
|
+
"mode": docker_build.CacheMode.MAX,
|
|
164
|
+
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
165
|
+
},
|
|
166
|
+
}],
|
|
167
|
+
context={
|
|
168
|
+
"location": "app",
|
|
169
|
+
},
|
|
165
170
|
platforms=[docker_build.Platform.LINUX_ARM64],
|
|
166
171
|
tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
|
|
167
172
|
index = docker_build.Index("index",
|
|
@@ -178,7 +183,7 @@ class Index(pulumi.CustomResource):
|
|
|
178
183
|
:param pulumi.Input[bool] push: If true, push the index to the target registry.
|
|
179
184
|
|
|
180
185
|
Defaults to `true`.
|
|
181
|
-
:param pulumi.Input[
|
|
186
|
+
:param pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']] registry: Authentication for the registry where the tagged index will be pushed.
|
|
182
187
|
|
|
183
188
|
Credentials can also be included with the provider's configuration.
|
|
184
189
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] sources: Existing images to include in the index.
|
|
@@ -218,37 +223,37 @@ class Index(pulumi.CustomResource):
|
|
|
218
223
|
import pulumi_docker_build as docker_build
|
|
219
224
|
|
|
220
225
|
amd64 = docker_build.Image("amd64",
|
|
221
|
-
cache_from=[
|
|
222
|
-
registry
|
|
223
|
-
ref
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
cache_to=[
|
|
227
|
-
registry
|
|
228
|
-
mode
|
|
229
|
-
ref
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
context=
|
|
233
|
-
location
|
|
234
|
-
|
|
226
|
+
cache_from=[{
|
|
227
|
+
"registry": {
|
|
228
|
+
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
229
|
+
},
|
|
230
|
+
}],
|
|
231
|
+
cache_to=[{
|
|
232
|
+
"registry": {
|
|
233
|
+
"mode": docker_build.CacheMode.MAX,
|
|
234
|
+
"ref": "docker.io/pulumi/pulumi:cache-amd64",
|
|
235
|
+
},
|
|
236
|
+
}],
|
|
237
|
+
context={
|
|
238
|
+
"location": "app",
|
|
239
|
+
},
|
|
235
240
|
platforms=[docker_build.Platform.LINUX_AMD64],
|
|
236
241
|
tags=["docker.io/pulumi/pulumi:3.107.0-amd64"])
|
|
237
242
|
arm64 = docker_build.Image("arm64",
|
|
238
|
-
cache_from=[
|
|
239
|
-
registry
|
|
240
|
-
ref
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
cache_to=[
|
|
244
|
-
registry
|
|
245
|
-
mode
|
|
246
|
-
ref
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
context=
|
|
250
|
-
location
|
|
251
|
-
|
|
243
|
+
cache_from=[{
|
|
244
|
+
"registry": {
|
|
245
|
+
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
246
|
+
},
|
|
247
|
+
}],
|
|
248
|
+
cache_to=[{
|
|
249
|
+
"registry": {
|
|
250
|
+
"mode": docker_build.CacheMode.MAX,
|
|
251
|
+
"ref": "docker.io/pulumi/pulumi:cache-arm64",
|
|
252
|
+
},
|
|
253
|
+
}],
|
|
254
|
+
context={
|
|
255
|
+
"location": "app",
|
|
256
|
+
},
|
|
252
257
|
platforms=[docker_build.Platform.LINUX_ARM64],
|
|
253
258
|
tags=["docker.io/pulumi/pulumi:3.107.0-arm64"])
|
|
254
259
|
index = docker_build.Index("index",
|
|
@@ -276,7 +281,7 @@ class Index(pulumi.CustomResource):
|
|
|
276
281
|
resource_name: str,
|
|
277
282
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
278
283
|
push: Optional[pulumi.Input[bool]] = None,
|
|
279
|
-
registry: Optional[pulumi.Input[
|
|
284
|
+
registry: Optional[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]] = None,
|
|
280
285
|
sources: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
281
286
|
tag: Optional[pulumi.Input[str]] = None,
|
|
282
287
|
__props__=None):
|
pulumi_docker_build/outputs.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
from ._enums import *
|
|
@@ -305,7 +310,7 @@ class CacheFromGitHubActions(dict):
|
|
|
305
310
|
environment variable to your jobs.
|
|
306
311
|
:param str url: The cache server URL to use for artifacts.
|
|
307
312
|
|
|
308
|
-
Defaults to `$
|
|
313
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
309
314
|
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
310
315
|
environment variable to your jobs.
|
|
311
316
|
"""
|
|
@@ -318,7 +323,7 @@ class CacheFromGitHubActions(dict):
|
|
|
318
323
|
if token is not None:
|
|
319
324
|
pulumi.set(__self__, "token", token)
|
|
320
325
|
if url is None:
|
|
321
|
-
url = (_utilities.get_env('
|
|
326
|
+
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
322
327
|
if url is not None:
|
|
323
328
|
pulumi.set(__self__, "url", url)
|
|
324
329
|
|
|
@@ -352,7 +357,7 @@ class CacheFromGitHubActions(dict):
|
|
|
352
357
|
"""
|
|
353
358
|
The cache server URL to use for artifacts.
|
|
354
359
|
|
|
355
|
-
Defaults to `$
|
|
360
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
356
361
|
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
357
362
|
environment variable to your jobs.
|
|
358
363
|
"""
|
|
@@ -817,7 +822,7 @@ class CacheToGitHubActions(dict):
|
|
|
817
822
|
environment variable to your jobs.
|
|
818
823
|
:param str url: The cache server URL to use for artifacts.
|
|
819
824
|
|
|
820
|
-
Defaults to `$
|
|
825
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
821
826
|
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
822
827
|
environment variable to your jobs.
|
|
823
828
|
"""
|
|
@@ -838,7 +843,7 @@ class CacheToGitHubActions(dict):
|
|
|
838
843
|
if token is not None:
|
|
839
844
|
pulumi.set(__self__, "token", token)
|
|
840
845
|
if url is None:
|
|
841
|
-
url = (_utilities.get_env('
|
|
846
|
+
url = (_utilities.get_env('ACTIONS_CACHE_URL') or '')
|
|
842
847
|
if url is not None:
|
|
843
848
|
pulumi.set(__self__, "url", url)
|
|
844
849
|
|
|
@@ -888,7 +893,7 @@ class CacheToGitHubActions(dict):
|
|
|
888
893
|
"""
|
|
889
894
|
The cache server URL to use for artifacts.
|
|
890
895
|
|
|
891
|
-
Defaults to `$
|
|
896
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
892
897
|
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
893
898
|
environment variable to your jobs.
|
|
894
899
|
"""
|
pulumi_docker_build/provider.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
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
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from ._inputs import *
|
|
12
17
|
|
|
@@ -56,7 +61,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
56
61
|
resource_name: str,
|
|
57
62
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
58
63
|
host: Optional[pulumi.Input[str]] = None,
|
|
59
|
-
registries: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
64
|
+
registries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]]]] = None,
|
|
60
65
|
__props__=None):
|
|
61
66
|
"""
|
|
62
67
|
Create a Docker-build resource with the given unique name, props, and options.
|
|
@@ -88,7 +93,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
88
93
|
resource_name: str,
|
|
89
94
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
90
95
|
host: Optional[pulumi.Input[str]] = None,
|
|
91
|
-
registries: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
96
|
+
registries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RegistryArgs', 'RegistryArgsDict']]]]] = None,
|
|
92
97
|
__props__=None):
|
|
93
98
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
94
99
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: pulumi_docker_build
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.1a100
|
|
4
4
|
Summary: A Pulumi provider for building modern Docker images with buildx and BuildKit.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Project-URL: Homepage, https://pulumi.com
|
|
7
7
|
Project-URL: Repository, https://github.com/pulumi/pulumi-docker-build
|
|
8
8
|
Keywords: docker,buildkit,buildx,kind/native
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
-
Requires-Dist: parver
|
|
12
|
-
Requires-Dist: pulumi
|
|
13
|
-
Requires-Dist: semver
|
|
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"
|
|
14
15
|
|
|
15
16
|
[](https://slack.pulumi.com)
|
|
16
17
|
[](https://www.npmjs.com/package/@pulumi/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=ATGn7z1nNESmoBlUEPKWrC0XgnHpLKy9xeTsxs7av3Y,81
|
|
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.0.1a100.dist-info/METADATA,sha256=V1T878LYtL-nbdpZTY-n-o525N2wbITvcGJq17tfmY4,2613
|
|
15
|
+
pulumi_docker_build-0.0.1a100.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
16
|
+
pulumi_docker_build-0.0.1a100.dist-info/top_level.txt,sha256=-O-MiPQ61mhil3wD9QdYf8yA4r5vNPmBgSGdi9cOQ18,20
|
|
17
|
+
pulumi_docker_build-0.0.1a100.dist-info/RECORD,,
|
|
@@ -1,17 +0,0 @@
|
|
|
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=L_v8wgNW_tjfh4caAatNqLUzqJwmPRbFSFFXrAs0h88,97964
|
|
4
|
-
pulumi_docker_build/_utilities.py,sha256=GzGkkcCHl56rhrwBOUvVkUvrjPsBOA37ZH6NsPQOiKI,9230
|
|
5
|
-
pulumi_docker_build/image.py,sha256=fsF_y3EFFqMPDZ5_a0HBNKlbREwFNKHHsl8LW2U1sIQ,75070
|
|
6
|
-
pulumi_docker_build/index.py,sha256=UovlVuMLsHogF2-U0-Lzxu1gi8LLixPQHTOgP-YYZ60,14598
|
|
7
|
-
pulumi_docker_build/outputs.py,sha256=l9VIy-AMXUdQffKVpYcR-KCdtc7huWQ2qCDhv_hgHVs,83253
|
|
8
|
-
pulumi_docker_build/provider.py,sha256=5f1FtyHXjxcCA3nouMG5HVJyrBEdCB452ezcNt53NmQ,4780
|
|
9
|
-
pulumi_docker_build/pulumi-plugin.json,sha256=zQHHpPYv356aVJ950hUzazofky15CPTYmwyqA82kHYI,49
|
|
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=2lJs0q5nxrEi63kCCpe7M23-j-0NiQu9UpKaYAWe5TM,441
|
|
13
|
-
pulumi_docker_build/config/vars.py,sha256=6g1SHA-v-YBMxDX9KwlhaZZ3Yk7DzC5_EB2xz0FQiKo,756
|
|
14
|
-
pulumi_docker_build-0.0.1.dist-info/METADATA,sha256=OCBD-1gS6-qtwodFUXrChup0hJlegNm_qFzC00Fo70s,2546
|
|
15
|
-
pulumi_docker_build-0.0.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
16
|
-
pulumi_docker_build-0.0.1.dist-info/top_level.txt,sha256=-O-MiPQ61mhil3wD9QdYf8yA4r5vNPmBgSGdi9cOQ18,20
|
|
17
|
-
pulumi_docker_build-0.0.1.dist-info/RECORD,,
|
{pulumi_docker_build-0.0.1.dist-info → pulumi_docker_build-0.0.1a100.dist-info}/top_level.txt
RENAMED
|
File without changes
|