pulumi-docker-build 0.0.6__py3-none-any.whl → 0.0.8__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 +829 -16
- pulumi_docker_build/_utilities.py +1 -1
- pulumi_docker_build/config/__init__.pyi +5 -0
- pulumi_docker_build/config/vars.py +5 -0
- pulumi_docker_build/image.py +7 -2
- pulumi_docker_build/index.py +5 -0
- pulumi_docker_build/outputs.py +5 -0
- pulumi_docker_build/provider.py +5 -0
- pulumi_docker_build/pulumi-plugin.json +1 -1
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.0.8.dist-info}/METADATA +5 -4
- pulumi_docker_build-0.0.8.dist-info/RECORD +17 -0
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.0.8.dist-info}/WHEEL +1 -1
- pulumi_docker_build-0.0.6.dist-info/RECORD +0 -17
- {pulumi_docker_build-0.0.6.dist-info → pulumi_docker_build-0.0.8.dist-info}/top_level.txt +0 -0
pulumi_docker_build/_inputs.py
CHANGED
|
@@ -4,42 +4,101 @@
|
|
|
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 ._enums import *
|
|
12
17
|
|
|
13
18
|
__all__ = [
|
|
14
19
|
'BuildContextArgs',
|
|
20
|
+
'BuildContextArgsDict',
|
|
15
21
|
'BuilderConfigArgs',
|
|
22
|
+
'BuilderConfigArgsDict',
|
|
16
23
|
'CacheFromAzureBlobArgs',
|
|
24
|
+
'CacheFromAzureBlobArgsDict',
|
|
17
25
|
'CacheFromGitHubActionsArgs',
|
|
26
|
+
'CacheFromGitHubActionsArgsDict',
|
|
18
27
|
'CacheFromLocalArgs',
|
|
28
|
+
'CacheFromLocalArgsDict',
|
|
19
29
|
'CacheFromRegistryArgs',
|
|
30
|
+
'CacheFromRegistryArgsDict',
|
|
20
31
|
'CacheFromS3Args',
|
|
32
|
+
'CacheFromS3ArgsDict',
|
|
21
33
|
'CacheFromArgs',
|
|
34
|
+
'CacheFromArgsDict',
|
|
22
35
|
'CacheToAzureBlobArgs',
|
|
36
|
+
'CacheToAzureBlobArgsDict',
|
|
23
37
|
'CacheToGitHubActionsArgs',
|
|
38
|
+
'CacheToGitHubActionsArgsDict',
|
|
24
39
|
'CacheToInlineArgs',
|
|
40
|
+
'CacheToInlineArgsDict',
|
|
25
41
|
'CacheToLocalArgs',
|
|
42
|
+
'CacheToLocalArgsDict',
|
|
26
43
|
'CacheToRegistryArgs',
|
|
44
|
+
'CacheToRegistryArgsDict',
|
|
27
45
|
'CacheToS3Args',
|
|
46
|
+
'CacheToS3ArgsDict',
|
|
28
47
|
'CacheToArgs',
|
|
48
|
+
'CacheToArgsDict',
|
|
29
49
|
'ContextArgs',
|
|
50
|
+
'ContextArgsDict',
|
|
30
51
|
'DockerfileArgs',
|
|
52
|
+
'DockerfileArgsDict',
|
|
31
53
|
'ExportCacheOnlyArgs',
|
|
54
|
+
'ExportCacheOnlyArgsDict',
|
|
32
55
|
'ExportDockerArgs',
|
|
56
|
+
'ExportDockerArgsDict',
|
|
33
57
|
'ExportImageArgs',
|
|
58
|
+
'ExportImageArgsDict',
|
|
34
59
|
'ExportLocalArgs',
|
|
60
|
+
'ExportLocalArgsDict',
|
|
35
61
|
'ExportOCIArgs',
|
|
62
|
+
'ExportOCIArgsDict',
|
|
36
63
|
'ExportRegistryArgs',
|
|
64
|
+
'ExportRegistryArgsDict',
|
|
37
65
|
'ExportTarArgs',
|
|
66
|
+
'ExportTarArgsDict',
|
|
38
67
|
'ExportArgs',
|
|
68
|
+
'ExportArgsDict',
|
|
39
69
|
'RegistryArgs',
|
|
70
|
+
'RegistryArgsDict',
|
|
40
71
|
'SSHArgs',
|
|
72
|
+
'SSHArgsDict',
|
|
41
73
|
]
|
|
42
74
|
|
|
75
|
+
MYPY = False
|
|
76
|
+
|
|
77
|
+
if not MYPY:
|
|
78
|
+
class BuildContextArgsDict(TypedDict):
|
|
79
|
+
location: pulumi.Input[str]
|
|
80
|
+
"""
|
|
81
|
+
Resources to use for build context.
|
|
82
|
+
|
|
83
|
+
The location can be:
|
|
84
|
+
* A relative or absolute path to a local directory (`.`, `./app`,
|
|
85
|
+
`/app`, etc.).
|
|
86
|
+
* A remote URL of a Git repository, tarball, or plain text file
|
|
87
|
+
(`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
88
|
+
etc.).
|
|
89
|
+
"""
|
|
90
|
+
named: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['ContextArgsDict']]]]
|
|
91
|
+
"""
|
|
92
|
+
Additional build contexts to use.
|
|
93
|
+
|
|
94
|
+
These contexts are accessed with `FROM name` or `--from=name`
|
|
95
|
+
statements when using Dockerfile 1.4+ syntax.
|
|
96
|
+
|
|
97
|
+
Values can be local paths, HTTP URLs, or `docker-image://` images.
|
|
98
|
+
"""
|
|
99
|
+
elif False:
|
|
100
|
+
BuildContextArgsDict: TypeAlias = Mapping[str, Any]
|
|
101
|
+
|
|
43
102
|
@pulumi.input_type
|
|
44
103
|
class BuildContextArgs:
|
|
45
104
|
def __init__(__self__, *,
|
|
@@ -102,6 +161,20 @@ class BuildContextArgs:
|
|
|
102
161
|
pulumi.set(self, "named", value)
|
|
103
162
|
|
|
104
163
|
|
|
164
|
+
if not MYPY:
|
|
165
|
+
class BuilderConfigArgsDict(TypedDict):
|
|
166
|
+
name: NotRequired[pulumi.Input[str]]
|
|
167
|
+
"""
|
|
168
|
+
Name of an existing buildx builder to use.
|
|
169
|
+
|
|
170
|
+
Only `docker-container`, `kubernetes`, or `remote` drivers are
|
|
171
|
+
supported. The legacy `docker` driver is not supported.
|
|
172
|
+
|
|
173
|
+
Equivalent to Docker's `--builder` flag.
|
|
174
|
+
"""
|
|
175
|
+
elif False:
|
|
176
|
+
BuilderConfigArgsDict: TypeAlias = Mapping[str, Any]
|
|
177
|
+
|
|
105
178
|
@pulumi.input_type
|
|
106
179
|
class BuilderConfigArgs:
|
|
107
180
|
def __init__(__self__, *,
|
|
@@ -135,6 +208,23 @@ class BuilderConfigArgs:
|
|
|
135
208
|
pulumi.set(self, "name", value)
|
|
136
209
|
|
|
137
210
|
|
|
211
|
+
if not MYPY:
|
|
212
|
+
class CacheFromAzureBlobArgsDict(TypedDict):
|
|
213
|
+
name: pulumi.Input[str]
|
|
214
|
+
"""
|
|
215
|
+
The name of the cache image.
|
|
216
|
+
"""
|
|
217
|
+
account_url: NotRequired[pulumi.Input[str]]
|
|
218
|
+
"""
|
|
219
|
+
Base URL of the storage account.
|
|
220
|
+
"""
|
|
221
|
+
secret_access_key: NotRequired[pulumi.Input[str]]
|
|
222
|
+
"""
|
|
223
|
+
Blob storage account key.
|
|
224
|
+
"""
|
|
225
|
+
elif False:
|
|
226
|
+
CacheFromAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
|
|
227
|
+
|
|
138
228
|
@pulumi.input_type
|
|
139
229
|
class CacheFromAzureBlobArgs:
|
|
140
230
|
def __init__(__self__, *,
|
|
@@ -189,6 +279,35 @@ class CacheFromAzureBlobArgs:
|
|
|
189
279
|
pulumi.set(self, "secret_access_key", value)
|
|
190
280
|
|
|
191
281
|
|
|
282
|
+
if not MYPY:
|
|
283
|
+
class CacheFromGitHubActionsArgsDict(TypedDict):
|
|
284
|
+
scope: NotRequired[pulumi.Input[str]]
|
|
285
|
+
"""
|
|
286
|
+
The scope to use for cache keys. Defaults to `buildkit`.
|
|
287
|
+
|
|
288
|
+
This should be set if building and caching multiple images in one
|
|
289
|
+
workflow, otherwise caches will overwrite each other.
|
|
290
|
+
"""
|
|
291
|
+
token: NotRequired[pulumi.Input[str]]
|
|
292
|
+
"""
|
|
293
|
+
The GitHub Actions token to use. This is not a personal access tokens
|
|
294
|
+
and is typically generated automatically as part of each job.
|
|
295
|
+
|
|
296
|
+
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
297
|
+
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
298
|
+
environment variable to your jobs.
|
|
299
|
+
"""
|
|
300
|
+
url: NotRequired[pulumi.Input[str]]
|
|
301
|
+
"""
|
|
302
|
+
The cache server URL to use for artifacts.
|
|
303
|
+
|
|
304
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
305
|
+
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
306
|
+
environment variable to your jobs.
|
|
307
|
+
"""
|
|
308
|
+
elif False:
|
|
309
|
+
CacheFromGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
|
310
|
+
|
|
192
311
|
@pulumi.input_type
|
|
193
312
|
class CacheFromGitHubActionsArgs:
|
|
194
313
|
def __init__(__self__, *,
|
|
@@ -274,6 +393,19 @@ class CacheFromGitHubActionsArgs:
|
|
|
274
393
|
pulumi.set(self, "url", value)
|
|
275
394
|
|
|
276
395
|
|
|
396
|
+
if not MYPY:
|
|
397
|
+
class CacheFromLocalArgsDict(TypedDict):
|
|
398
|
+
src: pulumi.Input[str]
|
|
399
|
+
"""
|
|
400
|
+
Path of the local directory where cache gets imported from.
|
|
401
|
+
"""
|
|
402
|
+
digest: NotRequired[pulumi.Input[str]]
|
|
403
|
+
"""
|
|
404
|
+
Digest of manifest to import.
|
|
405
|
+
"""
|
|
406
|
+
elif False:
|
|
407
|
+
CacheFromLocalArgsDict: TypeAlias = Mapping[str, Any]
|
|
408
|
+
|
|
277
409
|
@pulumi.input_type
|
|
278
410
|
class CacheFromLocalArgs:
|
|
279
411
|
def __init__(__self__, *,
|
|
@@ -312,6 +444,15 @@ class CacheFromLocalArgs:
|
|
|
312
444
|
pulumi.set(self, "digest", value)
|
|
313
445
|
|
|
314
446
|
|
|
447
|
+
if not MYPY:
|
|
448
|
+
class CacheFromRegistryArgsDict(TypedDict):
|
|
449
|
+
ref: pulumi.Input[str]
|
|
450
|
+
"""
|
|
451
|
+
Fully qualified name of the cache image to import.
|
|
452
|
+
"""
|
|
453
|
+
elif False:
|
|
454
|
+
CacheFromRegistryArgsDict: TypeAlias = Mapping[str, Any]
|
|
455
|
+
|
|
315
456
|
@pulumi.input_type
|
|
316
457
|
class CacheFromRegistryArgs:
|
|
317
458
|
def __init__(__self__, *,
|
|
@@ -334,6 +475,51 @@ class CacheFromRegistryArgs:
|
|
|
334
475
|
pulumi.set(self, "ref", value)
|
|
335
476
|
|
|
336
477
|
|
|
478
|
+
if not MYPY:
|
|
479
|
+
class CacheFromS3ArgsDict(TypedDict):
|
|
480
|
+
bucket: pulumi.Input[str]
|
|
481
|
+
"""
|
|
482
|
+
Name of the S3 bucket.
|
|
483
|
+
"""
|
|
484
|
+
region: pulumi.Input[str]
|
|
485
|
+
"""
|
|
486
|
+
The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
487
|
+
"""
|
|
488
|
+
access_key_id: NotRequired[pulumi.Input[str]]
|
|
489
|
+
"""
|
|
490
|
+
Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
491
|
+
"""
|
|
492
|
+
blobs_prefix: NotRequired[pulumi.Input[str]]
|
|
493
|
+
"""
|
|
494
|
+
Prefix to prepend to blob filenames.
|
|
495
|
+
"""
|
|
496
|
+
endpoint_url: NotRequired[pulumi.Input[str]]
|
|
497
|
+
"""
|
|
498
|
+
Endpoint of the S3 bucket.
|
|
499
|
+
"""
|
|
500
|
+
manifests_prefix: NotRequired[pulumi.Input[str]]
|
|
501
|
+
"""
|
|
502
|
+
Prefix to prepend on manifest filenames.
|
|
503
|
+
"""
|
|
504
|
+
name: NotRequired[pulumi.Input[str]]
|
|
505
|
+
"""
|
|
506
|
+
Name of the cache image.
|
|
507
|
+
"""
|
|
508
|
+
secret_access_key: NotRequired[pulumi.Input[str]]
|
|
509
|
+
"""
|
|
510
|
+
Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
511
|
+
"""
|
|
512
|
+
session_token: NotRequired[pulumi.Input[str]]
|
|
513
|
+
"""
|
|
514
|
+
Defaults to `$AWS_SESSION_TOKEN`.
|
|
515
|
+
"""
|
|
516
|
+
use_path_style: NotRequired[pulumi.Input[bool]]
|
|
517
|
+
"""
|
|
518
|
+
Uses `bucket` in the URL instead of hostname when `true`.
|
|
519
|
+
"""
|
|
520
|
+
elif False:
|
|
521
|
+
CacheFromS3ArgsDict: TypeAlias = Mapping[str, Any]
|
|
522
|
+
|
|
337
523
|
@pulumi.input_type
|
|
338
524
|
class CacheFromS3Args:
|
|
339
525
|
def __init__(__self__, *,
|
|
@@ -507,6 +693,44 @@ class CacheFromS3Args:
|
|
|
507
693
|
pulumi.set(self, "use_path_style", value)
|
|
508
694
|
|
|
509
695
|
|
|
696
|
+
if not MYPY:
|
|
697
|
+
class CacheFromArgsDict(TypedDict):
|
|
698
|
+
azblob: NotRequired[pulumi.Input['CacheFromAzureBlobArgsDict']]
|
|
699
|
+
"""
|
|
700
|
+
Upload build caches to Azure's blob storage service.
|
|
701
|
+
"""
|
|
702
|
+
disabled: NotRequired[pulumi.Input[bool]]
|
|
703
|
+
"""
|
|
704
|
+
When `true` this entry will be excluded. Defaults to `false`.
|
|
705
|
+
"""
|
|
706
|
+
gha: NotRequired[pulumi.Input['CacheFromGitHubActionsArgsDict']]
|
|
707
|
+
"""
|
|
708
|
+
Recommended for use with GitHub Actions workflows.
|
|
709
|
+
|
|
710
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
711
|
+
expose appropriate credentials to your GitHub workflow.
|
|
712
|
+
"""
|
|
713
|
+
local: NotRequired[pulumi.Input['CacheFromLocalArgsDict']]
|
|
714
|
+
"""
|
|
715
|
+
A simple backend which caches images on your local filesystem.
|
|
716
|
+
"""
|
|
717
|
+
raw: NotRequired[pulumi.Input[str]]
|
|
718
|
+
"""
|
|
719
|
+
A raw string as you would provide it to the Docker CLI (e.g.,
|
|
720
|
+
`type=inline`).
|
|
721
|
+
"""
|
|
722
|
+
registry: NotRequired[pulumi.Input['CacheFromRegistryArgsDict']]
|
|
723
|
+
"""
|
|
724
|
+
Upload build caches to remote registries.
|
|
725
|
+
"""
|
|
726
|
+
s3: NotRequired[pulumi.Input['CacheFromS3ArgsDict']]
|
|
727
|
+
"""
|
|
728
|
+
Upload build caches to AWS S3 or an S3-compatible services such as
|
|
729
|
+
MinIO.
|
|
730
|
+
"""
|
|
731
|
+
elif False:
|
|
732
|
+
CacheFromArgsDict: TypeAlias = Mapping[str, Any]
|
|
733
|
+
|
|
510
734
|
@pulumi.input_type
|
|
511
735
|
class CacheFromArgs:
|
|
512
736
|
def __init__(__self__, *,
|
|
@@ -636,6 +860,31 @@ class CacheFromArgs:
|
|
|
636
860
|
pulumi.set(self, "s3", value)
|
|
637
861
|
|
|
638
862
|
|
|
863
|
+
if not MYPY:
|
|
864
|
+
class CacheToAzureBlobArgsDict(TypedDict):
|
|
865
|
+
name: pulumi.Input[str]
|
|
866
|
+
"""
|
|
867
|
+
The name of the cache image.
|
|
868
|
+
"""
|
|
869
|
+
account_url: NotRequired[pulumi.Input[str]]
|
|
870
|
+
"""
|
|
871
|
+
Base URL of the storage account.
|
|
872
|
+
"""
|
|
873
|
+
ignore_error: NotRequired[pulumi.Input[bool]]
|
|
874
|
+
"""
|
|
875
|
+
Ignore errors caused by failed cache exports.
|
|
876
|
+
"""
|
|
877
|
+
mode: NotRequired[pulumi.Input['CacheMode']]
|
|
878
|
+
"""
|
|
879
|
+
The cache mode to use. Defaults to `min`.
|
|
880
|
+
"""
|
|
881
|
+
secret_access_key: NotRequired[pulumi.Input[str]]
|
|
882
|
+
"""
|
|
883
|
+
Blob storage account key.
|
|
884
|
+
"""
|
|
885
|
+
elif False:
|
|
886
|
+
CacheToAzureBlobArgsDict: TypeAlias = Mapping[str, Any]
|
|
887
|
+
|
|
639
888
|
@pulumi.input_type
|
|
640
889
|
class CacheToAzureBlobArgs:
|
|
641
890
|
def __init__(__self__, *,
|
|
@@ -726,6 +975,43 @@ class CacheToAzureBlobArgs:
|
|
|
726
975
|
pulumi.set(self, "secret_access_key", value)
|
|
727
976
|
|
|
728
977
|
|
|
978
|
+
if not MYPY:
|
|
979
|
+
class CacheToGitHubActionsArgsDict(TypedDict):
|
|
980
|
+
ignore_error: NotRequired[pulumi.Input[bool]]
|
|
981
|
+
"""
|
|
982
|
+
Ignore errors caused by failed cache exports.
|
|
983
|
+
"""
|
|
984
|
+
mode: NotRequired[pulumi.Input['CacheMode']]
|
|
985
|
+
"""
|
|
986
|
+
The cache mode to use. Defaults to `min`.
|
|
987
|
+
"""
|
|
988
|
+
scope: NotRequired[pulumi.Input[str]]
|
|
989
|
+
"""
|
|
990
|
+
The scope to use for cache keys. Defaults to `buildkit`.
|
|
991
|
+
|
|
992
|
+
This should be set if building and caching multiple images in one
|
|
993
|
+
workflow, otherwise caches will overwrite each other.
|
|
994
|
+
"""
|
|
995
|
+
token: NotRequired[pulumi.Input[str]]
|
|
996
|
+
"""
|
|
997
|
+
The GitHub Actions token to use. This is not a personal access tokens
|
|
998
|
+
and is typically generated automatically as part of each job.
|
|
999
|
+
|
|
1000
|
+
Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
|
1001
|
+
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1002
|
+
environment variable to your jobs.
|
|
1003
|
+
"""
|
|
1004
|
+
url: NotRequired[pulumi.Input[str]]
|
|
1005
|
+
"""
|
|
1006
|
+
The cache server URL to use for artifacts.
|
|
1007
|
+
|
|
1008
|
+
Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
|
1009
|
+
`crazy-max/ghaction-github-runtime` is recommended to expose this
|
|
1010
|
+
environment variable to your jobs.
|
|
1011
|
+
"""
|
|
1012
|
+
elif False:
|
|
1013
|
+
CacheToGitHubActionsArgsDict: TypeAlias = Mapping[str, Any]
|
|
1014
|
+
|
|
729
1015
|
@pulumi.input_type
|
|
730
1016
|
class CacheToGitHubActionsArgs:
|
|
731
1017
|
def __init__(__self__, *,
|
|
@@ -847,6 +1133,15 @@ class CacheToGitHubActionsArgs:
|
|
|
847
1133
|
pulumi.set(self, "url", value)
|
|
848
1134
|
|
|
849
1135
|
|
|
1136
|
+
if not MYPY:
|
|
1137
|
+
class CacheToInlineArgsDict(TypedDict):
|
|
1138
|
+
"""
|
|
1139
|
+
Include an inline cache with the exported image.
|
|
1140
|
+
"""
|
|
1141
|
+
pass
|
|
1142
|
+
elif False:
|
|
1143
|
+
CacheToInlineArgsDict: TypeAlias = Mapping[str, Any]
|
|
1144
|
+
|
|
850
1145
|
@pulumi.input_type
|
|
851
1146
|
class CacheToInlineArgs:
|
|
852
1147
|
def __init__(__self__):
|
|
@@ -856,6 +1151,35 @@ class CacheToInlineArgs:
|
|
|
856
1151
|
pass
|
|
857
1152
|
|
|
858
1153
|
|
|
1154
|
+
if not MYPY:
|
|
1155
|
+
class CacheToLocalArgsDict(TypedDict):
|
|
1156
|
+
dest: pulumi.Input[str]
|
|
1157
|
+
"""
|
|
1158
|
+
Path of the local directory to export the cache.
|
|
1159
|
+
"""
|
|
1160
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
1161
|
+
"""
|
|
1162
|
+
The compression type to use.
|
|
1163
|
+
"""
|
|
1164
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
1165
|
+
"""
|
|
1166
|
+
Compression level from 0 to 22.
|
|
1167
|
+
"""
|
|
1168
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
1169
|
+
"""
|
|
1170
|
+
Forcefully apply compression.
|
|
1171
|
+
"""
|
|
1172
|
+
ignore_error: NotRequired[pulumi.Input[bool]]
|
|
1173
|
+
"""
|
|
1174
|
+
Ignore errors caused by failed cache exports.
|
|
1175
|
+
"""
|
|
1176
|
+
mode: NotRequired[pulumi.Input['CacheMode']]
|
|
1177
|
+
"""
|
|
1178
|
+
The cache mode to use. Defaults to `min`.
|
|
1179
|
+
"""
|
|
1180
|
+
elif False:
|
|
1181
|
+
CacheToLocalArgsDict: TypeAlias = Mapping[str, Any]
|
|
1182
|
+
|
|
859
1183
|
@pulumi.input_type
|
|
860
1184
|
class CacheToLocalArgs:
|
|
861
1185
|
def __init__(__self__, *,
|
|
@@ -968,6 +1292,50 @@ class CacheToLocalArgs:
|
|
|
968
1292
|
pulumi.set(self, "mode", value)
|
|
969
1293
|
|
|
970
1294
|
|
|
1295
|
+
if not MYPY:
|
|
1296
|
+
class CacheToRegistryArgsDict(TypedDict):
|
|
1297
|
+
ref: pulumi.Input[str]
|
|
1298
|
+
"""
|
|
1299
|
+
Fully qualified name of the cache image to import.
|
|
1300
|
+
"""
|
|
1301
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
1302
|
+
"""
|
|
1303
|
+
The compression type to use.
|
|
1304
|
+
"""
|
|
1305
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
1306
|
+
"""
|
|
1307
|
+
Compression level from 0 to 22.
|
|
1308
|
+
"""
|
|
1309
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
1310
|
+
"""
|
|
1311
|
+
Forcefully apply compression.
|
|
1312
|
+
"""
|
|
1313
|
+
ignore_error: NotRequired[pulumi.Input[bool]]
|
|
1314
|
+
"""
|
|
1315
|
+
Ignore errors caused by failed cache exports.
|
|
1316
|
+
"""
|
|
1317
|
+
image_manifest: NotRequired[pulumi.Input[bool]]
|
|
1318
|
+
"""
|
|
1319
|
+
Export cache manifest as an OCI-compatible image manifest instead of a
|
|
1320
|
+
manifest list. Requires `ociMediaTypes` to also be `true`.
|
|
1321
|
+
|
|
1322
|
+
Some registries like AWS ECR will not work with caching if this is
|
|
1323
|
+
`false`.
|
|
1324
|
+
|
|
1325
|
+
Defaults to `false` to match Docker's default behavior.
|
|
1326
|
+
"""
|
|
1327
|
+
mode: NotRequired[pulumi.Input['CacheMode']]
|
|
1328
|
+
"""
|
|
1329
|
+
The cache mode to use. Defaults to `min`.
|
|
1330
|
+
"""
|
|
1331
|
+
oci_media_types: NotRequired[pulumi.Input[bool]]
|
|
1332
|
+
"""
|
|
1333
|
+
Whether to use OCI media types in exported manifests. Defaults to
|
|
1334
|
+
`true`.
|
|
1335
|
+
"""
|
|
1336
|
+
elif False:
|
|
1337
|
+
CacheToRegistryArgsDict: TypeAlias = Mapping[str, Any]
|
|
1338
|
+
|
|
971
1339
|
@pulumi.input_type
|
|
972
1340
|
class CacheToRegistryArgs:
|
|
973
1341
|
def __init__(__self__, *,
|
|
@@ -1130,6 +1498,59 @@ class CacheToRegistryArgs:
|
|
|
1130
1498
|
pulumi.set(self, "oci_media_types", value)
|
|
1131
1499
|
|
|
1132
1500
|
|
|
1501
|
+
if not MYPY:
|
|
1502
|
+
class CacheToS3ArgsDict(TypedDict):
|
|
1503
|
+
bucket: pulumi.Input[str]
|
|
1504
|
+
"""
|
|
1505
|
+
Name of the S3 bucket.
|
|
1506
|
+
"""
|
|
1507
|
+
region: pulumi.Input[str]
|
|
1508
|
+
"""
|
|
1509
|
+
The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
|
1510
|
+
"""
|
|
1511
|
+
access_key_id: NotRequired[pulumi.Input[str]]
|
|
1512
|
+
"""
|
|
1513
|
+
Defaults to `$AWS_ACCESS_KEY_ID`.
|
|
1514
|
+
"""
|
|
1515
|
+
blobs_prefix: NotRequired[pulumi.Input[str]]
|
|
1516
|
+
"""
|
|
1517
|
+
Prefix to prepend to blob filenames.
|
|
1518
|
+
"""
|
|
1519
|
+
endpoint_url: NotRequired[pulumi.Input[str]]
|
|
1520
|
+
"""
|
|
1521
|
+
Endpoint of the S3 bucket.
|
|
1522
|
+
"""
|
|
1523
|
+
ignore_error: NotRequired[pulumi.Input[bool]]
|
|
1524
|
+
"""
|
|
1525
|
+
Ignore errors caused by failed cache exports.
|
|
1526
|
+
"""
|
|
1527
|
+
manifests_prefix: NotRequired[pulumi.Input[str]]
|
|
1528
|
+
"""
|
|
1529
|
+
Prefix to prepend on manifest filenames.
|
|
1530
|
+
"""
|
|
1531
|
+
mode: NotRequired[pulumi.Input['CacheMode']]
|
|
1532
|
+
"""
|
|
1533
|
+
The cache mode to use. Defaults to `min`.
|
|
1534
|
+
"""
|
|
1535
|
+
name: NotRequired[pulumi.Input[str]]
|
|
1536
|
+
"""
|
|
1537
|
+
Name of the cache image.
|
|
1538
|
+
"""
|
|
1539
|
+
secret_access_key: NotRequired[pulumi.Input[str]]
|
|
1540
|
+
"""
|
|
1541
|
+
Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
|
1542
|
+
"""
|
|
1543
|
+
session_token: NotRequired[pulumi.Input[str]]
|
|
1544
|
+
"""
|
|
1545
|
+
Defaults to `$AWS_SESSION_TOKEN`.
|
|
1546
|
+
"""
|
|
1547
|
+
use_path_style: NotRequired[pulumi.Input[bool]]
|
|
1548
|
+
"""
|
|
1549
|
+
Uses `bucket` in the URL instead of hostname when `true`.
|
|
1550
|
+
"""
|
|
1551
|
+
elif False:
|
|
1552
|
+
CacheToS3ArgsDict: TypeAlias = Mapping[str, Any]
|
|
1553
|
+
|
|
1133
1554
|
@pulumi.input_type
|
|
1134
1555
|
class CacheToS3Args:
|
|
1135
1556
|
def __init__(__self__, *,
|
|
@@ -1320,24 +1741,68 @@ class CacheToS3Args:
|
|
|
1320
1741
|
"""
|
|
1321
1742
|
Defaults to `$AWS_SESSION_TOKEN`.
|
|
1322
1743
|
"""
|
|
1323
|
-
return pulumi.get(self, "session_token")
|
|
1324
|
-
|
|
1325
|
-
@session_token.setter
|
|
1326
|
-
def session_token(self, value: Optional[pulumi.Input[str]]):
|
|
1327
|
-
pulumi.set(self, "session_token", value)
|
|
1328
|
-
|
|
1329
|
-
@property
|
|
1330
|
-
@pulumi.getter(name="usePathStyle")
|
|
1331
|
-
def use_path_style(self) -> Optional[pulumi.Input[bool]]:
|
|
1744
|
+
return pulumi.get(self, "session_token")
|
|
1745
|
+
|
|
1746
|
+
@session_token.setter
|
|
1747
|
+
def session_token(self, value: Optional[pulumi.Input[str]]):
|
|
1748
|
+
pulumi.set(self, "session_token", value)
|
|
1749
|
+
|
|
1750
|
+
@property
|
|
1751
|
+
@pulumi.getter(name="usePathStyle")
|
|
1752
|
+
def use_path_style(self) -> Optional[pulumi.Input[bool]]:
|
|
1753
|
+
"""
|
|
1754
|
+
Uses `bucket` in the URL instead of hostname when `true`.
|
|
1755
|
+
"""
|
|
1756
|
+
return pulumi.get(self, "use_path_style")
|
|
1757
|
+
|
|
1758
|
+
@use_path_style.setter
|
|
1759
|
+
def use_path_style(self, value: Optional[pulumi.Input[bool]]):
|
|
1760
|
+
pulumi.set(self, "use_path_style", value)
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
if not MYPY:
|
|
1764
|
+
class CacheToArgsDict(TypedDict):
|
|
1765
|
+
azblob: NotRequired[pulumi.Input['CacheToAzureBlobArgsDict']]
|
|
1766
|
+
"""
|
|
1767
|
+
Push cache to Azure's blob storage service.
|
|
1768
|
+
"""
|
|
1769
|
+
disabled: NotRequired[pulumi.Input[bool]]
|
|
1770
|
+
"""
|
|
1771
|
+
When `true` this entry will be excluded. Defaults to `false`.
|
|
1772
|
+
"""
|
|
1773
|
+
gha: NotRequired[pulumi.Input['CacheToGitHubActionsArgsDict']]
|
|
1774
|
+
"""
|
|
1775
|
+
Recommended for use with GitHub Actions workflows.
|
|
1776
|
+
|
|
1777
|
+
An action like `crazy-max/ghaction-github-runtime` is recommended to
|
|
1778
|
+
expose appropriate credentials to your GitHub workflow.
|
|
1779
|
+
"""
|
|
1780
|
+
inline: NotRequired[pulumi.Input['CacheToInlineArgsDict']]
|
|
1781
|
+
"""
|
|
1782
|
+
The inline cache storage backend is the simplest implementation to get
|
|
1783
|
+
started with, but it does not handle multi-stage builds. Consider the
|
|
1784
|
+
`registry` cache backend instead.
|
|
1785
|
+
"""
|
|
1786
|
+
local: NotRequired[pulumi.Input['CacheToLocalArgsDict']]
|
|
1787
|
+
"""
|
|
1788
|
+
A simple backend which caches imagines on your local filesystem.
|
|
1789
|
+
"""
|
|
1790
|
+
raw: NotRequired[pulumi.Input[str]]
|
|
1791
|
+
"""
|
|
1792
|
+
A raw string as you would provide it to the Docker CLI (e.g.,
|
|
1793
|
+
`type=inline`)
|
|
1794
|
+
"""
|
|
1795
|
+
registry: NotRequired[pulumi.Input['CacheToRegistryArgsDict']]
|
|
1796
|
+
"""
|
|
1797
|
+
Push caches to remote registries. Incompatible with the `docker` build
|
|
1798
|
+
driver.
|
|
1799
|
+
"""
|
|
1800
|
+
s3: NotRequired[pulumi.Input['CacheToS3ArgsDict']]
|
|
1332
1801
|
"""
|
|
1333
|
-
|
|
1802
|
+
Push cache to AWS S3 or S3-compatible services such as MinIO.
|
|
1334
1803
|
"""
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
@use_path_style.setter
|
|
1338
|
-
def use_path_style(self, value: Optional[pulumi.Input[bool]]):
|
|
1339
|
-
pulumi.set(self, "use_path_style", value)
|
|
1340
|
-
|
|
1804
|
+
elif False:
|
|
1805
|
+
CacheToArgsDict: TypeAlias = Mapping[str, Any]
|
|
1341
1806
|
|
|
1342
1807
|
@pulumi.input_type
|
|
1343
1808
|
class CacheToArgs:
|
|
@@ -1488,6 +1953,22 @@ class CacheToArgs:
|
|
|
1488
1953
|
pulumi.set(self, "s3", value)
|
|
1489
1954
|
|
|
1490
1955
|
|
|
1956
|
+
if not MYPY:
|
|
1957
|
+
class ContextArgsDict(TypedDict):
|
|
1958
|
+
location: pulumi.Input[str]
|
|
1959
|
+
"""
|
|
1960
|
+
Resources to use for build context.
|
|
1961
|
+
|
|
1962
|
+
The location can be:
|
|
1963
|
+
* A relative or absolute path to a local directory (`.`, `./app`,
|
|
1964
|
+
`/app`, etc.).
|
|
1965
|
+
* A remote URL of a Git repository, tarball, or plain text file
|
|
1966
|
+
(`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
|
1967
|
+
etc.).
|
|
1968
|
+
"""
|
|
1969
|
+
elif False:
|
|
1970
|
+
ContextArgsDict: TypeAlias = Mapping[str, Any]
|
|
1971
|
+
|
|
1491
1972
|
@pulumi.input_type
|
|
1492
1973
|
class ContextArgs:
|
|
1493
1974
|
def __init__(__self__, *,
|
|
@@ -1524,6 +2005,29 @@ class ContextArgs:
|
|
|
1524
2005
|
pulumi.set(self, "location", value)
|
|
1525
2006
|
|
|
1526
2007
|
|
|
2008
|
+
if not MYPY:
|
|
2009
|
+
class DockerfileArgsDict(TypedDict):
|
|
2010
|
+
inline: NotRequired[pulumi.Input[str]]
|
|
2011
|
+
"""
|
|
2012
|
+
Raw Dockerfile contents.
|
|
2013
|
+
|
|
2014
|
+
Conflicts with `location`.
|
|
2015
|
+
|
|
2016
|
+
Equivalent to invoking Docker with `-f -`.
|
|
2017
|
+
"""
|
|
2018
|
+
location: NotRequired[pulumi.Input[str]]
|
|
2019
|
+
"""
|
|
2020
|
+
Location of the Dockerfile to use.
|
|
2021
|
+
|
|
2022
|
+
Can be a relative or absolute path to a local file, or a remote URL.
|
|
2023
|
+
|
|
2024
|
+
Defaults to `${context.location}/Dockerfile` if context is on-disk.
|
|
2025
|
+
|
|
2026
|
+
Conflicts with `inline`.
|
|
2027
|
+
"""
|
|
2028
|
+
elif False:
|
|
2029
|
+
DockerfileArgsDict: TypeAlias = Mapping[str, Any]
|
|
2030
|
+
|
|
1527
2031
|
@pulumi.input_type
|
|
1528
2032
|
class DockerfileArgs:
|
|
1529
2033
|
def __init__(__self__, *,
|
|
@@ -1583,12 +2087,55 @@ class DockerfileArgs:
|
|
|
1583
2087
|
pulumi.set(self, "location", value)
|
|
1584
2088
|
|
|
1585
2089
|
|
|
2090
|
+
if not MYPY:
|
|
2091
|
+
class ExportCacheOnlyArgsDict(TypedDict):
|
|
2092
|
+
pass
|
|
2093
|
+
elif False:
|
|
2094
|
+
ExportCacheOnlyArgsDict: TypeAlias = Mapping[str, Any]
|
|
2095
|
+
|
|
1586
2096
|
@pulumi.input_type
|
|
1587
2097
|
class ExportCacheOnlyArgs:
|
|
1588
2098
|
def __init__(__self__):
|
|
1589
2099
|
pass
|
|
1590
2100
|
|
|
1591
2101
|
|
|
2102
|
+
if not MYPY:
|
|
2103
|
+
class ExportDockerArgsDict(TypedDict):
|
|
2104
|
+
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
|
2105
|
+
"""
|
|
2106
|
+
Attach an arbitrary key/value annotation to the image.
|
|
2107
|
+
"""
|
|
2108
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
2109
|
+
"""
|
|
2110
|
+
The compression type to use.
|
|
2111
|
+
"""
|
|
2112
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
2113
|
+
"""
|
|
2114
|
+
Compression level from 0 to 22.
|
|
2115
|
+
"""
|
|
2116
|
+
dest: NotRequired[pulumi.Input[str]]
|
|
2117
|
+
"""
|
|
2118
|
+
The local export path.
|
|
2119
|
+
"""
|
|
2120
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
2121
|
+
"""
|
|
2122
|
+
Forcefully apply compression.
|
|
2123
|
+
"""
|
|
2124
|
+
names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2125
|
+
"""
|
|
2126
|
+
Specify images names to export. This is overridden if tags are already specified.
|
|
2127
|
+
"""
|
|
2128
|
+
oci_media_types: NotRequired[pulumi.Input[bool]]
|
|
2129
|
+
"""
|
|
2130
|
+
Use OCI media types in exporter manifests.
|
|
2131
|
+
"""
|
|
2132
|
+
tar: NotRequired[pulumi.Input[bool]]
|
|
2133
|
+
"""
|
|
2134
|
+
Bundle the output into a tarball layout.
|
|
2135
|
+
"""
|
|
2136
|
+
elif False:
|
|
2137
|
+
ExportDockerArgsDict: TypeAlias = Mapping[str, Any]
|
|
2138
|
+
|
|
1592
2139
|
@pulumi.input_type
|
|
1593
2140
|
class ExportDockerArgs:
|
|
1594
2141
|
def __init__(__self__, *,
|
|
@@ -1734,6 +2281,70 @@ class ExportDockerArgs:
|
|
|
1734
2281
|
pulumi.set(self, "tar", value)
|
|
1735
2282
|
|
|
1736
2283
|
|
|
2284
|
+
if not MYPY:
|
|
2285
|
+
class ExportImageArgsDict(TypedDict):
|
|
2286
|
+
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
|
2287
|
+
"""
|
|
2288
|
+
Attach an arbitrary key/value annotation to the image.
|
|
2289
|
+
"""
|
|
2290
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
2291
|
+
"""
|
|
2292
|
+
The compression type to use.
|
|
2293
|
+
"""
|
|
2294
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
2295
|
+
"""
|
|
2296
|
+
Compression level from 0 to 22.
|
|
2297
|
+
"""
|
|
2298
|
+
dangling_name_prefix: NotRequired[pulumi.Input[str]]
|
|
2299
|
+
"""
|
|
2300
|
+
Name image with `prefix@<digest>`, used for anonymous images.
|
|
2301
|
+
"""
|
|
2302
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
2303
|
+
"""
|
|
2304
|
+
Forcefully apply compression.
|
|
2305
|
+
"""
|
|
2306
|
+
insecure: NotRequired[pulumi.Input[bool]]
|
|
2307
|
+
"""
|
|
2308
|
+
Allow pushing to an insecure registry.
|
|
2309
|
+
"""
|
|
2310
|
+
name_canonical: NotRequired[pulumi.Input[bool]]
|
|
2311
|
+
"""
|
|
2312
|
+
Add additional canonical name (`name@<digest>`).
|
|
2313
|
+
"""
|
|
2314
|
+
names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2315
|
+
"""
|
|
2316
|
+
Specify images names to export. This is overridden if tags are already specified.
|
|
2317
|
+
"""
|
|
2318
|
+
oci_media_types: NotRequired[pulumi.Input[bool]]
|
|
2319
|
+
"""
|
|
2320
|
+
Use OCI media types in exporter manifests.
|
|
2321
|
+
"""
|
|
2322
|
+
push: NotRequired[pulumi.Input[bool]]
|
|
2323
|
+
"""
|
|
2324
|
+
Push after creating the image. Defaults to `false`.
|
|
2325
|
+
"""
|
|
2326
|
+
push_by_digest: NotRequired[pulumi.Input[bool]]
|
|
2327
|
+
"""
|
|
2328
|
+
Push image without name.
|
|
2329
|
+
"""
|
|
2330
|
+
store: NotRequired[pulumi.Input[bool]]
|
|
2331
|
+
"""
|
|
2332
|
+
Store resulting images to the worker's image store and ensure all of
|
|
2333
|
+
its blobs are in the content store.
|
|
2334
|
+
|
|
2335
|
+
Defaults to `true`.
|
|
2336
|
+
|
|
2337
|
+
Ignored if the worker doesn't have image store (when using OCI workers,
|
|
2338
|
+
for example).
|
|
2339
|
+
"""
|
|
2340
|
+
unpack: NotRequired[pulumi.Input[bool]]
|
|
2341
|
+
"""
|
|
2342
|
+
Unpack image after creation (for use with containerd). Defaults to
|
|
2343
|
+
`false`.
|
|
2344
|
+
"""
|
|
2345
|
+
elif False:
|
|
2346
|
+
ExportImageArgsDict: TypeAlias = Mapping[str, Any]
|
|
2347
|
+
|
|
1737
2348
|
@pulumi.input_type
|
|
1738
2349
|
class ExportImageArgs:
|
|
1739
2350
|
def __init__(__self__, *,
|
|
@@ -1973,6 +2584,15 @@ class ExportImageArgs:
|
|
|
1973
2584
|
pulumi.set(self, "unpack", value)
|
|
1974
2585
|
|
|
1975
2586
|
|
|
2587
|
+
if not MYPY:
|
|
2588
|
+
class ExportLocalArgsDict(TypedDict):
|
|
2589
|
+
dest: pulumi.Input[str]
|
|
2590
|
+
"""
|
|
2591
|
+
Output path.
|
|
2592
|
+
"""
|
|
2593
|
+
elif False:
|
|
2594
|
+
ExportLocalArgsDict: TypeAlias = Mapping[str, Any]
|
|
2595
|
+
|
|
1976
2596
|
@pulumi.input_type
|
|
1977
2597
|
class ExportLocalArgs:
|
|
1978
2598
|
def __init__(__self__, *,
|
|
@@ -1995,6 +2615,43 @@ class ExportLocalArgs:
|
|
|
1995
2615
|
pulumi.set(self, "dest", value)
|
|
1996
2616
|
|
|
1997
2617
|
|
|
2618
|
+
if not MYPY:
|
|
2619
|
+
class ExportOCIArgsDict(TypedDict):
|
|
2620
|
+
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
|
2621
|
+
"""
|
|
2622
|
+
Attach an arbitrary key/value annotation to the image.
|
|
2623
|
+
"""
|
|
2624
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
2625
|
+
"""
|
|
2626
|
+
The compression type to use.
|
|
2627
|
+
"""
|
|
2628
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
2629
|
+
"""
|
|
2630
|
+
Compression level from 0 to 22.
|
|
2631
|
+
"""
|
|
2632
|
+
dest: NotRequired[pulumi.Input[str]]
|
|
2633
|
+
"""
|
|
2634
|
+
The local export path.
|
|
2635
|
+
"""
|
|
2636
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
2637
|
+
"""
|
|
2638
|
+
Forcefully apply compression.
|
|
2639
|
+
"""
|
|
2640
|
+
names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2641
|
+
"""
|
|
2642
|
+
Specify images names to export. This is overridden if tags are already specified.
|
|
2643
|
+
"""
|
|
2644
|
+
oci_media_types: NotRequired[pulumi.Input[bool]]
|
|
2645
|
+
"""
|
|
2646
|
+
Use OCI media types in exporter manifests.
|
|
2647
|
+
"""
|
|
2648
|
+
tar: NotRequired[pulumi.Input[bool]]
|
|
2649
|
+
"""
|
|
2650
|
+
Bundle the output into a tarball layout.
|
|
2651
|
+
"""
|
|
2652
|
+
elif False:
|
|
2653
|
+
ExportOCIArgsDict: TypeAlias = Mapping[str, Any]
|
|
2654
|
+
|
|
1998
2655
|
@pulumi.input_type
|
|
1999
2656
|
class ExportOCIArgs:
|
|
2000
2657
|
def __init__(__self__, *,
|
|
@@ -2140,6 +2797,70 @@ class ExportOCIArgs:
|
|
|
2140
2797
|
pulumi.set(self, "tar", value)
|
|
2141
2798
|
|
|
2142
2799
|
|
|
2800
|
+
if not MYPY:
|
|
2801
|
+
class ExportRegistryArgsDict(TypedDict):
|
|
2802
|
+
annotations: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
|
|
2803
|
+
"""
|
|
2804
|
+
Attach an arbitrary key/value annotation to the image.
|
|
2805
|
+
"""
|
|
2806
|
+
compression: NotRequired[pulumi.Input['CompressionType']]
|
|
2807
|
+
"""
|
|
2808
|
+
The compression type to use.
|
|
2809
|
+
"""
|
|
2810
|
+
compression_level: NotRequired[pulumi.Input[int]]
|
|
2811
|
+
"""
|
|
2812
|
+
Compression level from 0 to 22.
|
|
2813
|
+
"""
|
|
2814
|
+
dangling_name_prefix: NotRequired[pulumi.Input[str]]
|
|
2815
|
+
"""
|
|
2816
|
+
Name image with `prefix@<digest>`, used for anonymous images.
|
|
2817
|
+
"""
|
|
2818
|
+
force_compression: NotRequired[pulumi.Input[bool]]
|
|
2819
|
+
"""
|
|
2820
|
+
Forcefully apply compression.
|
|
2821
|
+
"""
|
|
2822
|
+
insecure: NotRequired[pulumi.Input[bool]]
|
|
2823
|
+
"""
|
|
2824
|
+
Allow pushing to an insecure registry.
|
|
2825
|
+
"""
|
|
2826
|
+
name_canonical: NotRequired[pulumi.Input[bool]]
|
|
2827
|
+
"""
|
|
2828
|
+
Add additional canonical name (`name@<digest>`).
|
|
2829
|
+
"""
|
|
2830
|
+
names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2831
|
+
"""
|
|
2832
|
+
Specify images names to export. This is overridden if tags are already specified.
|
|
2833
|
+
"""
|
|
2834
|
+
oci_media_types: NotRequired[pulumi.Input[bool]]
|
|
2835
|
+
"""
|
|
2836
|
+
Use OCI media types in exporter manifests.
|
|
2837
|
+
"""
|
|
2838
|
+
push: NotRequired[pulumi.Input[bool]]
|
|
2839
|
+
"""
|
|
2840
|
+
Push after creating the image. Defaults to `true`.
|
|
2841
|
+
"""
|
|
2842
|
+
push_by_digest: NotRequired[pulumi.Input[bool]]
|
|
2843
|
+
"""
|
|
2844
|
+
Push image without name.
|
|
2845
|
+
"""
|
|
2846
|
+
store: NotRequired[pulumi.Input[bool]]
|
|
2847
|
+
"""
|
|
2848
|
+
Store resulting images to the worker's image store and ensure all of
|
|
2849
|
+
its blobs are in the content store.
|
|
2850
|
+
|
|
2851
|
+
Defaults to `true`.
|
|
2852
|
+
|
|
2853
|
+
Ignored if the worker doesn't have image store (when using OCI workers,
|
|
2854
|
+
for example).
|
|
2855
|
+
"""
|
|
2856
|
+
unpack: NotRequired[pulumi.Input[bool]]
|
|
2857
|
+
"""
|
|
2858
|
+
Unpack image after creation (for use with containerd). Defaults to
|
|
2859
|
+
`false`.
|
|
2860
|
+
"""
|
|
2861
|
+
elif False:
|
|
2862
|
+
ExportRegistryArgsDict: TypeAlias = Mapping[str, Any]
|
|
2863
|
+
|
|
2143
2864
|
@pulumi.input_type
|
|
2144
2865
|
class ExportRegistryArgs:
|
|
2145
2866
|
def __init__(__self__, *,
|
|
@@ -2381,6 +3102,15 @@ class ExportRegistryArgs:
|
|
|
2381
3102
|
pulumi.set(self, "unpack", value)
|
|
2382
3103
|
|
|
2383
3104
|
|
|
3105
|
+
if not MYPY:
|
|
3106
|
+
class ExportTarArgsDict(TypedDict):
|
|
3107
|
+
dest: pulumi.Input[str]
|
|
3108
|
+
"""
|
|
3109
|
+
Output path.
|
|
3110
|
+
"""
|
|
3111
|
+
elif False:
|
|
3112
|
+
ExportTarArgsDict: TypeAlias = Mapping[str, Any]
|
|
3113
|
+
|
|
2384
3114
|
@pulumi.input_type
|
|
2385
3115
|
class ExportTarArgs:
|
|
2386
3116
|
def __init__(__self__, *,
|
|
@@ -2403,6 +3133,49 @@ class ExportTarArgs:
|
|
|
2403
3133
|
pulumi.set(self, "dest", value)
|
|
2404
3134
|
|
|
2405
3135
|
|
|
3136
|
+
if not MYPY:
|
|
3137
|
+
class ExportArgsDict(TypedDict):
|
|
3138
|
+
cacheonly: NotRequired[pulumi.Input['ExportCacheOnlyArgsDict']]
|
|
3139
|
+
"""
|
|
3140
|
+
A no-op export. Helpful for silencing the 'no exports' warning if you
|
|
3141
|
+
just want to populate caches.
|
|
3142
|
+
"""
|
|
3143
|
+
disabled: NotRequired[pulumi.Input[bool]]
|
|
3144
|
+
"""
|
|
3145
|
+
When `true` this entry will be excluded. Defaults to `false`.
|
|
3146
|
+
"""
|
|
3147
|
+
docker: NotRequired[pulumi.Input['ExportDockerArgsDict']]
|
|
3148
|
+
"""
|
|
3149
|
+
Export as a Docker image layout.
|
|
3150
|
+
"""
|
|
3151
|
+
image: NotRequired[pulumi.Input['ExportImageArgsDict']]
|
|
3152
|
+
"""
|
|
3153
|
+
Outputs the build result into a container image format.
|
|
3154
|
+
"""
|
|
3155
|
+
local: NotRequired[pulumi.Input['ExportLocalArgsDict']]
|
|
3156
|
+
"""
|
|
3157
|
+
Export to a local directory as files and directories.
|
|
3158
|
+
"""
|
|
3159
|
+
oci: NotRequired[pulumi.Input['ExportOCIArgsDict']]
|
|
3160
|
+
"""
|
|
3161
|
+
Identical to the Docker exporter but uses OCI media types by default.
|
|
3162
|
+
"""
|
|
3163
|
+
raw: NotRequired[pulumi.Input[str]]
|
|
3164
|
+
"""
|
|
3165
|
+
A raw string as you would provide it to the Docker CLI (e.g.,
|
|
3166
|
+
`type=docker`)
|
|
3167
|
+
"""
|
|
3168
|
+
registry: NotRequired[pulumi.Input['ExportRegistryArgsDict']]
|
|
3169
|
+
"""
|
|
3170
|
+
Identical to the Image exporter, but pushes by default.
|
|
3171
|
+
"""
|
|
3172
|
+
tar: NotRequired[pulumi.Input['ExportTarArgsDict']]
|
|
3173
|
+
"""
|
|
3174
|
+
Export to a local directory as a tarball.
|
|
3175
|
+
"""
|
|
3176
|
+
elif False:
|
|
3177
|
+
ExportArgsDict: TypeAlias = Mapping[str, Any]
|
|
3178
|
+
|
|
2406
3179
|
@pulumi.input_type
|
|
2407
3180
|
class ExportArgs:
|
|
2408
3181
|
def __init__(__self__, *,
|
|
@@ -2558,6 +3331,23 @@ class ExportArgs:
|
|
|
2558
3331
|
pulumi.set(self, "tar", value)
|
|
2559
3332
|
|
|
2560
3333
|
|
|
3334
|
+
if not MYPY:
|
|
3335
|
+
class RegistryArgsDict(TypedDict):
|
|
3336
|
+
address: pulumi.Input[str]
|
|
3337
|
+
"""
|
|
3338
|
+
The registry's address (e.g. "docker.io").
|
|
3339
|
+
"""
|
|
3340
|
+
password: NotRequired[pulumi.Input[str]]
|
|
3341
|
+
"""
|
|
3342
|
+
Password or token for the registry.
|
|
3343
|
+
"""
|
|
3344
|
+
username: NotRequired[pulumi.Input[str]]
|
|
3345
|
+
"""
|
|
3346
|
+
Username for the registry.
|
|
3347
|
+
"""
|
|
3348
|
+
elif False:
|
|
3349
|
+
RegistryArgsDict: TypeAlias = Mapping[str, Any]
|
|
3350
|
+
|
|
2561
3351
|
@pulumi.input_type
|
|
2562
3352
|
class RegistryArgs:
|
|
2563
3353
|
def __init__(__self__, *,
|
|
@@ -2612,6 +3402,29 @@ class RegistryArgs:
|
|
|
2612
3402
|
pulumi.set(self, "username", value)
|
|
2613
3403
|
|
|
2614
3404
|
|
|
3405
|
+
if not MYPY:
|
|
3406
|
+
class SSHArgsDict(TypedDict):
|
|
3407
|
+
id: pulumi.Input[str]
|
|
3408
|
+
"""
|
|
3409
|
+
Useful for distinguishing different servers that are part of the same
|
|
3410
|
+
build.
|
|
3411
|
+
|
|
3412
|
+
A value of `default` is appropriate if only dealing with a single host.
|
|
3413
|
+
"""
|
|
3414
|
+
paths: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
3415
|
+
"""
|
|
3416
|
+
SSH agent socket or private keys to expose to the build under the given
|
|
3417
|
+
identifier.
|
|
3418
|
+
|
|
3419
|
+
Defaults to `[$SSH_AUTH_SOCK]`.
|
|
3420
|
+
|
|
3421
|
+
Note that your keys are **not** automatically added when using an
|
|
3422
|
+
agent. Run `ssh-add -l` locally to confirm which public keys are
|
|
3423
|
+
visible to the agent; these will be exposed to your build.
|
|
3424
|
+
"""
|
|
3425
|
+
elif False:
|
|
3426
|
+
SSHArgsDict: TypeAlias = Mapping[str, Any]
|
|
3427
|
+
|
|
2615
3428
|
@pulumi.input_type
|
|
2616
3429
|
class SSHArgs:
|
|
2617
3430
|
def __init__(__self__, *,
|
|
@@ -264,7 +264,7 @@ def call_plain(
|
|
|
264
264
|
output = pulumi.runtime.call(tok, props, res, typ)
|
|
265
265
|
|
|
266
266
|
# Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
|
|
267
|
-
result, known, secret, _ = _sync_await(asyncio.
|
|
267
|
+
result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
|
|
268
268
|
|
|
269
269
|
problem = None
|
|
270
270
|
if not known:
|
|
@@ -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 as _root_outputs
|
|
12
17
|
|
|
@@ -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 as _root_outputs
|
|
12
17
|
|
pulumi_docker_build/image.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 *
|
|
@@ -847,7 +852,7 @@ class Image(pulumi.CustomResource):
|
|
|
847
852
|
context={
|
|
848
853
|
"location": "app",
|
|
849
854
|
"named": {
|
|
850
|
-
"
|
|
855
|
+
"golang:latest": {
|
|
851
856
|
"location": "docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
|
|
852
857
|
},
|
|
853
858
|
},
|
|
@@ -1285,7 +1290,7 @@ class Image(pulumi.CustomResource):
|
|
|
1285
1290
|
context={
|
|
1286
1291
|
"location": "app",
|
|
1287
1292
|
"named": {
|
|
1288
|
-
"
|
|
1293
|
+
"golang:latest": {
|
|
1289
1294
|
"location": "docker-image://golang@sha256:b8e62cf593cdaff36efd90aa3a37de268e6781a2e68c6610940c48f7cdf36984",
|
|
1290
1295
|
},
|
|
1291
1296
|
},
|
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 *
|
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 *
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulumi_docker_build
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
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
|
|
@@ -8,9 +8,10 @@ Project-URL: Repository, https://github.com/pulumi/pulumi-docker-build
|
|
|
8
8
|
Keywords: docker,buildkit,buildx,kind/native
|
|
9
9
|
Requires-Python: >=3.8
|
|
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.136.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=v90okJ1Fkv7RB_uZA_cIQHr2d3h21GjUVJ9nSVnxcZs,71
|
|
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.8.dist-info/METADATA,sha256=qcfkiZ43Qi5arZhWtwXcBf1gW_SIvluaiaSpqX20U-E,2609
|
|
15
|
+
pulumi_docker_build-0.0.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
16
|
+
pulumi_docker_build-0.0.8.dist-info/top_level.txt,sha256=-O-MiPQ61mhil3wD9QdYf8yA4r5vNPmBgSGdi9cOQ18,20
|
|
17
|
+
pulumi_docker_build-0.0.8.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=5BR5iN2zSZgH6sXxZfh2F_JpMjtkitqBwr76MOCPS-8,97952
|
|
4
|
-
pulumi_docker_build/_utilities.py,sha256=TZWmMJOOzIbeJ63eFk5Tkx9TRUBUL4deSG05KQZyUug,10488
|
|
5
|
-
pulumi_docker_build/image.py,sha256=VsbwL9JygPShhRXvxuBu4-X81XZyrksbnlna2KztbNA,74703
|
|
6
|
-
pulumi_docker_build/index.py,sha256=O58q_jghUCJJ2dCaQpEgyH9gL7DdsnW_lmw09THGqs4,14117
|
|
7
|
-
pulumi_docker_build/outputs.py,sha256=fJrTHocv5estX9VKAzMJXj_k6NnKPAyS91Ar9Zo9FfM,83241
|
|
8
|
-
pulumi_docker_build/provider.py,sha256=3Slh1kBpK8WSiXVqQ5cWrVu8o32XkvDl-x2htd4WLIQ,4798
|
|
9
|
-
pulumi_docker_build/pulumi-plugin.json,sha256=I4-LOhUMjg4-bEWwTiRn_uGbwpnOqxN0fWvN1j9YGN0,71
|
|
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.6.dist-info/METADATA,sha256=gTRKKbNW2Rv6Q01-4xJ0yINupBrwUCDWn2l8fwz4av8,2546
|
|
15
|
-
pulumi_docker_build-0.0.6.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
|
|
16
|
-
pulumi_docker_build-0.0.6.dist-info/top_level.txt,sha256=-O-MiPQ61mhil3wD9QdYf8yA4r5vNPmBgSGdi9cOQ18,20
|
|
17
|
-
pulumi_docker_build-0.0.6.dist-info/RECORD,,
|
|
File without changes
|