@pulumi/docker 4.6.0-alpha.2 → 4.6.0-alpha.4
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.
- package/buildx/image.d.ts +27 -8
- package/buildx/image.js +6 -0
- package/buildx/image.js.map +1 -1
- package/package.json +1 -1
package/buildx/image.d.ts
CHANGED
|
@@ -29,6 +29,17 @@ export declare class Image extends pulumi.CustomResource {
|
|
|
29
29
|
readonly buildArgs: pulumi.Output<{
|
|
30
30
|
[key: string]: string;
|
|
31
31
|
} | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* When true, attempt to build the image during previews. Outputs are not
|
|
35
|
+
* pushed to registries, however caches are still populated.
|
|
36
|
+
*/
|
|
37
|
+
readonly buildOnPreview: pulumi.Output<boolean | undefined>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Build with a specific builder instance
|
|
41
|
+
*/
|
|
42
|
+
readonly builder: pulumi.Output<string | undefined>;
|
|
32
43
|
/**
|
|
33
44
|
*
|
|
34
45
|
* External cache sources (e.g., "user/app:cache", "type=local,src=path/to/dir")
|
|
@@ -41,11 +52,10 @@ export declare class Image extends pulumi.CustomResource {
|
|
|
41
52
|
readonly cacheTo: pulumi.Output<string[] | undefined>;
|
|
42
53
|
/**
|
|
43
54
|
*
|
|
44
|
-
*
|
|
45
|
-
* is used. If more than one value is specified, they should be of the
|
|
46
|
-
* form "name=value".
|
|
55
|
+
* Path to use for build context. If omitted, an empty context is used.
|
|
47
56
|
*/
|
|
48
57
|
readonly context: pulumi.Output<string | undefined>;
|
|
58
|
+
readonly contextHash: pulumi.Output<string | undefined>;
|
|
49
59
|
/**
|
|
50
60
|
*
|
|
51
61
|
* Name and optionally a tag (format: "name:tag"). If outputting to a
|
|
@@ -54,7 +64,7 @@ export declare class Image extends pulumi.CustomResource {
|
|
|
54
64
|
readonly exports: pulumi.Output<string[] | undefined>;
|
|
55
65
|
/**
|
|
56
66
|
*
|
|
57
|
-
* Name of the Dockerfile to use (
|
|
67
|
+
* Name of the Dockerfile to use (defaults to "${context}/Dockerfile").
|
|
58
68
|
*/
|
|
59
69
|
readonly file: pulumi.Output<string | undefined>;
|
|
60
70
|
readonly manifests: pulumi.Output<outputs.buildx.Manifest[]>;
|
|
@@ -102,6 +112,17 @@ export interface ImageArgs {
|
|
|
102
112
|
buildArgs?: pulumi.Input<{
|
|
103
113
|
[key: string]: pulumi.Input<string>;
|
|
104
114
|
}>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* When true, attempt to build the image during previews. Outputs are not
|
|
118
|
+
* pushed to registries, however caches are still populated.
|
|
119
|
+
*/
|
|
120
|
+
buildOnPreview?: pulumi.Input<boolean>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* Build with a specific builder instance
|
|
124
|
+
*/
|
|
125
|
+
builder?: pulumi.Input<string>;
|
|
105
126
|
/**
|
|
106
127
|
*
|
|
107
128
|
* External cache sources (e.g., "user/app:cache", "type=local,src=path/to/dir")
|
|
@@ -114,9 +135,7 @@ export interface ImageArgs {
|
|
|
114
135
|
cacheTo?: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
136
|
/**
|
|
116
137
|
*
|
|
117
|
-
*
|
|
118
|
-
* is used. If more than one value is specified, they should be of the
|
|
119
|
-
* form "name=value".
|
|
138
|
+
* Path to use for build context. If omitted, an empty context is used.
|
|
120
139
|
*/
|
|
121
140
|
context?: pulumi.Input<string>;
|
|
122
141
|
/**
|
|
@@ -127,7 +146,7 @@ export interface ImageArgs {
|
|
|
127
146
|
exports?: pulumi.Input<pulumi.Input<string>[]>;
|
|
128
147
|
/**
|
|
129
148
|
*
|
|
130
|
-
* Name of the Dockerfile to use (
|
|
149
|
+
* Name of the Dockerfile to use (defaults to "${context}/Dockerfile").
|
|
131
150
|
*/
|
|
132
151
|
file?: pulumi.Input<string>;
|
|
133
152
|
/**
|
package/buildx/image.js
CHANGED
|
@@ -46,6 +46,8 @@ class Image extends pulumi.CustomResource {
|
|
|
46
46
|
throw new Error("Missing required property 'tags'");
|
|
47
47
|
}
|
|
48
48
|
resourceInputs["buildArgs"] = args ? args.buildArgs : undefined;
|
|
49
|
+
resourceInputs["buildOnPreview"] = args ? args.buildOnPreview : undefined;
|
|
50
|
+
resourceInputs["builder"] = args ? args.builder : undefined;
|
|
49
51
|
resourceInputs["cacheFrom"] = args ? args.cacheFrom : undefined;
|
|
50
52
|
resourceInputs["cacheTo"] = args ? args.cacheTo : undefined;
|
|
51
53
|
resourceInputs["context"] = args ? args.context : undefined;
|
|
@@ -55,13 +57,17 @@ class Image extends pulumi.CustomResource {
|
|
|
55
57
|
resourceInputs["pull"] = args ? args.pull : undefined;
|
|
56
58
|
resourceInputs["registries"] = args ? args.registries : undefined;
|
|
57
59
|
resourceInputs["tags"] = args ? args.tags : undefined;
|
|
60
|
+
resourceInputs["contextHash"] = undefined /*out*/;
|
|
58
61
|
resourceInputs["manifests"] = undefined /*out*/;
|
|
59
62
|
}
|
|
60
63
|
else {
|
|
61
64
|
resourceInputs["buildArgs"] = undefined /*out*/;
|
|
65
|
+
resourceInputs["buildOnPreview"] = undefined /*out*/;
|
|
66
|
+
resourceInputs["builder"] = undefined /*out*/;
|
|
62
67
|
resourceInputs["cacheFrom"] = undefined /*out*/;
|
|
63
68
|
resourceInputs["cacheTo"] = undefined /*out*/;
|
|
64
69
|
resourceInputs["context"] = undefined /*out*/;
|
|
70
|
+
resourceInputs["contextHash"] = undefined /*out*/;
|
|
65
71
|
resourceInputs["exports"] = undefined /*out*/;
|
|
66
72
|
resourceInputs["file"] = undefined /*out*/;
|
|
67
73
|
resourceInputs["manifests"] = undefined /*out*/;
|
package/buildx/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../buildx/image.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;A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